OpenCode Setup
Gateway setup
Gateway options
Point OpenCode at the gateway runtime and use a gateway-issued virtual key.
opencode.jsonc
Loading gateway catalog...
Set gateway key
export DEVAGENT_LOCAL_API_KEY="ilg_your_virtual_key"
Set key and run through the gateway
Gateway catalog unavailable. Retry once the gateway is reachable.
Live gateway catalog: Loading models
Running the OpenCode command without exporting the gateway virtual key first will fail with Missing runtime bearer token.
Limits in this config come from the live gateway catalog. Output caps only appear when the gateway has a verified or curated recommendation for that model.