Set up OpenCode
Install OpenCode 2.0 or later, then connect a model provider:Choose a model and agent
Choose a model in the composer. Available models and effort choices depend on what your OpenCode runtime reports. Choose Build or Plan for the session. Build is the default coding agent. Plan selects OpenCode’s planning agent. Set the default under Settings → OpenCode → Agent. Review tool approval requests in Mains before allowing an operation. See Approvals.Continue and fork
Continue an existing conversation with a follow-up, or use Fork beside a response to explore another path. Mains resumes or forks the underlying OpenCode session.Availability
The initial integration supports Code. Work, Chat, Atlas editing, Mains plugin controls, MCP app extensions, realtime voice, and steering are unavailable for OpenCode. OpenCode authentication is separate from your service connections and Git orgh authentication.