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_askon 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_regionororigin_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-consensusRoute 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_..." }
}
}
}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 capability | Tokonomix support | How |
|---|---|---|
| Plan mode | Yes | Any chat model via the OpenAI-compatible base URL |
| Act mode (edits + commands) | Yes | The same model drives the autonomous loop |
| Consensus on a risky step | Yes | tokonomix_consensus_ask via MCP |
| Cost + region control | Yes | Per-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.

