Skip to content
Cline logo

Cline via Tokonomix

Give Cline's autonomous Plan/Act loop 130+ models on one key — and call cross-family consensus on the changes that matter.

OpenAI-compatible base URLMCP-capableAutonomous VS Code agentApache-2.0 · open sourceVS Code · all platforms
Cline — autonomous coding agent for VS Code, via Tokonomix

What is Cline?

Cline is an open-source autonomous coding agent that lives in VS Code. It works in two phases — Plan (it explores your codebase and proposes an approach) and Act (it edits files, runs terminal commands and iterates) — pausing for your approval at each risky step.

  • Reads and edits files across your workspace, runs commands, and reacts to their output.
  • Asks for human approval before applying edits or running commands (auto-approve is opt-in).
  • Connects to any OpenAI-compatible endpoint, so the model behind it is your choice.
  • Speaks MCP, so it can call external tools — including a consensus tool — mid-task.

Why route Cline through Tokonomix?

Cline is autonomous: it chains many model calls, and one confidently wrong decision early in a Plan can cascade through the whole Act phase. Tokonomix adds breadth, a verification step and cost control — without leaving VS Code.

  • Pick any of 130+ models per task from one key — a fast model for routine edits, a frontier model for hard reasoning.
  • Add the Tokonomix MCP server so Cline can call tokonomix_consensus_ask on a risky refactor instead of trusting one model.
  • Cap spend per call so an autonomous loop can’t run away with your budget.
  • Pin models by hosting_region or origin_country — Cline streams your source code, so routing control matters.

Connect Tokonomix to Cline

Cline reaches Tokonomix two complementary ways: as the model that drives it (an OpenAI-compatible provider) and as a consensus tool (MCP). Set up both — they don’t conflict.

Route A — Tokonomix as the model

Cline settings → API Provider → OpenAI Compatible:

Base URL : https://tokonomix.ai/api/v1
API Key  : tok_live_your-key
Model ID : anthropic/claude-sonnet-4-6
# or any slug from GET /api/v1/models
# Opt-in (planning/review only, no tool-calling): tokonomix-consensus

Route B — consensus via MCP

Add the Tokonomix MCP server (Cline → MCP Servers → Configure):

{
  "mcpServers": {
    "tokonomix": {
      "command": "npx",
      "args": ["-y", "tokonomix-mcp"],
      "env": { "TOKONOMIX_API_KEY": "tok_live_..." }
    }
  }
}
No key yet?

Create a free account at tokonomix.ai/dashboard/signup — it includes a free starter balance — then paste the key into Cline (Route A) or your mcpServers config (Route B).

What Tokonomix powers in Cline

Cline capabilityTokonomix supportHow
Plan modeYesAny chat model via the OpenAI-compatible base URL
Act mode (edits + commands)YesThe same model drives the autonomous loop
Consensus on a risky stepYestokonomix_consensus_ask via MCP
Cost + region controlYesPer-call spend caps + hosting_region / origin_country

Verify it works

Pick anthropic/claude-sonnet-4-6 (or any slug) as Cline’s model and run a small task — you should see a metered call in your Tokonomix dashboard, and the consensus tool appear once the MCP server is added.

  • In a scratch project, ask Cline to make a one-line edit and approve it.
  • Confirm the edit applies and (for MCP) the Agent can call the consensus tool on request.
  • Open your Tokonomix dashboard and confirm the request and token usage are logged.

Model selection

Which model and endpoint should my agent use?

Pick by what your agent does, then swap the model id any time — every model in the catalog works through the same key.

What your agent doesUse this
Edits files / calls tools and streams responses (most coding agents)An Anthropic model via the Anthropic endpoint (tools + streaming both work)
Calls tools but does not need streaming (any model)The OpenAI-compatible endpoint with a single model id
Wants tools and streaming on a non-Anthropic modelRun non-streaming for now — streaming tool-calls on other providers is not enabled yet
Plain chat, no toolsEither endpoint; streaming is fine
Wants a cross-model verdict (consensus) on a high-stakes answerSet model to tokonomix-consensus on the OpenAI-compatible endpoint — note: consensus rejects tool requests (no tool-calling)
Endpoint & API reference (technical)

anthropic-messages → https://tokonomix.ai/api/anthropic — tools ✓, streaming ✓ (use an Anthropic model). openai-completions → https://tokonomix.ai/api/v1 — tools ✓ (single-model passthrough), streaming with tools not yet enabled. Plain chat: streaming works on both. Consensus: openai-completions, model tokonomix-consensus, no tools. Swap the model id to any slug returned by GET /api/v1/models.

Browse all models →

Related agents