How do I add an API key and a cheaper provider to OpenCode?
In OpenCode, add a provider to ~/.config/opencode/opencode.json with npm "@ai-sdk/openai-compatible", a baseURL and the models you want; store its key with /connect and pick a model with /models. With UberLLM the baseURL is https://api.uberllm.dev/v1. On November 19, 2026, 69 DeepSeek, GLM, Kimi and Qwen models were taking requests through it, billed per token from prepaid credit. MoonshotAI: Kimi K3.1 Pro cost $0.0481 and $1.6804 per million input and output tokens. A request that fails is not billed.
Prices as of November 19, 2026, 09:00 UTC. This page is rebuilt every hour.