Integration · coding agent
OpenCode on llmbox
OpenCode is an open-source coding agent for the terminal, desktop and browser. Add llmbox as a provider to use DeepSeek, GPT, Gemini and Qwen with one API key. Pay per token.
- Terminal, desktop and web
- Provider in opencode.jsonc
- One API key
https://llmbox.cc/v1- deepseek/deepseek-v4-pro
- openai/gpt-6.1-sol
- google/gemini-3.1-pro
- qwen/qwen3.8-max
- + 28 more
Setup
Set up OpenCode
Install OpenCode
Install the terminal version with one command. Desktop builds for macOS, Windows and Linux are on opencode.ai.
Add the provider
Define llmbox in opencode.jsonc (example below) and store your API key from the dashboard in an environment variable:
Pick a model
Run opencode and open the list with /models: llmbox models appear as llmbox/<ID>.
Full guide
Models
DeepSeek, GPT, Gemini and Qwen
Choose a model for each task and switch within a session using the same llmbox API key.
| Model | Model in OpenCode | Input, 1M | Output, 1M |
|---|---|---|---|
| DeepSeek V4 Pro | llmbox/deepseek/deepseek-v4-pro | $0.19 | $0.555 |
| DeepSeek V4.1 Flash | llmbox/deepseek/deepseek-v4.1-flash | $0.10 | $0.27 |
| GPT-6.1 Sol | llmbox/openai/gpt-6.1-sol | $1.80 | $5.00 |
| GPT-5.6 Sol | llmbox/openai/gpt-5.6-sol | $0.80 | $2.00 |
| Gemini 3.1 Pro | llmbox/google/gemini-3.1-pro | $0.60 | $2.45 |
| Qwen3.8 Max | llmbox/qwen/qwen3.8-max | $0.225 | $0.7875 |
Prices are per million tokens, from the catalog.
Config file
Provider in opencode.jsonc
A file in ~/.config/opencode applies to every project; one in the project root applies to that project only. OpenCode reads the API key from an environment variable. OpenCode 1 uses its own schema — see the second tab.
How it works
Works like a built-in provider
Coding tools
OpenCode reads and edits files, runs terminal commands and plans the work.
Usage in your dashboard
Track each request's model, tokens and cost in your dashboard. Set a spending limit for each API key.
Long sessions use more tokens
Agent requests include session history, so longer tasks use more input tokens. Compare model prices in the catalog.
Scenarios with OpenCode

Ten tools on one key: Teleharness, OpenCode, Codex CLI, Cline, n8n and more
llmbox now has a Tools section: pages for Teleharness, OpenCode, Codex CLI, Cline, n8n and others, with three-step setup and models from the catalog.

How to move code from the OpenAI SDK to other models: changing base_url
How to move code from the OpenAI SDK to DeepSeek, Gemini, Qwen and GPT models: base_url and key in Python, Node, curl, environment variables and LangChain.

Gemini 4 Hydrogen is now in the llmbox catalog
Gemini 4 Hydrogen, Google's fast model for code and agents with a 1M-token context window, is now in the catalog. Use it with the same llmbox key as every other model.
Questions
FAQ
How do I use DeepSeek in OpenCode?
Add llmbox as a provider in opencode.jsonc and list deepseek/deepseek-v4-pro or deepseek/deepseek-v4.1-flash under models. The same API key works for GPT, Gemini and Qwen.
Which API key does OpenCode use?
Your llmbox API key from the dashboard. OpenCode reads it from the environment variable named in the provider's env field.
How is OpenCode 1 configured?
In OpenCode 1 the provider goes under provider: the @ai-sdk/openai-compatible package, with the address and key in options. See the second config tab.
How are OpenCode requests billed?
Agent requests are billed per token at catalog rates and deducted from your llmbox balance. Pay as you go, with no subscription.
Connect OpenCode to llmbox
Create an API key in your llmbox dashboard after signing up.
OpenCode is an open-source project under the MIT license.