{"id":434,"date":"2026-11-09T20:02:10","date_gmt":"2026-11-09T12:02:10","guid":{"rendered":"https:\/\/qoraapi.com\/blog\/?p=434"},"modified":"2026-11-13T10:02:27","modified_gmt":"2026-11-13T02:02:27","slug":"cline-cheap-claude-api","status":"publish","type":"post","link":"https:\/\/qoraapi.com\/blog\/cline-cheap-claude-api\/","title":{"rendered":"Cline with a Cheap Claude API: Setup and Real Costs"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Cline is one of the best agentic coding extensions for VS Code, and it is also one of the fastest ways to burn through an Anthropic balance. The reason is structural, not a bug: every step of a Cline task is a fresh API call that re-sends the system prompt, the tool definitions, the files it has read and the conversation so far. A task that touches a dozen files can easily push more than a million input tokens through Claude before it finishes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide shows two ways to point Cline at a cheaper Claude endpoint, Qora API, and then works through what a real Cline workload costs at Anthropic&#8217;s official prices versus Qora&#8217;s. Every price below was taken from <a href=\"https:\/\/platform.claude.com\/docs\/en\/about-claude\/pricing\" target=\"_blank\" rel=\"noopener\">Anthropic&#8217;s pricing page<\/a> and from Qora&#8217;s live model pages in November 2026. Prices change, so treat the <a href=\"https:\/\/qoraapi.com\/pricing\">Qora pricing page<\/a> as the source of truth.<\/p>\n\n\n\n<div class=\"qora-tldr\" style=\"border:1px solid #e4e8ee;border-left:4px solid #14b8a6;border-radius:8px;padding:12px 18px;margin:0 0 24px\"><p style=\"margin:0\"><strong>Short answer:<\/strong> In Cline, set API Provider to Anthropic, tick \u201cUse custom base URL\u201d and enter <code>https:\/\/qoraapi.com<\/code> with your Qora key, or use the OpenAI Compatible provider with <code>https:\/\/qoraapi.com\/v1<\/code> for any model ID. On Qora, Claude Sonnet 4.6 costs $0.90 \/ $4.50 per 1M tokens versus $3 \/ $15 at Anthropic; in this guide&#8217;s example of 110 tasks a month, that is about $162 instead of $541.<\/p><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What you need before you start<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A Qora API key.<\/strong> Sign up at <a href=\"https:\/\/qoraapi.com\/register\">qoraapi.com\/register<\/a>, open the Console and create a key.<\/li>\n\n\n\n<li><strong>A balance.<\/strong> Qora is pay-as-you-go in USD with no subscription. The minimum top-up is $50, and unused balance can be refunded on request. New users can ask for $5 of trial credit (details at the end).<\/li>\n\n\n\n<li><strong>The exact model ID.<\/strong> Model IDs are case-sensitive and must match Qora&#8217;s list. For example: <code>claude-sonnet-4-6<\/code>, <code>claude-opus-4-7<\/code>, <code>claude-sonnet-5-5<\/code>, <code>claude-haiku-4-5-20251001<\/code>.<\/li>\n\n\n\n<li><strong>Cline installed in VS Code.<\/strong> Settings live behind the gear icon in the Cline panel.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Qora exposes two compatible endpoints, and Cline can use either:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Endpoint<\/th><th>Base URL<\/th><th>Cline provider<\/th><\/tr><\/thead><tbody><tr><td>Anthropic-compatible (Messages API)<\/td><td>https:\/\/qoraapi.com<\/td><td>Anthropic, with &#8220;Use custom base URL&#8221;<\/td><\/tr><tr><td>OpenAI-compatible (Chat Completions)<\/td><td>https:\/\/qoraapi.com\/v1<\/td><td>OpenAI Compatible<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 0: test the key with curl<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before touching Cline, confirm the key and model ID work. If this fails, Cline will fail too, and the error is easier to read here.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl https:\/\/qoraapi.com\/v1\/chat\/completions \\\n  -H \"Authorization: Bearer $QORA_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"model\": \"claude-sonnet-4-6\", \"messages\": &#91;{\"role\": \"user\", \"content\": \"Reply with OK\"}]}'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A 401 means the key is wrong or has a stray space. A 404 or &#8220;model not found&#8221; means the model ID does not match Qora&#8217;s list exactly. A billing error means the balance has not been topped up yet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Option A: Anthropic provider with a custom base URL (best for Claude)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Cline&#8217;s Anthropic provider talks to the native Messages API, which is what Claude models are designed around. This is the path to use if you want Cline&#8217;s Claude-specific features, such as the &#8220;Enable Extended Thinking&#8221; checkbox under the model selector.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the Cline panel and click the gear icon.<\/li>\n\n\n\n<li>Set <strong>API Provider<\/strong> to <strong>Anthropic<\/strong>.<\/li>\n\n\n\n<li>Paste your Qora key into <strong>Anthropic API Key<\/strong>.<\/li>\n\n\n\n<li>Tick <strong>Use custom base URL<\/strong> and enter https:\/\/qoraapi.com. Do not add \/v1: the Anthropic client appends \/v1\/messages itself.<\/li>\n\n\n\n<li>Pick a model from the <strong>Model<\/strong> dropdown. The ID Cline sends has to exist on Qora, so choose one that matches Qora&#8217;s list (for example Claude Sonnet 4.6 or Claude Opus 4.7).<\/li>\n\n\n\n<li>Start a small task, such as &#8220;list the files in this folder&#8221;, to confirm it works.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The limitation of this path is the dropdown. Cline only lists the Claude models it knows about. If the model you want is not there, or its ID differs from Qora&#8217;s, use Option B, where you type the ID yourself.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Option B: OpenAI Compatible provider (any model ID)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Cline&#8217;s OpenAI Compatible provider sends standard Chat Completions requests to whatever base URL you give it. It is the more flexible path, because the model field is free text, and it lets you use the same key for GPT, Gemini or Grok when you want to compare.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In Cline settings, set <strong>API Provider<\/strong> to <strong>OpenAI Compatible<\/strong>.<\/li>\n\n\n\n<li><strong>Base URL:<\/strong> <code>https:\/\/qoraapi.com\/v1<\/code> (no trailing slash).<\/li>\n\n\n\n<li><strong>API Key:<\/strong> your Qora key.<\/li>\n\n\n\n<li><strong>Model ID:<\/strong> for example <code>claude-sonnet-4-6<\/code> or <code>claude-opus-4-7<\/code>.<\/li>\n\n\n\n<li>Open <strong>Model Configuration<\/strong> and fill in Context Window, Max Output Tokens, Image Support and the Input\/Output price per million tokens.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5 matters more than it looks. Cline shows a running cost for each task, and with a custom provider it can only calculate that from the prices you enter. If you leave them blank or at defaults, the number in the task header is meaningless. Enter Qora&#8217;s price for the model you chose, for example 0.90 input and 4.50 output for Claude Sonnet 4.6.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The trade-off: on the OpenAI-compatible path, Claude-specific request features depend on how the gateway translates them. If you want Cline&#8217;s extended thinking toggle and the native Claude request format, prefer Option A.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which Claude model to run Cline on<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Qora prices models in groups. Most Claude models are in the default group at 30% of Anthropic&#8217;s price. The newest models (Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.1, Opus 5 and Opus 4.8) are only served in the Stable Claude group at 0.6x, which is 40% off. Some older models are offered in both groups. Here are the ones that make sense for Cline, per 1M tokens:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Model (Qora ID)<\/th><th>Anthropic official (in \/ out)<\/th><th>Qora (in \/ out)<\/th><th>Qora group<\/th><\/tr><\/thead><tbody><tr><td>Claude Sonnet 4.6 (claude-sonnet-4-6)<\/td><td>$3.00 \/ $15.00<\/td><td>$0.90 \/ $4.50<\/td><td>Default (70% off)<\/td><\/tr><tr><td>Claude Sonnet 5 (claude-sonnet-5)<\/td><td>$2.00 \/ $10.00<\/td><td>$0.60 \/ $3.00<\/td><td>Default (70% off)<\/td><\/tr><tr><td>Claude Sonnet 5.5 (claude-sonnet-5-5)<\/td><td>$2.00 \/ $10.00<\/td><td>$1.20 \/ $6.00<\/td><td>Stable (40% off)<\/td><\/tr><tr><td>Claude Opus 4.7 (claude-opus-4-7)<\/td><td>$5.00 \/ $25.00<\/td><td>$1.50 \/ $7.50<\/td><td>Default (70% off)<\/td><\/tr><tr><td>Claude Opus 5.5 (claude-opus-5-5)<\/td><td>$4.00 \/ $20.00<\/td><td>$2.40 \/ $12.00<\/td><td>Stable (40% off)<\/td><\/tr><tr><td>Claude Haiku 4.5 (claude-haiku-4-5-20251001)<\/td><td>$1.00 \/ $5.00<\/td><td>$0.30 \/ $1.50<\/td><td>Default (70% off)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sources: <a href=\"https:\/\/platform.claude.com\/docs\/en\/about-claude\/pricing\" target=\"_blank\" rel=\"noopener\">Anthropic pricing<\/a>; Qora model pages for <a href=\"https:\/\/qoraapi.com\/models\/claude-sonnet-4-6-api\">Sonnet 4.6<\/a>, <a href=\"https:\/\/qoraapi.com\/models\/claude-sonnet-5-api\">Sonnet 5<\/a>, <a href=\"https:\/\/qoraapi.com\/models\/claude-sonnet-5-5-api\">Sonnet 5.5<\/a>, <a href=\"https:\/\/qoraapi.com\/models\/claude-opus-4-7-api\">Opus 4.7<\/a>, <a href=\"https:\/\/qoraapi.com\/models\/claude-opus-5-5-api\">Opus 5.5<\/a> and <a href=\"https:\/\/qoraapi.com\/models\/claude-haiku-4-5-api\">Haiku 4.5<\/a>, checked November 2026.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two details change the ranking. First, Anthropic&#8217;s docs say Claude 4.7 and later use a newer tokenizer that produces about 30% more tokens for the same text, so Sonnet 4.6 and Sonnet 5 at the same per-token price are not equal: the same prompt is cheaper on the older tokenizer. Second, the group discount means Sonnet 5 and Opus 4.7 on Qora cost less per token than Sonnet 5.5 and Opus 5.5, even though Anthropic prices the 5.5 models lower.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Use different models for Plan and Act<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Cline has a setting, &#8220;Use different models for Plan and Act&#8221;, that switches models automatically when you change modes. A sensible cheap setup is an Opus model for Plan (reading code and deciding what to do, few output tokens) and Sonnet for Act (the long loop of edits, terminal commands and retries, where most tokens go). With Option B you can point both modes at the same Qora key and only change the model ID.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Cline actually costs: a worked example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Cline&#8217;s cost is dominated by input tokens, because each request re-sends the growing context. The numbers below are an illustrative workload, not a measurement: one medium feature task of 40 requests, averaging 35,000 input tokens and 1,200 output tokens per request. That comes to 1.4M input and 48K output tokens per task. The monthly column assumes 5 such tasks a day for 22 working days (110 tasks). No prompt caching is assumed on either side.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Model<\/th><th>Per task, official<\/th><th>Per task, Qora<\/th><th>Month (110 tasks), official<\/th><th>Month, Qora<\/th><\/tr><\/thead><tbody><tr><td>Claude Sonnet 4.6<\/td><td>$4.92<\/td><td>$1.48<\/td><td>$541.20<\/td><td>$162.36<\/td><\/tr><tr><td>Claude Sonnet 5<\/td><td>$3.28<\/td><td>$0.98<\/td><td>$360.80<\/td><td>$108.24<\/td><\/tr><tr><td>Claude Sonnet 5.5<\/td><td>$3.28<\/td><td>$1.97<\/td><td>$360.80<\/td><td>$216.48<\/td><\/tr><tr><td>Claude Opus 4.7<\/td><td>$8.20<\/td><td>$2.46<\/td><td>$902.00<\/td><td>$270.60<\/td><\/tr><tr><td>Claude Opus 5.5<\/td><td>$6.56<\/td><td>$3.94<\/td><td>$721.60<\/td><td>$432.96<\/td><\/tr><tr><td>Claude Haiku 4.5<\/td><td>$1.64<\/td><td>$0.49<\/td><td>$180.40<\/td><td>$54.12<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The formula is simple enough to run on your own numbers: cost = input_M \u00d7 input_price + output_M \u00d7 output_price. To get your own token counts, run a normal week through Cline and read the usage log in the Qora Console.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic&#8217;s prompt caching changes the official numbers: cache reads cost 10% of the base input price on most models, and Cline&#8217;s Anthropic provider supports caching. If most of your input is a cached prefix, the official bill can drop sharply. Check how cached tokens show up in your Qora usage log before relying on caching savings on either side.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Five ways to make Cline cheaper on any provider<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Start a new task when the topic changes.<\/strong> A long task carries every earlier file read into every later request.<\/li>\n\n\n\n<li><strong>Be specific about files.<\/strong> Mention the files Cline should touch with <code>@<\/code> instead of letting it search the whole repository.<\/li>\n\n\n\n<li><strong>Keep auto-approve on a short leash.<\/strong> An unattended loop of failing test runs is the most expensive thing Cline can do.<\/li>\n\n\n\n<li><strong>Use Haiku for mechanical work.<\/strong> Renames, boilerplate and docstrings do not need Opus.<\/li>\n\n\n\n<li><strong>Keep the model&#8217;s context window setting honest.<\/strong> Under Option B, the context window you enter controls when Cline condenses history.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For more on cutting spend at the API level, see <a href=\"https:\/\/qoraapi.com\/blog\/reduce-ai-api-costs\/\">how to reduce AI API costs<\/a>. If you also use Anthropic&#8217;s own CLI agent, the same key works there: see <a href=\"https:\/\/qoraapi.com\/blog\/claude-code-cheaper-api\/\">Claude Code with a cheaper API<\/a>. Setup for Cursor and Continue is in <a href=\"https:\/\/qoraapi.com\/blog\/connect-cursor-cline-continue-custom-api-endpoint\/\">connecting Cursor, Cline and Continue to a custom endpoint<\/a>, and Aider users can follow <a href=\"https:\/\/qoraapi.com\/blog\/aider-cheap-claude-api\/\">Aider with a cheap Claude API<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>401 \/ invalid key:<\/strong> re-paste the key, check for whitespace, and make sure you are not still on a key from another provider.<\/li>\n\n\n\n<li><strong>Model not found:<\/strong> the ID is wrong. Copy it character for character from the Qora <a href=\"https:\/\/qoraapi.com\/models\">models list<\/a>.<\/li>\n\n\n\n<li><strong>Option A fails but curl works:<\/strong> check that the custom base URL is <code>https:\/\/qoraapi.com<\/code> without <code>\/v1<\/code>. If it still fails, switch to Option B with <code>https:\/\/qoraapi.com\/v1<\/code>.<\/li>\n\n\n\n<li><strong>Task cost looks wrong:<\/strong> under Option B, fill in the Input and Output prices in Model Configuration.<\/li>\n\n\n\n<li><strong>429 errors:<\/strong> slow down auto-approved loops and retry with backoff. A billing message inside a 429 means the balance is empty.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use Claude in Cline without an Anthropic account?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Cline only needs a base URL, a key and a model ID. With Qora you use the Anthropic provider and a custom base URL of https:\/\/qoraapi.com, or the OpenAI Compatible provider with https:\/\/qoraapi.com\/v1. No Anthropic account is involved.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which is cheaper for Cline, Sonnet 4.6 or Sonnet 5.5?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On Qora, Sonnet 4.6 is $0.90 \/ $4.50 per 1M tokens and Sonnet 5.5 is $1.20 \/ $6.00, because 5.5 is only offered in the Stable group. Sonnet 5.5 also uses the newer tokenizer, which Anthropic says produces about 30% more tokens for the same text. For the same work, Sonnet 4.6 costs less. Sonnet 5 at $0.60 \/ $3.00 is cheaper again per token.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I use the Anthropic or the OpenAI Compatible provider?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the Anthropic provider for Claude when the model you want is in Cline&#8217;s dropdown, since it uses the native Claude request format and Cline&#8217;s Claude features. Use OpenAI Compatible when you need a model ID that is not in the dropdown, or want to switch between Claude, GPT and Gemini on one key.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does Qora charge a subscription?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. It is pay-as-you-go in USD with a $50 minimum top-up, and unused balance can be refunded on request.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I see what a Cline task really cost?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Qora Console usage log shows tokens and cost per request. Cline&#8217;s own task cost display is only accurate if it knows the model&#8217;s prices, so enter them in Model Configuration when you use the OpenAI Compatible provider.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Run Cline on Claude for less<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most Claude models on Qora cost 30% of Anthropic&#8217;s price, and the newest ones cost 60%, through one key that also covers GPT, Gemini, Grok and 350+ other models. Create an account at <a href=\"https:\/\/qoraapi.com\/register\">qoraapi.com\/register<\/a> and compare every model on the <a href=\"https:\/\/qoraapi.com\/pricing\">pricing page<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$5 trial credit:<\/strong> new users can DM <a href=\"https:\/\/x.com\/QoraAPI\">@QoraAPI on X<\/a> or email <a href=\"mailto:support@qoraapi.com\">support@qoraapi.com<\/a>. It is added on request, not automatically.<\/li>\n\n\n\n<li><strong>Partners and resellers:<\/strong> get an extra 30% on top-ups. Top up $1,000 and get $1,300 of balance.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Want the full Claude price list first? See <a href=\"https:\/\/qoraapi.com\/blog\/cheap-claude-api\/\">the cheap Claude API guide<\/a>.<\/p>\n\n\n<p>Using Zed? See <a href=\"https:\/\/qoraapi.com\/blog\/zed-openai-compatible-provider\/\">how to add Qora API as an OpenAI-compatible provider in Zed<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cline is one of the best agentic coding extensions for VS Code, and it is also one of the fastest ways to burn through an Anthropic balance. The reason is structural, not a bug: every step of a Cline task is a fresh API call that re-sends the system prompt, the tool definitions, the files [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-434","post","type-post","status-publish","format-standard","hentry","category-ai-api"],"_links":{"self":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/comments?post=434"}],"version-history":[{"count":3,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/434\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/434\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/media?parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/categories?post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/tags?post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}