How to Use Claude in Cursor, Cline and Continue With Your Own API Key (2026)
Set up Claude Sonnet 5.5 and Opus 5.5 in Cursor, Cline and Continue through one OpenAI-compatible endpoint: exact fields, config.yaml, and what to check when it fails.

Cursor, Cline and Continue all let you bring your own model through an OpenAI-compatible endpoint, so you can run Claude Sonnet 5.5 or Opus 5.5 inside them on a pay-per-token key without a separate provider account. This guide gives the exact fields for each tool, plus the mistakes that cause most “invalid key” errors.
Before you start: one key, one base URL
- Sign up at cloudgpu.app with an email address or a Google account.
- Top up on the billing page: USDT on the TRC-20 network, or the card checkout, which also offers Alipay, Google Pay and Apple Pay.
- Create a key in the API console. It starts with
cgw-sk-.
Every tool below uses the same three values:
- Base URL:
https://cloudgpu.app/v1 - API key:
cgw-sk-... - Model:
claude-sonnet-5-5orclaude-opus-5-5
The per-token rate for every model is on the API page. Rates change, so this post does not repeat them. You pay per token from a prepaid balance, with no subscription. Sonnet is the default for chat, edits and agent tasks; Opus is for hard refactors, architecture and long agent runs.
Cursor
- Open Cursor Settings → Models.
- Under API Keys, paste your
cgw-sk-...key into OpenAI API Key. - Turn on Override OpenAI Base URL and enter
https://cloudgpu.app/v1. - Click Add model and type
claude-sonnet-5-5. Addclaude-opus-5-5too if you want both, and make sure the new entries are enabled. - Click Verify, then choose the model in the chat or agent dropdown.
Things to know:
- Pick your custom entry, not a built-in one. Cursor ships its own Claude models. If a built-in model has the same name as the one you added, select your custom entry, or the request may run on Cursor’s plan instead of your key. After a test prompt, check that usage appears in your API console.
- Tab completion is not covered. Your key is used for the chat and agent models you select; Cursor’s Tab autocomplete uses Cursor’s own models.
- Menu labels shift between Cursor versions. Look for “OpenAI API Key” and “Override OpenAI Base URL”.
Cline (VS Code)
- Open the Cline panel and click the gear icon.
- API Provider: choose OpenAI Compatible.
- Base URL:
https://cloudgpu.app/v1 - API Key: your
cgw-sk-...key - Model ID:
claude-sonnet-5-5 - Click Done and give it a small task to confirm.
Things to know:
- Use the OpenAI Compatible provider; that is the setup we have tested. The gateway also serves the native Messages API at
https://cloudgpu.app/v1/messages, but we have not tested Cline’s built-in Claude provider against it. - Cline is input-heavy. Each step of its agent loop re-sends the task context, so input tokens make up most of your bill. Keep Sonnet as the default and switch the Model ID to
claude-opus-5-5only for the tasks that need it.
Continue (VS Code and JetBrains)
Continue is configured in ~/.continue/config.yaml. Add Claude as an OpenAI-provider model:
models:
- name: Claude Sonnet 5.5 (CloudGPU)
provider: openai
model: claude-sonnet-5-5
apiBase: https://cloudgpu.app/v1
apiKey: ${{ secrets.CLOUDGPU_API_KEY }}
roles:
- chat
- edit
- apply
- name: Claude Opus 5.5 (CloudGPU)
provider: openai
model: claude-opus-5-5
apiBase: https://cloudgpu.app/v1
apiKey: ${{ secrets.CLOUDGPU_API_KEY }}
roles:
- chat
Then put CLOUDGPU_API_KEY=cgw-sk-... in ~/.continue/.env, reload the editor window, and select the model in the Continue sidebar.
Things to know:
- Keep
provider: openai. Continue’s Claude-specific provider expects the native Messages API format. - Do not use Claude for autocomplete. Tab autocomplete fires on nearly every keystroke; use Claude for chat, edit and apply, and a small, fast model for autocomplete.
When it does not work
Almost every failure is one of four things:
- Base URL without
/v1, or with a trailing slash. It must be exactlyhttps://cloudgpu.app/v1. - Wrong provider type. It must be the OpenAI or OpenAI-compatible option, not a Claude-native one.
- Model ID typo. Use the exact IDs, such as
claude-sonnet-5-5, not “Claude Sonnet 5.5” or a dated variant. - Zero balance. Requests fail once the prepaid balance runs out. Check it on the billing page.
You can rule out the tool entirely with one cURL call:
curl https://cloudgpu.app/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cgw-sk-..." \
-d '{
"model": "claude-sonnet-5-5",
"messages": [{"role": "user", "content": "ok?"}]
}'
If that works and the tool does not, the problem is in the tool’s settings.
What you are trading
cloudgpu.app is an independent gateway, not an official Claude integration. The gateway forwards each request to the infrastructure serving that model. There is no automatic failover, so if a model’s upstream is down, that model is down here too. Prompt and completion bodies are not stored; token counts, the model name and error codes are kept for billing. There is no SLA. For an introduction to the models and payment methods, see Claude API access with Alipay, card or USDT.
Start with a small balance
Set up one tool first, top up a small amount, and use it for a normal day of coding on Sonnet. Then look at the usage in the console: that number tells you what a sensible balance looks like for you. Get your key at the API page.
Frequently asked questions
Which base URL do Cursor, Cline and Continue need?
https://cloudgpu.app/v1, with no trailing slash.
Which provider type should I choose?
The OpenAI or OpenAI-compatible option. The Claude-native provider types expect a different API format.
Does Cursor's Tab autocomplete use my key?
No. Your key is used for the chat and agent models you select; Tab autocomplete uses Cursor's own models.
Where are the current rates?
On the API page. You pay per token from a prepaid balance, and rates can change.
Try cloudgpu.app — no credit card required
The billing period and minimum charge are shown before you confirm a rental. Review the quote for your selected configuration.