OpenCode icon

OpenCode

OpenCode is an open source AI coding agent that helps developers understand codebases, plan and implement changes, and iterate on software projects. It runs through a terminal, desktop app, or IDE extension and can connect to provider accounts or local models.

OpenCode

OpenCode overview

OpenCode is an open source AI coding agent for working with software projects from a terminal, desktop app, or IDE extension. It connects to the language-model provider or local model you configure and can help explain code, plan changes, and implement requested work in a project.

The documented workflow starts by installing the `opencode` command, configuring a provider, opening a project, and running `/init` so OpenCode can create an `AGENTS.md` file with project structure and coding-pattern context. Users can review plans before implementation, iterate on changes, and share selected conversations when collaboration or debugging requires a reference.

Key features

Terminal, desktop, and IDE access

Use OpenCode from a terminal-based interface, desktop app, or IDE extension, depending on how you prefer to work.

Flexible model access

Configure API keys for supported providers, use local models, or connect accounts such as GitHub Copilot and ChatGPT Plus or Pro.

LSP support

OpenCode automatically loads the appropriate Language Server Protocol servers for the language model, supporting more context-aware coding work.

Multi-session projects

Run multiple agent sessions in parallel on the same project when separate tasks or investigations need to proceed at once.

Plan and Build modes

Use Plan mode to review an implementation approach before changes are made, then switch to Build mode when ready.

Project-aware workflow

Create an `AGENTS.md` project file with `/init`, reference files with fuzzy search, attach images to prompts, and undo or redo changes when needed.

Practical use cases

  • Understand an existing codebase

    Ask OpenCode to explain unfamiliar files or authentication flows, using file references to focus the discussion on the relevant implementation.

  • Plan and build features

    Describe a feature, review the proposed steps in Plan mode, provide feedback, and then switch to Build mode to implement the approved approach.

  • Make targeted code changes

    Give a direct, well-scoped request for a change such as applying an existing route’s authentication logic to another route, then inspect or revise the result.

  • Translate design references into implementation

    Use image attachments and project context to communicate a visual reference or expected behavior when planning an interface change.

  • Coordinate parallel work

    Run separate sessions on the same project, or share a specific conversation link with teammates for debugging and review.

Pros and Cons

Pros

  • Open source and available across terminal, desktop, and IDE workflows.
  • Supports models from 75+ providers through Models.dev, including local models, according to the product site.
  • Includes a reviewable Plan mode, project initialization, and undo/redo controls for iterative coding work.
  • The home page states that OpenCode does not store users’ code or context data.
  • Sessions can be run in parallel and selectively shared through generated links.

Cons

  • Provider API access or an eligible connected account is needed to use a language model; the site does not present OpenCode as a standalone model service.
  • The documentation recommends WSL for the best Windows experience, and notes that OpenCode 1 and OpenCode 2 installations can conflict under their default command.

FAQ

How do I get started with OpenCode?

OpenCode is available as a terminal-based interface, desktop app, and IDE extension. In the terminal, install it using the documented script or package-manager methods, configure an LLM provider, navigate to a project, run `opencode`, and use `/init` to create an `AGENTS.md` file describing the project structure and coding patterns.

Do I need a separate AI subscription?

No single extra subscription is required by OpenCode itself. You need API access for the LLM provider you choose, and OpenCode supports provider accounts, local models, GitHub Copilot, ChatGPT Plus or Pro, and OpenCode Zen.

What is the typical OpenCode workflow?

OpenCode supports planning before implementation. Plan mode disables changes while it suggests an implementation approach; you can then switch back to Build mode to apply the changes. The agent can also explain a codebase, accept file references and images in prompts, and undo or redo changes.

How does OpenCode address privacy?

OpenCode's home page states that it does not store your code or context data. For Zen, the site says models are hosted in the United States and providers follow a zero-retention policy and do not use data for model training, with stated exceptions.

Can I share an OpenCode session with my team?

OpenCode can create a shareable link to a conversation with `/share`; conversations are not shared by default. This allows a session to be referenced or reviewed by a team without making every conversation public.

Quick Facts

Category
Developer Tool
Primary users
Developers working in software projects
Interfaces
Terminal, desktop app, and IDE extension
Model access
75+ providers through Models.dev, plus local models
Setup
Install the opencode command, configure a provider, then run it in a project
Source domain
opencode.ai

Alternativas ao OpenCode

ByteAsk icon

ByteAsk

ByteAsk is a terminal-first AI coding agent for C and C++ that edits repositories and verifies changes with the real compiler, debugger, sanitizers, and tests before showing a diff. It offers a free tier plus paid plans, with editor connectors and zero-retention handling described in the source.

GitBot icon

GitBot

GitBot is a local browser-based workspace for creating reusable coding bots powered by Claude Code, Codex, or OpenCode. It helps developers run those agents across repository folders with persistent threads and configurable permissions.

Ghost icon

Ghost

Ghost é um assistente de IA para terminal, para conversar, gerar código e executar tarefas no prompt. Traz modelos gratuitos, funciona no Linux, macOS e Windows e é open source.

Vi3ecode icon

Vi3ecode

Vi3ecode is a maintained development environment for working with AI coding agents. It keeps project context, terminal, Git, memory, flows, review, and communication connected around the agent you already use.

CreateOS Sandbox icon

CreateOS Sandbox

CreateOS Sandbox is an isolated compute environment for running code and agent workloads inside Firecracker micro-VMs. It is designed for workflows that need machine-level isolation, private networking between sandboxes, and programmatic control through SDK, CLI, or MCP.

hob icon

hob

hob is an independent workspace for coding agents that keeps agent sessions, terminals, history, and follow-up work organized around the tools and providers you already use. It is aimed at developers who want local control over routing, history, and workspace structure rather than a bundled model stack.