Skip to content
cicora.ai

OpenAI-compatible configuration

Add cicora.ai to an existing OpenCode configuration

The installer adds a provider and models to an existing OpenCode config; it does not install OpenCode.

Existing OpenCode config → cicora.ai provider → public model catalog

Add the provider

The installer reads /v1/models for the supplied key and writes the provider configuration.

bash
mkdir -p ~/.config/opencode
printf '%s\n' 'sk_...' > ~/.config/opencode/cicora-api-key
chmod 600 ~/.config/opencode/cicora-api-key
Manual provider configuration
json
{
  "$schema": "https://opencode.ai/config.json",
  "model": "cicora/openai/gpt-5.4",
  "provider": {
    "cicora": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "cicora.ai",
      "options": {
        "baseURL": "https://api.cicora.ai/v1",
        "apiKey": "{file:~/.config/opencode/cicora-api-key}"
      },
      "models": {
        "openai/gpt-5.4": { "name": "openai/gpt-5.4" },
        "moonshotai/kimi-k2.7-code": {
          "name": "moonshotai/kimi-k2.7-code",
          "modalities": { "input": ["text", "image"], "output": ["text"] }
        }
      }
    }
  }
}