This page shows how to add a custom OpenAI endpoint to Continue, the open source coding assistant for VS Code and JetBrains, so it uses an open model you deployed on BitsRun. At the end you will chat with your own model in the Continue sidebar, with optional tool calls for Agent mode. It takes about 5 minutes once you have an endpoint.
Checked against the Continue docs on 2026-11-14. Continue now uses config.yaml; config.json is marked deprecated.
What you get
| Editor | VS Code or JetBrains with the Continue extension |
| Config | config.yaml with provider: openai and apiBase |
| Roles | Chat and edit (add tool_use for Agent mode) |
| Model | Any chat model you deployed, for example qwen3:8b |
| Cost when idle | Nothing. The endpoint sleeps between sessions |
Before you start
- A BitsRun chat endpoint. Follow Deploy your first model or Deploy an Ollama model to the cloud. A model with tool support is best for coding.
- Its base URL,
https://<endpoint-id>.endpoint.bitsrun.com/v1, from the Copy button on the endpoint card.<endpoint-id>is your endpoint's id. - An API key starting with
brk_(see API keys). Below,brk_your_keystands for your key. - The Continue extension installed in your editor.
How to add a custom OpenAI endpoint to Continue
Open the Continue sidebar (cmd/ctrl + L in VS Code, cmd/ctrl + J in JetBrains).
Open the configs dropdown at the top right of the chat input and select the cog icon next to Local Config. Your editor opens
config.yaml. It lives at~/.continue/config.yamlon macOS and Linux and%USERPROFILE%\.continue\config.yamlon Windows.Add your endpoint under
models. This is the OpenAI-compatible example from the Continue OpenAI provider page, with our URL and key:yamlname: My Config version: 0.0.1 schema: v1 models: - name: BitsRun Qwen3 8B provider: openai model: qwen3:8b apiBase: https://<endpoint-id>.endpoint.bitsrun.com/v1 apiKey: brk_your_keyIf your file already has
name,version,schemaand other models, add only the entry undermodels.Save the file. Continue reloads it.
Pick BitsRun Qwen3 8B in the model menu above the chat input.
model is the name sent in each request. An endpoint serves exactly one model and always uses it, so pass the name you deployed.
How to turn on tool calls for Agent mode
Continue detects what a model can do from its provider and name, and a custom endpoint may not be detected. The config.yaml reference lets you declare it with capabilities. tool_use is required for Agent mode:
models:
- name: BitsRun Qwen3 8B
provider: openai
apiBase: https://<endpoint-id>.endpoint.bitsrun.com/v1
model: qwen3:8b
apiKey: brk_your_key
capabilities:
- tool_use
roles:
- chat
- editOnly add tool_use if your model supports tools. Check with bitsrun size <model> --json and look for "tools": true. Qwen3, Qwen2.5 Instruct, Llama 3.1 and newer, and Mistral instruct models generally do. Do not add image_input: BitsRun serves text-only models today. See Tool calling.
Test it
- In the Continue chat, type
Write a Python function that reverses a string. - You should see the reply stream into the sidebar.
- If the endpoint was asleep, the reply starts after the model wakes (see below).
To test the endpoint outside the editor:
curl https://<endpoint-id>.endpoint.bitsrun.com/v1/chat/completions \
-H "Authorization: Bearer brk_your_key" \
-H "Content-Type: application/json" \
-d '{"model": "qwen3:8b", "messages": [{"role": "user", "content": "Say hello in five words."}]}'What happens on the first message of the day
A sleeping endpoint wakes on the next request. The wait is a cold start and is never billed.
| Model kind | Warm GPU (ran recently) | New GPU machine |
|---|---|---|
| GGUF models on llama.cpp | A few seconds to about 40 seconds | About 2 to 3 minutes |
| Safetensors chat models on vLLM | About 40 seconds | About 3 to 4 minutes |
BitsRun holds the request open for up to 8 minutes and sends keep-alive comments on the stream. If you set requestOptions.timeout in your model entry, make sure it covers at least 10 minutes. To skip the wait, select Start on the endpoint card a few minutes before you code, or pick a longer Sleep after time. See Cold starts.
Can I use a BitsRun endpoint for autocomplete?
Continue's autocomplete sends many small requests while you type and expects very fast replies, and a sleeping endpoint answers its first request only after it wakes. Chat and edit are the better fit. Use a dedicated small model if you try autocomplete, and keep the endpoint awake while you work.
If something goes wrong
| Message or symptom | What to do |
|---|---|
401 unauthorized | The key is missing, mistyped or revoked. Paste it again or create a new one. |
404 not_found | Check apiBase ends in /v1. A key limited to another endpoint also gets 404. |
402 payment_required | Your balance is $0. Add credit in the dashboard. |
400 context_too_long | Too much code is in the chat. Start a new chat, or raise Memory length on the endpoint (up to 65,536 tokens). |
Error mentioning model_starting | The model took longer than 8 minutes to wake. Send the message again. |
| Agent mode greyed out | Add capabilities: [tool_use], and check your model supports tools. |
Every code is on Error codes.
Frequently asked questions
Does Continue still use config.json?
Continue's docs now use config.yaml and mark config.json as deprecated. Add your BitsRun endpoint to ~/.continue/config.yaml.
Can I use a self-hosted model in Continue without my own GPU?
Yes. Deploy the model on BitsRun and add it as provider: openai with apiBase set to your endpoint URL. BitsRun runs the GPU only while the model works and bills by the second.
Does Continue Agent mode work with BitsRun?
Yes, with a model that supports tool calls. Add tool_use under capabilities so Continue knows the model can call tools.
Is my code sent anywhere else?
BitsRun never logs or stores prompts and outputs, and your endpoint is yours alone. See Privacy and your data.
Next step
Pick a coding model that fits your budget with the VRAM calculator, or bring your own file with Host a GGUF model as an OpenAI-compatible API. For codebase search, see Self-hosted embeddings API. Then create your account.