OpenCode
OpenCode is a powerful command-line interface tool that streamlines code exploration and project navigation by automatically opening relevant files in your preferred editor. The tool intelligently analyzes codebases to identify key entry points, configuration files, and related components, enabling developers to quickly jump into unfamiliar projects or navigate complex directory structures. OpenCode supports multiple editors and IDEs, features smart file detection algorithms, and provides customizable opening patterns for different project types. It significantly reduces the time spent manually searching through repositories, making it ideal for code reviews, onboarding new team members, debugging across multiple files, and rapid prototyping. The tool integrates seamlessly into existing development workflows and supports various programming languages and frameworks.
Latest Releases
All releasesImprovements
- Run
opencode upgrade --majorto upgrade to OpenCode 2.
Bugfixes
- Allow the OpenAI
ultrafastservice tier. - Validate PTY connection origins and tickets before checking whether a PTY exists.
TUI
Improvements
- Use
/updateto install OpenCode updates or upgrade to OpenCode 2; updates are no longer installed automatically.
Thank you to 1 community contributor:
- @dc85:
Improvements
- Added canonical redirects and JSON and Markdown data formats for agent-readable stats.
Bugfixes
- xAI tool results now include supported images, while unsupported image formats are skipped. (@Jaaneek)
Thank you to 3 community contributors:
- @dc85:
- @jm0ney337:
- @Jaaneek:
Bugfixes
- Send namespaced session and parent-session identity headers with model requests.
- Re-sign locally compiled macOS binaries so they run reliably on macOS 27+. (@ryangamerdev)
- Sign macOS CLI release binaries with a Developer ID.
Thank you to 3 community contributors:
- @dc85:
- @metal-huang:
- @ryangamerdev:
- Cloudflare AI Gateway models now honor provider response and stream timeouts. (@danlapid)
- MCP browser launch failures are now reported when the launcher exits immediately.
- Debug configuration output now redacts credentials and sensitive headers.
- Gemini thinking defaults and effort options now match the supported controls across model generations. (@markmcd)
- @dc85:
- @vglafirov:
- @markmcd:
- @remorses:
- @danlapid:
Bugfixes
- Fixed Bedrock image attachments so they are only hoisted for Claude, Nova, and Llama 4 models.
- Fixed Together AI streaming usage reporting.
Thank you to 1 community contributor:
- @dc85:
Installation
curl -fsSL https://opencode.ai/install | bash
npm i -g opencode-ai
bun add -g opencode-ai
brew install opencode
paru -S opencode