Coding Agents
Use OpenCode
Point OpenCode at camelStream with a custom OpenAI provider
OpenCode can register any OpenAI-compatible
provider. camelStream exposes /v1/responses.
| Provider | camel-stream |
| Model | camel-stream/auto |
| Base URL | https://stream.camelai.com/v1 |
| Key | CAMEL_API_KEY |
| Context window | 260K tokens guaranteed (see the fleet) |
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 camelStream
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/auto.
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/auto",
"provider": {
"camel-stream": {
"npm": "@ai-sdk/openai",
"name": "camelStream",
"options": {
"baseURL": "https://stream.camelai.com/v1"
},
"models": {
"auto": {
"name": "camelStream Auto"
}
}
}
}
}@ai-sdk/openai is the adapter for Stream's /v1/responses endpoint. See
OpenCode providers.
camelStream queues requests when every subscribed stream is busy. OpenCode should keep the HTTP connection open. See Queues & errors.