Connect
- Install OpenCode if needed.
- Download a compatible model in Magnitude.
- Open Connections → OpenCode and click Connect.
- Select a downloaded model on the connected card, then click the command to copy it.
- Paste it into your terminal from your project folder. On Windows, use PowerShell.
Run OpenCode
After connecting in Magnitude, start OpenCode with:MODEL_ID with the exact model ID, such as gemma-4-e2b-it-qat:gguf:q4, rather than its display name. The command shown in Connections already includes the correct ID for your selected model, so you can copy it without editing. Keep Magnitude running; it loads the model when the agent requests it.
Configuration
Connect writes~/.config/opencode/opencode.json. Location overrides: OPENCODE_CONFIG and XDG_CONFIG_HOME.
On another computer
- In Magnitude, turn on Settings → Network access.
- On the other computer, open
http://ADDRESS:10100in a browser, using the address from Reachable at, and sign in with the API key. - In Connections, click Copy setup prompt on OpenCode and send it to your agent.
Edit the files yourself
Use the address from Reachable at forADDRESS and the API key for API_KEY.
~/.config/opencode/opencode.json: