Set Up Continue with an OpenAI-Compatible Endpoint
Continue talks to any server that speaks the OpenAI chat format, so pointing it at a different provider takes one model block and about two minutes. This page gives the exact config, a way to test it, and fixes for the errors people hit.
Updated

Key points
- Use provider openai, set apiBase to the endpoint ending in /v1, and set the model to uncensored.
- Test the key with curl before touching the editor, so you know whether a failure is in the key or in Continue.
- Keep agent and chat parallelism at 8 or below to stay inside the concurrency limit.
- A 404 almost always means the apiBase is missing /v1 or has an extra path segment.
The short version
If you searched for continue openai compatible api, here is the answer first. Continue treats any OpenAI-style server as a model with provider: openai. You give it the server address in apiBase, the key in apiKey, and a model name. Open the Continue config (the gear icon in the Continue panel, or ~/.continue/config.yaml) and add this:
name: Uncensored setup
version: 1.0.0
schema: v1
models:
- name: Uncensored
provider: openai
model: uncensored
apiBase: https://api.uncensoredqwen.cc/v1
apiKey: YOUR_API_KEY
roles:
- chat
- edit
- apply
Save the file. Continue reloads it on its own, and the model shows up in the dropdown at the bottom of the chat box. Pick it, type a question, and you should see a streamed answer within a second or two. If you do not have a key yet, the API key page walks through sign-up, and new accounts can claim a small trial credit there without a card.
What you need before you edit anything
Three values go into the config. Write them down once so you do not hunt for them later.
- Base URL:
https://api.uncensoredqwen.cc/v1. It must end in/v1. Continue appends/chat/completionsitself. - Model ID:
uncensored. The service exposes a single model, so there is nothing to choose between. - API key: sent as
Authorization: Bearer <key>. Continue does this for you when you setapiKey.
The endpoint supports POST /v1/chat/completions and GET /v1/models. That covers everything Continue needs for chat, edit and apply. It does not offer embeddings, so if you want Continue's codebase indexing, point the embeddings role at a different provider or a local model. Be clear about what you are connecting to, too: this is a hosted open-weight model run by an independent provider, not the official API of any model vendor. The quickstart in the docs has the same values in one place.
Test the key outside the editor
Before you blame Continue for a failure, make one plain request. It takes ten seconds and splits the problem in half.
curl https://api.uncensoredqwen.cc/v1/models \
-H "Authorization: Bearer $UNCENSORED_KEY"
curl https://api.uncensoredqwen.cc/v1/chat/completions \
-H "Authorization: Bearer $UNCENSORED_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Write a one-line Python function that reverses a string."}]}'
The first call lists the model. The second returns a normal chat completion. If both work, the key and URL are fine and any remaining problem lives in the Continue config. If the first call returns 401, the key is wrong or has a stray space. Check the response headers too: X-Balance-USD shows what is left on the account, which is handy when a long editing session starts failing for no visible reason.
Roles, defaults and settings worth changing
The roles list tells Continue what to use a model for. chat is the side panel, edit is the inline rewrite you trigger on a selection, and apply turns a suggested snippet into a real file change. One model can hold all three. If you later add a second provider, you can give it a different role, for example a cheaper local model for apply.
Sampling options
For code, a lower temperature gives more repeatable answers. Add a block under the model:
defaultCompletionOptions:
temperature: 0.3
maxTokens: 2048
The API passes temperature, top_p, stop, seed and the penalty parameters through to the model. max_tokens is optional on this service, since the completion can use whatever remains of the 100,000-token window, but capping it in Continue keeps a runaway answer from eating your balance. Use a higher cap for edit and apply work on big files, because a rewritten function is often longer than the question that asked for it.
Several models for different jobs
You can list the same endpoint twice under different names with different options: one entry at temperature 0.2 for refactors and one at 0.8 for brainstorming names or writing test data. Both use model: uncensored. It is a cheap way to switch behavior without editing the file each time.
If your Continue still uses config.json
Older Continue installs keep settings in ~/.continue/config.json. The same connection looks like this:
{
"models": [
{
"title": "Uncensored",
"provider": "openai",
"model": "uncensored",
"apiBase": "https://api.uncensoredqwen.cc/v1",
"apiKey": "YOUR_API_KEY"
}
]
}
Continue has been moving toward the YAML format, so new setups should prefer it, but both describe the same thing: provider, model, base URL and key. If the extension offers to migrate the file, accept and compare the result with the YAML above. Keep the file out of version control either way, since it holds a live key.
Working with a 100,000-token window
The context window is 100,000 tokens for prompt plus completion together. In Continue that matters most when you attach many files with @ mentions or paste long diffs. A typical source file is a few thousand tokens, so you can include a good number of them, but the window is shared with the reply.
A few habits help. Attach the files that matter instead of the whole folder. Start a new chat when the topic changes, because Continue sends the conversation history with every message and old turns cost input tokens each time. Ask for a diff or a single function when that is all you need, not the entire file back. Input is billed at $0.15 per million tokens and output at $0.50 per million, so a 20,000-token prompt with a 1,000-token answer costs $0.003 plus $0.0005, which is $0.0035. Long chats add up slowly, but they do add up, and the pricing page has the full table with top-up bonuses.
Keeping the key and the bill under control
A key in a config file is a secret, so treat the file like one. Do not commit ~/.continue/config.yaml to a dotfiles repository, and do not paste it into a bug report without blanking the apiKey line. If a key leaks, create a new one on the API key page and replace the old value in the file; the editor picks up the change on save.
Spend is easy to watch because the service is prepaid. You top up a whole amount from $20 to $500, and larger amounts add a bonus of 5%, 10% or 15% from $50, $100 and $200. Nothing is charged beyond the balance you loaded, so a runaway edit loop can only drain what is there. Credit never expires, which suits an editor tool you use in bursts: a quiet month costs nothing. Check X-Balance-USD now and then with a curl call if you want a number instead of a feeling.
Errors and what they mean
| What you see | Likely cause | Fix |
|---|---|---|
| 401 Unauthorized | Wrong or truncated key | Paste the key again, check for spaces, test with curl |
| 404 Not Found | apiBase missing /v1, or has /chat/completions on the end | Use the base URL exactly as written above |
| Model not found | Model name typed differently | Set model: uncensored, all lowercase |
| 429 with code concurrency | More than 8 requests in flight | Close extra chats, lower parallel tool use |
| 429 with code rate_limited | Over 300 requests a minute | Slow down; a trial key allows 60 a minute and 2 at once |
| 429 with Retry-After: 5 | Temporary overload | Wait five seconds and retry |
A streamed reply holds its concurrency slot until the stream ends, so a chat you left generating in the background still counts. A trial key is capped at 2 concurrent requests, which is easy to hit if you run chat and an edit at once. A full key allows 8. Failed or refused requests are not charged, so retrying after an error does not cost anything extra.
One more cause of odd behavior is a model that answers but the answer is cut off. Raise maxTokens in the completion options and ask again.
Autocomplete and other limits
Continue's tab autocomplete uses a separate model role and a fill-in-the-middle style of prompt. This service exposes the chat completions route only, so treat it as a chat, edit and apply model. For tab completion, pair it with a local or dedicated completion model and keep this endpoint for the longer, conversational work where it earns its price.
The service is text only: no images, audio, embeddings or fine-tuning. Tool calling and JSON mode are available if you build your own agent around the same endpoint, and prompts are not used for training. As with any model tuned to skip content refusals, it is meant for lawful adult use, and sexual content involving minors is blocked outright. For code work you will mostly notice the difference when you ask about security testing or edgy fiction in a game project and get an answer instead of a lecture.
More guides
Questions and answers
Which provider value does Continue need for an OpenAI-compatible server?
Use provider: openai and set apiBase to the server address ending in /v1. Continue then sends standard chat completion requests with your key as a Bearer token.
Do I need a card to try it in Continue?
No. New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It lasts 7 days, needs no card, and comes with 2 concurrent requests and 60 requests per minute.
Can I use this endpoint for tab autocomplete?
It is built for chat completions, so use it for the chat, edit and apply roles. Use a dedicated completion model for tab autocomplete.
Is my code used to train models?
No. Prompts are not used for training. Still, avoid pasting secrets such as production keys or passwords into any chat.
How do I see how much credit is left?
Each response carries an X-Balance-USD header. You can read it with curl -i, or from your own client code.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.