Skip to main content
OpenCode is an open source AI coding assistant that runs in your terminal. It supports OpenAI-compatible APIs.

Configuration

Set these environment variables:
export OPENAI_API_KEY="kyma-your-api-key"
export OPENAI_BASE_URL="https://kymaapi.com/v1"
Then run:
opencode --model qwen-3.6-plus
Or configure in your settings file:
{
  "provider": "openai",
  "base_url": "https://kymaapi.com/v1",
  "api_key": "kyma-your-api-key",
  "model": "qwen-3.6-plus"
}
ModelAliasBest For
qwen-3.6-plusbestRecommended — highest quality
kimi-k2.5codeBest tool calling, 262K context
qwen-3-32bUltra fast code generation
deepseek-v3Near-frontier reasoning
curl "https://kymaapi.com/v1/models/recommend?agent=opencode"
See all model aliases for shortcuts.

Prompt Caching

Prompt caching is automatic. Your system prompt and tool definitions are cached for 5 minutes, reducing costs by up to 90% on subsequent requests. No code changes needed. See Prompt Caching for details.