How to wire a coding agent (Claude Code, Cursor, raw HTTP) to the Tokonomix gateway and consensus MCP.
How to wire a coding agent (Claude Code, Cursor, raw HTTP) to the Tokonomix gateway and the
tokonomix-council-mcpconsensus server.
One API key, one base URL, two layers:
https://tokonomix.ai/api/v1)
— OpenAI-compatible passthrough to 130+ models. Chat, embeddings, image
generation, audio transcription — all from one endpoint."mode": "consensus" in the body, or via the
tokonomix-council-mcp MCP server
(npx tokonomix-mcp). Several models answer in parallel; an
independent judge synthesises and flags where they disagree.| Framework | Guide |
|---|---|
| Claude Code (MCP) | claude-code.md |
| Cursor (MCP) | cursor.md |
| Raw HTTP / OpenAI SDK | raw-http.md |
tok_live_... key reaches chat, images, embeddings, and
audio. No separate keys per modality./api/v1/models to discover available slugs; do not hardcode
them in prompts or config files."hosting_region": "eu" to pin a consensus council to
EU-hosted models only. Required for personal-data prompts.| Package | Registry | Purpose |
|---|---|---|
tokonomix-council-mcp |
npmjs.com | MCP server exposing consensus + balance tools |
Install: npm install -g tokonomix-council-mcp or use
npx tokonomix-mcp (no global install needed).
| Repo | URL |
|---|---|
| MCP server | https://github.com/TokonoMix/tokonomix-council-mcp |
| Agents Never Sleep harness | https://github.com/TokonoMix/agents-never-sleep |
The MCP server's capability manifest is available without auth:
GET https://tokonomix.ai/.well-known/mcp/server.json