Skip to main content

OpenCode

Install, authenticate, and resume OpenCode inside Daintree, including the session resume flag.

Updated
Reviewed

OpenCode

OpenCode is a provider-agnostic CLI coding agent. It runs as a process in its own Daintree terminal panel with full PTY emulation, like every other built-in agent.

Commandopencode
Shortcut
ColorEmerald (#10b981)
PlatformsmacOS, Windows, Linux

Install & Authenticate

Install from npm: npm install -g opencode-ai. Run opencode auth login to connect a provider (Anthropic, OpenAI, OpenRouter, and others). For provider setup, see the OpenCode site.

Resuming Sessions

Daintree captures OpenCode's session ID on shutdown and resumes with opencode -s <session-id>. For the resume mechanics across all agents, see Session Resume.

Tip
If opencode isn't detected after install, confirm it's on your PATH (which opencode on macOS/Linux, where opencode on Windows), then restart Daintree. See Agent Availability for the five detection states, and Presets for launch configurations.