Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt

Use this file to discover all available pages before exploring further.

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="ky-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": "ky-your-api-key",
  "model": "qwen-3.6-plus"
}
ModelAliasBest For
qwen-3.6-plusbestRecommended — highest quality
qwen-3-codercodeBest alias for code-focused tasks
kimi-k2.6agentBest tool calling, 262K context
qwen-3-32bfastUltra-fast active coding model
deepseek-v4-pro1M context, top reasoning. Complex refactors and long-codebase tasks.
deepseek-v4-flash1M context, value tier. Everyday completions where speed matters.
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.