Integrations
Connect your AI coding agent
Tokonomix exposes an OpenAI-compatible endpoint and an MCP server so every major coding agent connects with a one-line config change. Route single-model calls for speed — or set model: "tokonomix-consensus" on high-stakes calls to get a cross-family verdict before your code lands.
https://tokonomix.ai/api/v1https://tokonomix.ai/api/anthropicnpx tokonomix-mcpWhy Tokonomix
Routing is table stakes. Consensus is the differentiator.
Any router can forward a prompt to a model. Tokonomix adds a cross-family council: three proposer models from different families each answer independently, then a judge synthesises and flags disagreements. Blind-spot detection catches what any single model misses.
model: "tokonomix-consensus"— set this once per call to activate the full councilModellauswahl
Welches Modell und welchen Endpunkt soll mein Agent verwenden?
Wähle nach dem, was dein Agent tut, und tausche die Modell-ID jederzeit aus — jedes Modell im Katalog funktioniert über denselben Schlüssel.
| Was dein Agent tut | Verwende dies |
|---|---|
| Bearbeitet Dateien / ruft Tools auf und streamt Antworten (die meisten Coding-Agents) | Ein Anthropic-Modell über den Anthropic-Endpunkt (Tools + Streaming funktionieren beide) |
| Ruft Tools auf, benötigt aber kein Streaming (beliebiges Modell) | Der OpenAI-kompatible Endpunkt mit einer einzelnen Modell-ID |
| Benötigt Tools und Streaming auf einem Nicht-Anthropic-Modell | Verwende vorerst Non-Streaming — Streaming-Tool-Calls für andere Anbieter sind noch nicht aktiviert |
| Normaler Chat, keine Tools | Beliebiger Endpunkt; Streaming ist in Ordnung |
| Möchte ein modellübergreifendes Urteil (Konsens) bei einer wichtigen Antwort | Modell auf tokonomix-consensus am OpenAI-kompatiblen Endpunkt setzen — Hinweis: Konsens weist Tool-Anfragen ab (kein Tool-Calling) |
Endpunkt & API-Referenz (technisch)
anthropic-messages → https://tokonomix.ai/api/anthropic — tools ✓, streaming ✓ (ein Anthropic-Modell verwenden). openai-completions → https://tokonomix.ai/api/v1 — tools ✓ (Single-Model-Passthrough), Streaming mit Tools noch nicht verfügbar. Normaler Chat: Streaming funktioniert auf beiden. Konsens: openai-completions, Modell tokonomix-consensus, keine Tools. Modell-ID gegen einen beliebigen Slug aus GET /api/v1/models austauschen.
Claude Code
CLIAnthropics offizieller CLI-Coding-Agent für das Terminal.
# Option A — Anthropic wire-format passthrough
export ANTHROPIC_BASE_URL=https://tokonomix.ai/api/anthropic
export ANTHROPIC_API_KEY=tok-your-key
claude
# Option B — add the MCP server for consensus tools
claude mcp add tokonomix -- npx -y tokonomix-mcp \
--api-key tok-your-keyConsensus tip
MCP-Tools umfassen tokonomix_consensus_ask — rufe es bei jedem riskanten Refactoring oder Designentscheid für ein familienübergreifendes Urteil auf.
Aider
CLITerminal-Pair-Programmer, der Dateien bearbeitet und für dich committet.
export OPENAI_API_BASE=https://tokonomix.ai/api/v1
export OPENAI_API_KEY=tok-your-key
# Route any call through consensus
aider --model openai/tokonomix-consensus
# Or target a specific model
aider --model openai/anthropic/claude-sonnet-4-6Consensus tip
Setze --model openai/tokonomix-consensus für Architektur-Diskussionen; verwende für hochvolumige Zeilen-Edits ein einzelnes Modell.
Autonomer VS Code-Agent — liest, bearbeitet, führt Terminals aus.
# Cline → Settings (gear icon) → API Provider: "OpenAI Compatible"
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model ID : anthropic/claude-sonnet-4-6
# Opt-in: consensus for planning/review (no tool-calling)
# Model ID : tokonomix-consensus
# or any slug from GET /api/v1/modelsConsensus tip
Setze modelId auf tokonomix-consensus für Clines "Architect"-Modus-Aufgaben; wechsle für schnelle Inline-Edits zu einem direkten Modell-Slug.
Autonomer Fork von Cline mit zusätzlichen Workflow-Modi (Architect, Debug, Ask).
// Roo Code Settings → API Provider: "OpenAI Compatible"
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model ID : anthropic/claude-sonnet-4-6
// Opt-in: consensus for planning/review (no tool-calling)
// Model ID : tokonomix-consensusConsensus tip
Verwende einen direkten Modell-Slug für Roos Tool-Calling-Modi (Code, Debug); wechsle zu tokonomix-consensus als Opt-in für Architect-Planungsaufgaben, bei denen keine Tool-Calls gemacht werden.
Continue.dev
IDE extensionVS Code / JetBrains-Coding-Assistent mit Chat, Autocomplete und Kontext.
# ~/.continue/config.yaml
models:
- name: Tokonomix Consensus
provider: openai
model: tokonomix-consensus
apiBase: https://tokonomix.ai/api/v1
apiKey: tok-your-key
- name: Tokonomix (Claude direct)
provider: openai
model: anthropic/claude-sonnet-4-6
apiBase: https://tokonomix.ai/api/v1
apiKey: tok-your-keyConsensus tip
Füge beide Einträge hinzu — verwende Consensus in Continues Chat für kritische Reviews, das direkte Modell für Autocomplete (geringere Latenz).
Cursor
IDEKI-nativer Fork von VS Code mit Composer-Agent und Inline-Edits.
// Cursor Settings → Models → Override OpenAI Base URL
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model : tokonomix-consensus
// Note: base-URL override applies to Cursor Chat (Cmd+L) only.
// Composer / inline-edit / autocomplete use Cursor's own backend.Consensus tip
Cursor Chat mit model=tokonomix-consensus liefert Consensus für Design-Gespräche; Composer nutzt weiterhin Cursors eigenes Routing.
Blocks Open-Source-Autonomagent — installiert, führt aus, testet.
# host + key via environment (NOT config.yaml)
export OPENAI_HOST=https://tokonomix.ai/api/v1
export OPENAI_API_KEY=tok-your-key
# ~/.config/goose/config.yaml
GOOSE_PROVIDER: openai
GOOSE_MODEL: anthropic/claude-sonnet-4-6
# Opt-in: consensus for planning/review (no tool-calling)
# GOOSE_MODEL: tokonomix-consensusConsensus tip
Goose führt lange autonome Sitzungen mit Tool-Calls aus — setze das Standardmodell auf einen direkten Slug. Verwende tokonomix-consensus als Opt-in für reine Planungsschritte ohne Tool-Calls.
Open-Source-Software-Entwicklungsagent (ehemals OpenDevin) — autonomer PR-Autor.
# docker run / .env
LLM_BASE_URL=https://tokonomix.ai/api/v1
LLM_API_KEY=tok-your-key
LLM_MODEL=openai/anthropic/claude-sonnet-4-6
# Opt-in: consensus for planning/review (no tool-calling)
# LLM_MODEL=openai/tokonomix-consensus
# Or via UI: Settings → LLM → Advanced Settings
# Base URL : https://tokonomix.ai/api/v1
# Model : openai/anthropic/claude-sonnet-4-6Consensus tip
OpenHands steuert vollständige Feature-Branches mit Tool-Calls — setze das Standardmodell auf einen direkten Slug. Verwende tokonomix-consensus als Opt-in nur für Planungs-/Architekturschritte ohne Tool-Calls.
Zed
IDESchneller Rust-basierter Editor mit nativem KI-Panel und Multi-Buffer-Agent.
// ~/.config/zed/settings.json
{
"language_models": {
"openai_compatible": {
"api_url": "https://tokonomix.ai/api/v1",
"available_models": [
{
"name": "tokonomix-consensus",
"display_name": "Tokonomix Consensus",
"max_tokens": 128000
}
]
}
}
}Consensus tip
Verwende tokonomix-consensus in Zeds KI-Panel für Multi-File-Architektur-Fragen; wechsle für Completions zu einem direkten Modell.
Kilo Code
VS Code extensionVS Code-Agent mit Fokus auf vollständige Aufgabenerledigung und Kontextverwaltung.
// Kilo Code Settings → Providers → + Custom Provider
Provider ID : tokonomix
Display Name : Tokonomix
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model : tokonomix-consensusConsensus tip
Kilo ruft die Modellliste automatisch vom Endpunkt ab — wähle tokonomix-consensus für Kilos Planungsdurchläufe.
Codeiums KI-natives IDE mit Cascade-Flow-Agent.
// Windsurf MCP config (via Extension settings or mcp.json)
{
"mcpServers": {
"tokonomix": {
"command": "npx",
"args": ["-y", "tokonomix-mcp"],
"env": {
"TOKONOMIX_API_KEY": "tok-your-key"
}
}
}
}Consensus tip
Windsurfs Base-URL-Override ist auf BYOK Anthropic beschränkt; verwende stattdessen den MCP-Server, um Consensus-Tools in Cascade zu erhalten.
OpenClaw
CLI + VS CodePrivacy-first Open-Source-Agent mit gesicherten Netzwerk-Fetch-Pfaden.
// openclaw.json
{
"agents": { "defaults": { "model": { "primary": "tokonomix/tokonomix-consensus" } } },
"models": {
"providers": {
"tokonomix": {
"baseUrl": "https://tokonomix.ai/api/v1",
"apiKey": "${TOKONOMIX_API_KEY}",
"api": "openai-completions",
"models": [{ "id": "tokonomix-consensus", "name": "Tokonomix Consensus" }]
}
}
}
}Consensus tip
OpenClaws Vertrauensmodell entspricht Tokonomixs Philosophie: du besitzt den Netzwerkpfad; setze tokonomix-consensus als Standard für jede Planungsaufgabe.
claude-code-router
CLI proxyProxy-Schicht, die Claude Code-Anfragen nach Kosten/Fähigkeit an beliebige Backends weiterleitet.
// ~/.claude-code-router/config.json
{
"Providers": [
{
"name": "tokonomix",
"api_base_url": "https://tokonomix.ai/api/v1/chat/completions",
"api_key": "tok-your-key",
"models": ["tokonomix-consensus", "anthropic/claude-sonnet-4-6"]
}
],
"Router": {
"default": "tokonomix,tokonomix-consensus"
}
}Consensus tip
claude-code-router kann bestimmte Claude-Modell-IDs für komplexe Aufrufe auf tokonomix-consensus mappen und ein günstigeres direktes Modell für Boilerplate verwenden.
Void
IDEOpen-Source VS Code-Fork — direkt zum Anbieter, Zero-Relay-Architektur.
// Void Settings → AI → Provider → OpenAI Compatible
API Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
Model : tokonomix-consensus
// Note: Void 2026 development is officially paused.
// Last release still works; configuration above applies.Consensus tip
Voids Zero-Relay-Architektur bedeutet, dass dein Tokonomix-Schlüssel direkt zum Endpunkt geht — kein Drittanbieter-Logging zwischen deinem Prompt und der Consensus-Engine.
Tabby
Self-hosted serverSelbst-gehosteter Coding-Assistent mit Code-Completion und Chat.
# config.toml (Tabby server)
[model.chat.http]
kind = "openai/chat"
api_endpoint = "https://tokonomix.ai/api/v1"
api_key = "tok-your-key"
model_name = "tokonomix-consensus"Consensus tip
Tabby bedient ein ganzes Team von einem Server aus — das Chat-Modell auf tokonomix-consensus zu routen gibt jedem Entwickler auf der Instanz eine Consensus-gestützte Antwort.
Alibabas quelloffener KI-Code-Reviewer (CLI `ocr`) — diff-verankerte Befunde.
# Tool-call passthrough needs the Anthropic-compatible endpoint;
# the OpenAI-compat /api/v1 path is consensus-only and strips tool-calls.
ocr config set llm.url https://tokonomix.ai/api/anthropic/v1/messages
ocr config set llm.auth_token tok-your-key
ocr config set llm.model anthropic/claude-sonnet-4-6
ocr config set llm.use_anthropic true
ocr review --from origin/main --to HEAD --format jsonConsensus tip
Für eine Multi-Modell-Review liefert der native tokonomix-consensus-review-Slug (in Arbeit) diff-verankerte Befunde als JSON über die Konsens-Pipeline — kein clientseitiges Tool-Calling nötig.
Qwen Code
CLIAgentischer Coding-CLI (Gemini-CLI-Fork), der das OpenAI-Protokoll spricht.
// ~/.qwen/settings.json
{
"modelProviders": {
"openai": [
{ "id": "tokonomix-consensus", "name": "Tokonomix Consensus",
"baseUrl": "https://tokonomix.ai/api/v1", "envKey": "TOKONOMIX_API_KEY" }
]
},
"model": { "name": "tokonomix-consensus" }
}Consensus tip
Setze model.name für schwierige Reasoning-Schritte auf tokonomix-consensus; wechsle für hochvolumige Edits zu einem schnellen Slug.
LibreChat
Chat UISelbst-gehostete Multi-Modell-Chat-UI — bindet jede OpenAI-kompatible API als Endpunkt ein.
# librechat.yaml
endpoints:
custom:
- name: "Tokonomix"
apiKey: "${TOKONOMIX_API_KEY}"
baseURL: "https://tokonomix.ai/api/v1"
models:
default: ["tokonomix-consensus", "anthropic/claude-sonnet-4-6"]
fetch: trueConsensus tip
Trage tokonomix-consensus in die Endpoint-Modellliste ein, damit jeder Nutzer der Instanz eine Consensus-gestützte Antwort aus dem Selektor erhält.
OpenAIs quelloffener Terminal-Coding-Agent — eigene Modell-Provider in config.toml.
# ~/.codex/config.toml
model = "anthropic/claude-sonnet-4-6"
model_provider = "tokonomix"
# Opt-in: consensus for planning/review (no tool-calling)
# model = "tokonomix-consensus"
[model_providers.tokonomix]
name = "Tokonomix"
base_url = "https://tokonomix.ai/api/v1"
env_key = "TOKONOMIX_API_KEY"
wire_api = "chat"Consensus tip
Richte das Modell für riskante Refactorings auf tokonomix-consensus aus; reservierte IDs (openai/ollama/lmstudio) können nicht wiederverwendet werden, nenn den Provider daher tokonomix.
opencode
CLIOpen-Source-Terminal-Coding-Agent (SST) — provider-agnostisch via AI SDK.
// opencode.json
{
"provider": {
"tokonomix": {
"npm": "@ai-sdk/openai-compatible",
"name": "Tokonomix",
"options": {
"baseURL": "https://tokonomix.ai/api/v1",
"apiKey": "{env:TOKONOMIX_API_KEY}"
},
"models": { "tokonomix-consensus": { "name": "Tokonomix Consensus" } }
}
}
}Consensus tip
Wähle tokonomix-consensus für die schwierigen Reasoning-Durchläufe; ein schneller direkter Slug hält hochvolumige Edits günstig.
Crush
CLICharms glamouröser Terminal-Coding-Agent — modell-agnostisch über crush.json.
// crush.json
{
"providers": {
"tokonomix": {
"type": "openai-compat",
"base_url": "https://tokonomix.ai/api/v1",
"api_key": "$TOKONOMIX_API_KEY",
"models": [
{ "id": "tokonomix-consensus", "name": "Tokonomix Consensus",
"context_window": 200000, "default_max_tokens": 8192 }
]
}
}
}Consensus tip
Verwende den Typ openai-compat (nicht openai) für Tokonomix; leite Crush bei riskanten Änderungen an tokonomix-consensus weiter.
bolt.diy
Web app builderOpen-Source In-Browser-App-Builder — OpenAILike-Provider via Env.
# .env.local
OPENAI_LIKE_API_BASE_URL=https://tokonomix.ai/api/v1
OPENAI_LIKE_API_KEY=tok-your-key
# UI: Provider → OpenAILike, Model → tokonomix-consensusConsensus tip
Wähle tokonomix-consensus aus der OpenAILike-Modellliste beim Architektur-Scaffolding; ein schneller Slug hält iterative Edits günstig.
Open WebUI
Chat UISelbst-gehostete ChatGPT-ähnliche Oberfläche — bindet beliebige OpenAI-kompatible APIs als Verbindung ein.
# Environment (docker run / compose)
OPENAI_API_BASE_URL=https://tokonomix.ai/api/v1
OPENAI_API_KEY=tok-your-key
# Or UI: Admin → Settings → Connections → OpenAI APIConsensus tip
Füge tokonomix-consensus in der Verbindung hinzu, damit jeder Nutzer der Instanz eine consensus-gestützte Antwort aus der Modellauswahl erhält.
AnythingLLM
Desktop + self-hostedAll-in-one-KI-App (RAG + Agenten) — Generic OpenAI-Provider zeigt auf beliebige Endpunkte.
# LLM Preference → Generic OpenAI (or env)
GENERIC_OPEN_AI_BASE_PATH=https://tokonomix.ai/api/v1
GENERIC_OPEN_AI_MODEL_PREF=tokonomix-consensus
GENERIC_OPEN_AI_API_KEY=tok-your-key
GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT=200000Consensus tip
Setze das Modell auf tokonomix-consensus für kritische Antworten über deinen indizierten Dokumenten; verwende einen schnellen Slug für Routine-RAG-Abfragen.
Hermes
OpenAI-compatible base URLConnect Nous Research's self-improving, self-hosted agent to 132 models behind one key — and add cross-family consensus to every autonomous run.
# See full guide at /integrations/hermesConsensus tip
Natürlichsprachlicher Terminal-Agent, der Code ausführt
interpreter \
--api_base "https://tokonomix.ai/api/v1" \
--api_key "tok_live_your-key" \
--model "openai/anthropic/claude-sonnet-4-6"
# Opt-in: consensus for planning/review (no tool-calling)
# --model "openai/tokonomix-consensus"
# or in Python:
from interpreter import interpreter
interpreter.llm.api_base = "https://tokonomix.ai/api/v1"
interpreter.llm.api_key = "tok_live_your-key"
interpreter.llm.model = "openai/anthropic/claude-sonnet-4-6"
interpreter.chat()Consensus tip
Open Interpreter führt den Code des Modells aus — verwende openai/tokonomix-consensus vor allem Unumkehrbaren und einen direkten Slug für Routinebefehle.
Terminal-Assistent, der Code und Tools ausführt
# ~/.config/gptme/config.toml
[[providers]]
name = "tokonomix"
base_url = "https://tokonomix.ai/api/v1"
api_key = "tok_live_your-key"
default_model = "anthropic/claude-sonnet-4-6"
# Opt-in: consensus for planning/review (no tool-calling)
# default_model = "tokonomix-consensus"
# then: gptme --model tokonomix/anthropic/claude-sonnet-4-6 "..."Consensus tip
Setze tokonomix-consensus als Modell, bevor gptme einen riskanten Schritt ausführt; wechsle für Routine-Shell- und Dateiarbeit auf einen schnellen direkten Slug.
Neovim KI-Chat- und Inline-Bearbeitungs-Plugin
require("codecompanion").setup({
adapters = {
http = {
tokonomix = function()
return require("codecompanion.adapters").extend("openai_compatible", {
env = {
url = "https://tokonomix.ai",
api_key = "tok_live_your-key",
chat_url = "/api/v1/chat/completions",
},
schema = { model = { default = "anthropic/claude-sonnet-4-6" } },
-- Opt-in: consensus for planning/review (no tool-calling)
-- schema = { model = { default = "tokonomix-consensus" } },
})
end,
},
},
})Consensus tip
Nutze tokonomix-consensus als Sicherheitsnetz, bevor du einen Inline-Diff akzeptierst; ein direkter Slug hält alltäglichen Chat und Bearbeitungen schnell.
Cursor-artiges KI-Coding-Plugin für Neovim
require("avante").setup({
provider = "tokonomix",
providers = {
tokonomix = {
__inherited_from = "openai",
endpoint = "https://tokonomix.ai/api/v1",
model = "anthropic/claude-sonnet-4-6",
-- Opt-in: consensus for planning/review (no tool-calling)
-- model = "tokonomix-consensus",
api_key_name = "TOKONOMIX_API_KEY",
},
},
})
-- export TOKONOMIX_API_KEY=tok_live_your-keyConsensus tip
Richte Avante auf tokonomix-consensus, um einen riskanten agentischen Refactor vor der Anwendung gegenzuprüfen; verwende einen direkten Slug für Routinebearbeitungen.
Mods
CLICharm CLI, das Shell-Ausgabe durch ein LLM leitet
# mods --settings -> apis: section
apis:
tokonomix:
base-url: https://tokonomix.ai/api/v1
api-key-env: TOKONOMIX_API_KEY
models:
tokonomix-consensus:
aliases: ["consensus"]
max-input-chars: 392000
# export TOKONOMIX_API_KEY=tok_live_your-key
# mods -m consensus "explain this" < file.goConsensus tip
Aliasiere tokonomix-consensus zur Plausibilitätsprüfung eines generierten Befehls vor der Ausführung; ein schneller direkter Slug für routinemäßiges Piping.
Twinny
VS Code extensionVS Code Code-Vervollständigungs- und Chat-Erweiterung
// Twinny -> Manage Providers -> add provider:
// Provider type: openai
// Hostname: tokonomix.ai
// Port: 443
// Protocol: https
// API Path: /api/v1/chat/completions
// API Key: tok_live_your-key
// Model Name: tokonomix-consensusConsensus tip
Setze das Modell auf tokonomix-consensus für eine modellübergreifende Prüfung, bevor du einem Chat-Vorschlag vertraust; ein direkter Slug für schnelle Vervollständigung.
Simon Willisons Kommandozeilen-LLM-Client und -Bibliothek.
# ~/.config/io.datasette.llm/extra-openai-models.yaml
- model_id: anthropic/claude-sonnet-4-6
model_name: anthropic/claude-sonnet-4-6
api_base: "https://tokonomix.ai/api/v1"
api_key_name: tokonomix
supports_tools: true
# Opt-in: consensus for planning/review (no tool-calling)
- model_id: tokonomix-consensus
model_name: tokonomix-consensus
api_base: "https://tokonomix.ai/api/v1"
api_key_name: tokonomix
# then: llm keys set tokonomix (paste tok-your-key)
# llm -m anthropic/claude-sonnet-4-6 "Explain quorum sensing"Consensus tip
Richte eine model_id auf tokonomix-consensus für schwere oder agentische Anfragen; füge einen zweiten Eintrag auf einem direkten Slug für routinemäßige Einzeiler hinzu.
Local-first Desktop-KI-Assistent mit Remote-Endpunkten.
# Jan -> Settings -> Model Providers -> + (OpenAI-compatible)
Base URL : https://tokonomix.ai/api/v1
API Key : tok-your-key
# Add Model -> id: anthropic/claude-sonnet-4-6
# then pick anthropic/claude-sonnet-4-6 in the model picker and chat
# Opt-in: consensus for planning/review (no tool-calling)
# Add Model -> id: tokonomix-consensusConsensus tip
Benenne das Modell tokonomix-consensus für kritische Chats; füge im Picker einen direkten Slug für schnelle Alltagsfragen hinzu.
CodeGPT
VS Code extensionVS Code KI-Coding-Extension mit Custom-Providern.
# CodeGPT panel -> select model -> Provider: Custom
Model : tokonomix-consensus
API Key : tok-your-key
Endpoint : https://tokonomix.ai/api/v1
# Connect (BYOK; the Custom provider needs a Pro/Teams plan)Consensus tip
Richte den Custom-Provider auf tokonomix-consensus für riskante In-Editor-Antworten; wechsle für routinemäßige Vervollständigungen zu einem direkten Slug.
Allround-Rust-LLM-CLI, Shell und REPL.
# ~/.config/aichat/config.yaml
clients:
- type: openai-compatible
name: tokonomix
api_base: https://tokonomix.ai/api/v1
api_key: tok-your-key
models:
- name: anthropic/claude-sonnet-4-6
supports_function_calling: true
# Opt-in: consensus for planning/review (no tool-calling)
- name: tokonomix-consensus
# aichat -m tokonomix:anthropic/claude-sonnet-4-6 "refactor this"Consensus tip
Wähle tokonomix:tokonomix-consensus für anspruchsvolle Reasoning-Turns; füge dem Client ein direktes Modell für hochvolumige Bearbeitungen hinzu.
gp.nvim
Neovim pluginNeovim-KI-Plugin für Chat- und Code-Operationen.
require("gp").setup({
providers = {
tokonomix = {
endpoint = "https://tokonomix.ai/api/v1/chat/completions",
secret = os.getenv("TOKONOMIX_API_KEY"), -- tok-your-key
},
},
agents = {
{ provider = "tokonomix", name = "Tokonomix", chat = true, command = true,
model = { model = "tokonomix-consensus" } },
},
})Consensus tip
Benenne das Agent-Modell tokonomix-consensus für riskante In-Editor-Prompts; definiere einen zweiten Agenten auf einem direkten Slug für Routine-Chats.
Model Context Protocol
Add consensus as a tool, not just a model
The MCP server exposes tokonomix_consensus_ask as a callable tool. Any MCP-capable agent (Claude Code, Cursor, Cline, Windsurf, Zed) can call it mid-session — without changing the base model.
// Any MCP-capable agent (Claude Code, Cursor, Cline, Windsurf…)
{
"mcpServers": {
"tokonomix": {
"command": "npx",
"args": ["-y", "tokonomix-mcp"],
"env": {
"TOKONOMIX_API_KEY": "tok-your-key"
}
}
}
}
// Available MCP tools:
// tokonomix_consensus_ask — multi-model consensus on any question
// tokonomix_get_balance — check remaining token balance
// tokonomix_list_models — enumerate available models
// tokonomix_single_ask — single-model call with full token accountingCross-family consensus
Three proposer models from different families answer independently before a judge synthesises.
Judge scoring
An independent judge model scores and reconciles proposals, surfacing disagreements explicitly.
Blind-spot detection
Catches cases where all proposers agree but are collectively wrong — the cross-family check the single-model path misses.
Full token trace
Every token, every model, every cost — itemised per call in your dashboard.
Tool Calling
Tool Calling / Function Calling
Das Gateway unterstützt das OpenAI Tool-Calling-Protokoll für Single-Model-Passthrough-Anfragen. Sende ein tools-Array (JSON-Schema-Funktionsdefinitionen) bei jedem POST /api/v1/chat/completions-Request an ein Modell mit der tools-Fähigkeit. Die Antwort folgt der Standard-OpenAI-Form mit message.tool_calls[] und finish_reason: "tool_calls".
Tool Calling erfordert einen direkten provider/model-id-Slug. Der Konsens-Modus lehnt tools ab — die Synthese-Pipeline kann Tool Calls nicht über Proposer zusammenführen.
Streaming-Tool-Deltas (stream: true) werden noch nicht unterstützt. Lasse stream weg oder setze es auf false, um tool_calls in der JSON-Antwort zu erhalten.
Beispiel-Anfrage
curl https://tokonomix.ai/api/v1/chat/completions \
-H "Authorization: Bearer tok-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4-6",
"messages": [
{"role": "user", "content": "What is the weather in Amsterdam?"}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string", "description": "City name"}
},
"required": ["city"]
}
}
}
],
"tool_choice": "auto"
}'Beispiel-Antwort (finish_reason: "tool_calls")
{
"id": "chatcmpl-...",
"object": "chat.completion",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": null,
"tool_calls": [{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{"city":"Amsterdam"}"
}
}]
},
"finish_reason": "tool_calls"
}]
}Folgeanfrage: Tool-Ergebnis zurücksenden
curl https://tokonomix.ai/api/v1/chat/completions \
-H "Authorization: Bearer tok-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4-6",
"messages": [
{"role": "user", "content": "What is the weather in Amsterdam?"},
{
"role": "assistant",
"content": null,
"tool_calls": [{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{"city":"Amsterdam"}"
}
}]
},
{
"role": "tool",
"tool_call_id": "call_abc123",
"content": "{"temperature":"18°C","condition":"Partly cloudy"}"
}
]
}'Fähige Modelle entdecken
Durchsuche den Modellkatalog nach tools-fähigen Modellen:
GET /api/v1/models?supports=tools
Authorization: Bearer tok-your-keyAPI-Changelog
API-Changelog
- — Tool Calling live auf dem Gateway (Single-Model-Passthrough, Non-Streaming).
Ready to connect?
Create a free account, generate an API key, and paste it into any of the configs above.