Start Here
Use OpenCode
Point OpenCode at Camel Stream with a custom OpenAI provider
OpenCode can register any OpenAI-compatible
provider. Camel Stream exposes /v1/responses.
| Provider | camel-stream |
| Model | camel-stream/deepseek-v4-flash |
| Base URL | https://stream.camelai.com/v1 |
| Key | CAMEL_API_KEY |
| Context window | 256k input tokens |
1. Install OpenCode
curl -fsSL https://opencode.ai/install | bashSee the OpenCode install docs for other options.
2. Create a Stream key
Generate an API key in the Stream console. It is shown once.
3. Connect Camel Stream
The interactive path is the same one OpenRouter documents:
cd /path/to/your/project
opencodeInside OpenCode:
/connect- Choose Other.
- Enter provider ID
camel-stream. - Paste your Stream key.
- Run
/models. - Select
camel-stream/deepseek-v4-flash.
OpenCode stores the credential in its auth file, usually
~/.local/share/opencode/auth.json. Do not commit that file.
4. Optional config
If you want the provider and model in config as well, merge this into your
user opencode.json and keep any providers you already have:
{
"$schema": "https://opencode.ai/config.json",
"model": "camel-stream/deepseek-v4-flash",
"provider": {
"camel-stream": {
"npm": "@ai-sdk/openai",
"name": "Camel Stream",
"options": {
"baseURL": "https://stream.camelai.com/v1"
},
"models": {
"deepseek-v4-flash": {
"name": "DeepSeek V4 Flash"
}
}
}
}
}@ai-sdk/openai is the adapter for Stream's /v1/responses endpoint. See
OpenCode providers.
Camel Stream queues requests when every subscribed stream is busy. OpenCode should keep the HTTP connection open. See Queues & errors.