At the end you have Cline on the OpenAI Compatible provider at https://api.uplinkswitch.com/v1, with one API key from the console and any model id on the list in the Model field, Claude included. Each request bills per token to the balance behind that key, and the live table below is what one Cline step costs on each model today.
Before you start
You need VS Code with the Cline extension installed, an account on the console with credit on it, and one key created there. Create the key for Cline alone, so its requests sit apart from any other tool on the Usage page. Nothing is installed on the UplinkSwitch side: the base URL and the key are the whole configuration.
Where the settings are
The Cline settings panel (the gear icon) → API Provider. Cline only takes an OpenAI-compatible base URL here, so the Anthropic-style variables from the Claude Code guide do not apply.
Steps
- API Provider: select OpenAI Compatible.
- Base URL:
https://api.uplinkswitch.com/v1. Enter it exactly as shown, with/v1on the end. - API Key: your UplinkSwitch key from the console. Leave Use Azure Identity Authentication unchecked.
- Model: type one id. Any id on the Models page works:model ids
claude-sonnet-5-5 claude-opus-5-5 gpt-6.1-sol gemini-3.1-pro-preview deepseek-v4-pro-0813 kimi-k3 - Custom Headers, under the Model field: click Add Header twice and enter
HTTP-Referer=https://uplinkswitch.aiandX-Title=Cline. The gateway records X-Title as the client app against each request in its log; the headers are optional and change nothing about the response. - Click Verify.
Model configuration
The optional Model Configuration section holds Max Output Tokens, Context Window size, Image Support, Computer Use (for models with tool calling), Input Price and Output Price. You fill these in yourself. For the prices, use the per-million figures on the Models page so Cline's cost line matches your balance. For Claude Sonnet 5.5 that is $1.20 in and $3.00 out today; the context window and maximum output are on its model page.
Which model id to type
Any chat id on the Models page. Cline's agent needs tool calling for every file read, edit and terminal command, so pick an id whose model page lists tools; the section below gives the tool tests we ran on two of them.
The Claude ids answer the OpenAI format as well as the Anthropic one, so claude-sonnet-5-5 goes in the same field as gpt-6.1-sol or deepseek-v4-pro-0813, with no second provider entry. Input price decides the task cost, because Cline sends the conversation and every tool result back on each step; pick by the input column in the table below. The uncensored coding builds work the same way: one id in the Model field, billed per token.
Each model page lists the context window and the maximum output where the developer publishes them. Put those two figures in Context Window size and Max Output Tokens so Cline trims the conversation before the model refuses it, instead of after.
Two abliterated ids on the OpenAI Compatible route, 2026-11-27
For glm-5.3-abliterated and deepseek-v4.1-flash-1017-abliterated the Cline fields are the same as above: Base URL https://api.uplinkswitch.com/v1, the id in Model, and in Model Configuration the context window the catalog lists, 131072 for GLM 5.3 Abliterated or 1000000 for DeepSeek V4.1 Flash Abliterated, whose catalog entry also gives 128000 as its maximum output. We did not run the extension itself; we sent the OpenAI-format request such a provider sends, a growing /chat/completions conversation with a long fixed system prompt: six turns per id, then three streamed requests.
In the six-turn runs every request from the second turn on read the prompt back from the cache: 97.9% of prompt tokens on GLM 5.3 Abliterated and 99.2% on DeepSeek V4.1 Flash Abliterated, reported as usage.prompt_tokens_details.cached_tokens. The streamed requests read the cache from the second one on as well. We sent no cache setting, and none is needed.
Tool calls on the same two ids were put through 840 requests that day, 20 per case on each serving route. Auto choice, two tools in one turn, strict nested schemas, the answer after a tool result, streamed calls and the Anthropic format passed every time except one dropped connection. A forced tool choice held on DeepSeek 59 of 60. On GLM some routes ignored it, and the gateway now sends such a request again to the next route.
| Model | Priced at | 20-turn session |
|---|---|---|
| GLM-5.3 Abliterated | this API | $0.7023 |
| DeepSeek V4.1 Flash 1017 Abliterated | this API | $0.1505 |
| Claude Sonnet 5.5 | developer list | $0.2028 |
| Claude Opus 5.5 | developer list | $0.4056 |
Not a Cline step this time: a whole 20-turn agent session, 825,472 cache-read, 32,753 uncached and 5,476 output tokens, from a Claude Code run on GLM 5.3 Abliterated on 2026-11-27, at live rates.
What a Cline task costs
One Cline step at 40,000 input tokens and 1,500 output tokens, which is a task that has read a few files and run a command or two. Input dominates because the file contents and tool results travel up again on every step. Nothing is counted at the cached rate.
| Model | Input / 1M | Output / 1M | List input | List output | Under list | One step, 40,000 in + 1,500 out |
|---|---|---|---|---|---|---|
| Claude Sonnet 5.5 | $1.20 | $3.00 | $2.00 | $10.00 | 40% on input | $0.0525 |
| Claude Opus 5.5 | $2.80 | $10.00 | $4.00 | $20.00 | 30% on input | $0.127 |
| GPT-6.1 Sol | $0.60 | $3.00 | $2.00 | $10.00 | 70% on input | $0.0285 |
| Gemini 3.1 Pro Preview | $1.20 | $7.20 | $2.00 | $12.00 | 40% on input | $0.0588 |
| DeepSeek V4 Pro 0813 | $0.792 | $1.188 | $1.32 | $3.96 | 40% on input | $0.0335 |
| Kimi K3 | $0.90 | $4.50 | $3.00 | $15.00 | 70% on input | $0.0428 |
| Kimi K2.7 Code | $0.426 | $1.7936 | $0.95 | $4.00 | 55% on input | $0.0197 |
| GLM 5.3 | $0.3276 | $1.0296 | $1.092 | $3.432 | 70% on input | $0.0146 |
USD per million tokens, live from GET /v1/catalog. List: the developer’s own published price. The last column is the step above at this base URL, nothing at the cached rate.
Claude Sonnet 5.5 at list is $0.095 for that step; here it is $0.0525, and a ten-step task is $0.525. GLM 5.3 has the lowest input price in the table, so the same ten steps are $0.1465 there. On Claude Sonnet 5.5 the 40,000 input tokens are 91% of the step, which is why the input column decides. Cline's OpenAI Compatible settings have no caching switch. When a response reports cached input tokens anyway, they bill at the model's cache-read rate where the model has one, which the Models page shows next to the input rate. The Claude Code pricing post, plans against the API works a day and a month of agent steps at these rates, and the 2026 API price table puts every developer side by side.
Real-model check today: Claude Sonnet 5.5, steady since Oct 19; Claude Opus 5.5, steady since Oct 19; GPT-6.1 Sol, steady since Oct 19; Gemini 3.1 Pro Preview, steady since Nov 24; DeepSeek V4 Pro 0813, steady since Nov 24; Kimi K3, steady since Nov 6; Kimi K2.7 Code, steady since Oct 23; GLM 5.3, steady since Oct 24. Each verdict is the live one from the daily real-model check, where every model on the key gets the same prompt once a day and the token counts are public.
Check it
Verify in the panel is the quick check. It fails when the base URL is missing /v1, so compare the field against the URL above before anything else. From a shell, the same key should list the models:
curl https://api.uplinkswitch.com/v1/models \
-H "Authorization: Bearer sk-uplink-live-..." \
-H "HTTP-Referer: https://uplinkswitch.ai" \
-H "X-Title: Cline"Then send one request the way Cline does. -i prints the headers: x-uplink-request-id names the request, and on a non-streamed answer x-uplink-charge is what it cost in USD.
curl -i https://api.uplinkswitch.com/v1/chat/completions \
-H "Authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-H "HTTP-Referer: https://uplinkswitch.ai" \
-H "X-Title: Cline" \
-d '{"model": "claude-sonnet-5-5", "messages": [{"role": "user", "content": "Say ok."}]}'Then send a message in Cline. The request shows on the console Usage page within seconds, with its tokens and the same charge, filterable by key and model.
Errors you will see
401 invalid_api_key: the key is wrong or revoked. Copy it again from the console.404 model_not_found: the id is not on the Models page at this base URL. Cline shows it as "Model Not Found". Copy the id from the page rather than typing it.402 insufficient_balance: the balance does not cover the request. Top up in the console.402 monthly_limit_reached: the key hit the monthly spend limit you set on it. Raise it in the console, or wait for the first of the month.403 scope_denied: the key carries a model allowlist and this id is not on it. Pick an allowed id or use a key without the limit.429 rate_limited: Cline went past the account's rate tier or the key's own limit. The response carriesretry-afterin seconds. Wait that long and resend.- Verify fails: the base URL is missing
/v1. Enter it exactly as shown above, with/v1.
Add the MCP server
Cline can also call UplinkSwitch as an MCP server: live prices, a cost estimate and the daily real-model check as tools. In the MCP Servers panel open Configure, then Configure MCP Servers, and add:
{
"mcpServers": {
"uplinkswitch": {
"type": "streamableHttp",
"url": "https://api.uplinkswitch.com/mcp",
"headers": { "Authorization": "Bearer sk-uplink-live-..." },
"disabled": false,
"autoApprove": ["list_models", "list_media_models", "media_model", "estimate", "proof", "media_quote", "generation", "generations"]
}
}
}autoApprove lets the read-only tools run without a prompt; chat and generate still ask. The tools are list_models, list_media_models, media_model, estimate and proof (no key needed), then chat, compare, search, embed, rerank, transcribe, media_quote, generate, generation and generations on the key: every model on the catalog is a tool, compare asks two to five models at once, and generate runs any image, video, speech, music or 3D model and returns the files to Cline, a finished image inline. Each run is billed to the key like any other request; a failed one is refunded. The server card is at https://api.uplinkswitch.com/mcp/server-card.
Good to know
- The Model field takes one id at a time. To switch models, edit the field.
- Cline's OpenAI Compatible settings have no caching switch. Cached input bills at the cache read price on the Models page.
- "Model Not Found" means the id is not on the Models page at this base URL. Copy it from there rather than typing it.
- The same panel is in Zoo Code and Kilo Code. The Roo Code guide covers Zoo Code after the Roo shutdown, and the Kilo Code guide adds the
kilo.jsonform for the CLI. OpenCode is the terminal agent with the same base URL in its own config file. - One key covers Cline and Cursor on the same balance. A key per tool keeps the spend apart on the Usage page.
Questions
Get a key in the console: prepaid credit, no subscription, 30-day price lock. Bonus credit on larger top-ups: +5% from $50, +10% from $100, +15% from $120.