OpenCode
OpenCode is an open source agent that helps you write code in your terminal, IDE, or desktop.
Setup
- Install OpenCode:
curl -fsSL https://opencode.ai/install | bash - Add LivRouter:
source ~/.zshrcnano ~/.config/opencode/config.json { "$schema": "https://opencode.ai/config.json", "provider": { "my_custom_provider": { "npm": "@ai-sdk/openai-compatible", "name": "LivRouter", "options": { "baseURL": "https://api.livrouter.com/v1" }, "models": { "glm-5.3": { "name": "GLM 5.3" }, "grok-4.7": { "name": "Grok 4.7" }, "gpt-5.6-terra": { "name": "GPT 5.6 Terra" }, "claude-sonnet-4-6": { "name": "Claude Sonnet 4.6" } } } }}After setting these variables, you can run opencode in your project directory to start using it with LivRouter.