opencode
Set up sivcloud in opencode: a ready-to-copy configuration snippet.
opencode uses the chat completions endpoint. The list of models and the endpoints each one opens is on the Models page in the console.
Set up
opencode.jsonc
{
"$schema": "https://opencode.ai/config.json",
"model": "sivcloud/deepseek-v4.1-flash",
"providers": {
"sivcloud": {
"name": "sivcloud",
"env": ["SIVCLOUD_API_KEY"],
"package": "@opencode/ai/providers/openai-compatible",
"settings": { "baseURL": "https://ai.sivcloud.com/v1" },
"models": { "deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" } }
}
}
}
Check
- Save the configuration, then restart opencode if needed.
- Send a short message. The usage shows on the Usage page within moments.
- Seeing
invalid_api_key? Check the API key. Seeingmodel_not_found? Check the model id. Full list: Error codes.
The request format is explained on the endpoint page. Never write the API key into a file that goes into a repository.