opencode
Coding agents & IDEsOpen-source terminal coding agent with a custom-provider config.
Fill the guide with your values
Stays in this browser tab — never sent or stored by us. Sign in to create one
Your system
Setup
- 1Paste your key above, then run the installer: it checks the key, writes
~/.config/opencode/opencode.jsonwith every UltraGPT chat model and backs up your old config. - 2Run
opencodeand pick a model with/models. - 3Prefer to do it by hand? Use the opencode.json tab. Models are only read from that file, so list every model you want.
curl -fsSL https://developers.ultragpt.pro/install/opencode.sh | ULTRAGPT_API_KEY='<your UltraGPT key>' ULTRAGPT_MODEL='claude-opus-4.6' shGood to know
- The installer is a short, readable script: open
https://developers.ultragpt.pro/install/opencode.sh(or.ps1) to see exactly what it does. Your key goes only to the UltraGPT API and into your config file. - "Invalid API key" in opencode usually means the key placeholder was never filled in (for example an
{env:…}variable that is not set in that terminal). The installer writes the key into the file and rejects a wrong key up front.
Tips
- Any model id from Models works; suffixes like :online (web search) and :nitro work too.
- Give each tool its own key with a spend limit, so usage shows separately in Activity.
- Something off? Error codes · Support