Skip to main content
OpenCode
$ cat ./opencode.md

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.

213,584 stars 28,662 forks TypeScript MIT License
sst 4128 Dec 22, 2025
Login with GitHub to like and favorite this CLI tool
$ git release --latest

Latest Releases

All releases

Core
Improvements
  • Run opencode upgrade --major to upgrade to OpenCode 2.

Bugfixes
  • Allow the OpenAI ultrafast service tier.
  • Validate PTY connection origins and tickets before checking whether a PTY exists.

TUI
Improvements
  • Use /update to install OpenCode updates or upgrade to OpenCode 2; updates are no longer installed automatically.

Thank you to 1 community contributor:
  • @dc85:
- docs(web): add Exo Free to Zen docs (#53622) - fix(stats): attribute exo usage to an unknown provider (#53621) - docs(web): remove Fledge Alpha Free from Zen docs (#53984)

Core
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:
- docs(web): add Fledge Alpha Free to Zen docs (#52895)
  • @jm0ney337:
- docs(ecosystem): add opencode-supabase to ecosystem plugins (#49848)
  • @Jaaneek:
- fix(opencode): bump @ai-sdk/xai to 3.0.139 so tool-result images reach xAI (#53549)

Core
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:
- docs(web): correct GPT 6.1 Sol cache pricing (#52176)
  • @metal-huang:
- fix(tui): use path.sep for plugin name extraction in /status dialog (#52328)
  • @ryangamerdev:
- fix(opencode): ad-hoc re-sign darwin binaries after local compile (#52183)

Core Bugfixes
  • 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)
Thank you to 5 community contributors:
  • @dc85:
- docs(web): add Claude Opus 5.5, GPT 6 Sol, and GPT 6 Luna to Zen (#50708)
  • @vglafirov:
- maint(gitlab): bump gitlab-ai-provider to 6.16.0 (#50742)
  • @markmcd:
- fix(gemini): switch thinking default logic (#50841)
  • @remorses:
- docs(web): link kimaki to product website (#49735)
  • @danlapid:
- fix(opencode): apply provider timeouts to Cloudflare AI Gateway models (#51549)

Core
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:
- docs: add DeepSeek V4.1 Flash to Zen (#49897) - feat: add Grok 4.7 to Zen and Go (#50288)

Installation

curl -fsSL https://opencode.ai/install | bash
npm i -g opencode-ai
bun add -g opencode-ai
brew install opencode
paru -S opencode
$ tail ./comments.log

Comments (2)

Login with GitHub to post a comment
VladoIvankovic
$ user VladoIvankovic
Amazing 🤖
BitMoonDev
$ user BitMoonDev
No.1