Run OpenCode 1.14.19+ or OpenCode 2.0.18+ in T3 Code. Install and authenticate OpenCode on the server machine, then enable it in Settings → Providers (see provider setup).
T3 Code detects your installed version automatically. OpenCode 1.x has Limited support.
- OpenCode 2 ships as a separate package (
@opencode/cli, e.g.npm install -g @opencode/cli). T3 Code's update button upgrades your installed package without switching 1.x to 2.x. - Do not run 1.x and 2.x side by side on the same machine—OpenCode 2 converts the shared database on first run. Existing 1.x threads continue on 2.x.
- Managed local server (default): Leave Server URL empty. Uses your configured password,
OPENCODE_SERVER_PASSWORD, or a generated password. - External server: Set Server URL and password in provider settings (does not forward local
OPENCODE_SERVER_PASSWORD). - Updating a local service: When Server URL points to a local OpenCode background service (using its exact host/port—
127.0.0.1for0.0.0.0,[::1]for[::], notlocalhost), T3 Code upgrades the CLI and restarts the service (interrupting active turns; configure service env vars withopencode service set env <name> <value>). Other external servers must be restarted manually.
- Compaction: Send
/compactmanually, or configurecompaction(auto,buffer,keep.tokens) inopencode.jsonon OpenCode 2. - Approvals: Follows permission modes; Auto behaves like Supervised. Reading
.env/.env.localasks for approval in restricted modes (.env.exampleis allowed). Allow for workspace applies across all OpenCode sessions sharing that workspace—use Allow once on shared servers. - Refreshing config: Click Refresh provider status (web/desktop) or Refresh models (mobile) after auth/config changes. Local helper caches clear after 30 seconds of inactivity; external servers may need a restart. Project-specific models in
opencode.jsonload when opening that project's model picker.