openagent @ opencode ~ $

cat README.md

OpenCode

Open-source AI coding agent that connects to 75+ AI providers and runs in your terminal, IDE, or desktop with LSP integration and multi-session support.

# 160K Stars · 9.0K Forks · MIT License // verified 2026-06-04
opencode/main
$curl -fsSL https://opencode.ai/install | bash
Installing OpenCode...
OpenCode ready
$opencode --help
Reading opencode configuration & environment...
# core strengths

What makes OpenCode different

75+ AI provider support

Works with any AI provider — Anthropic, OpenAI, Google, Groq, Ollama local models, and 70+ more through an extensible provider system.

Developers can use existing subscriptions (ChatGPT Plus, Copilot) or choose the best model for each task without being locked into a single provider.

Multi-surface workflow

Available as a terminal TUI, VS Code extension, and desktop app with seamless session sync across all surfaces.

Developers can start a task in the terminal, refine it in the IDE, and share results via session links — all from the same agent.

Privacy-first design

OpenCode does not store any code or context data. No telemetry, no data retention, and full local control.

Privacy-sensitive teams can use OpenCode in regulated environments without worrying about data leaving their control.

LSP integration

Automatically loads the right Language Server Protocol configurations for the LLM, giving it deeper code understanding.

Better context leads to more accurate edits and fewer hallucinations when working with unfamiliar codebases.
# quick start

Your first command

terminal
$curl -fsSL https://opencode.ai/install | bash
# use cases

How developers use OpenCode

01

Multi-provider experimentation

Switch between Claude, GPT, Gemini, and local models mid-session to compare results for different coding tasks.

02

Privacy-sensitive development

Use OpenCode with local models via Ollama for fully offline, zero-exfiltration coding assistance.

03

Team collaboration via session sharing

Share session links with teammates for code review, debugging help, or reproducing issues.

# comparison

How OpenCode compares

Choose OpenCode for provider flexibility and privacy vs Claude Code

OpenCode supports 75+ providers and stores no code data. Claude Code offers deeper Anthropic model integration but locks you into a single provider.

# faq

Questions

Q: What should I check before using OpenCode?

Start with one safe workflow for OpenCode. Inspect official setup instructions, required credentials, execution logs, approval points, and failure recovery before expanding from a sandbox task into production automation.

Q: Is OpenCode open source?

OpenCode is listed with MIT based on the official source links in this profile. Re-check the repository, model card, or docs before production use.

Q: Who should evaluate OpenCode?

OpenCode is most worth evaluating for developers who want a model-agnostic coding agent with maximum provider flexibility.

Decision brief

Should you use OpenCode?

JSON
Best for
  • Developers who want a model-agnostic coding agent with maximum provider flexibility
  • Teams that need a privacy-first agent with no code storage or telemetry
  • Engineers who want both terminal and IDE-based agent workflows
Not for
  • Users who need a fully managed cloud-hosted coding agent
  • Teams that prefer single-model deep integration over multi-provider flexibility
Trust and freshness
  • Verified 2026-06-04
  • License: MIT
  • Repo: anomalyco/opencode
  • Open-source signal
Deployment

local, cloud

Permission surface

shell/files, memory, external services

Decision signals

Local first, MCP

Agent packet

Structured decision data for OpenCode

This packet is the compact machine-readable view agents should use before following source links or taking action.

Capabilities

mcp, local inference, workflow orchestration

Constraints

open source, local first, mcp compatible

Deployment

local, cloud

Permission surface

shell/files, memory, external services

Recommended workflows

Coding agent workflow, Connector or protocol layer, Local or private AI stack, Memory or RAG workflow

Overview

What OpenCode does

What it is

OpenCode is an open-source AI coding agent built in Go that connects to 75+ AI providers. It runs in your terminal, as a VS Code extension, or as a desktop app, with LSP integration for deeper code understanding and multi-session support for parallel agent workflows.

Why it matters

The coding agent space has been dominated by tools that lock you into a single model provider. OpenCode breaks that pattern by supporting 75+ providers, including the ability to use existing ChatGPT Plus and Copilot subscriptions. Combined with its privacy-first architecture (no code stored, no telemetry), it represents a new model for what an open-source coding agent should be.

How to evaluate it

Start with one safe workflow for OpenCode. Inspect official setup instructions, required credentials, execution logs, approval points, and failure recovery before expanding from a sandbox task into production automation.

Facts

Known metadata and operating surface

These fields are separated from editorial interpretation so agents can reason over facts and missing checks.

Resource type agent
Category Agents
Maturity active
Difficulty Unknown
License MIT
Pricing open source
Verified 2026-06-04
Source confidence high
Risk level elevated
Fit matrix

Where OpenCode fits in an agent stack

strong

Coding agent workflow

OpenCode has multiple signals for coding agent workflow, including matching tags, capabilities, category, or positioning.

  • Run a small repository change and inspect the diff, tests, and rollback path.
  • Confirm official docs, current maintenance, license, and runtime constraints before production use.
strong

Connector or protocol layer

OpenCode has multiple signals for connector or protocol layer, including matching tags, capabilities, category, or positioning.

  • Connect one low-risk service, then inspect schemas, auth scope, errors, and logs.
  • Confirm official docs, current maintenance, license, and runtime constraints before production use.
strong

Local or private AI stack

OpenCode has multiple signals for local or private ai stack, including matching tags, capabilities, category, or positioning.

  • Verify hardware requirements, data path, storage, and whether all calls stay in your environment.
  • Confirm official docs, current maintenance, license, and runtime constraints before production use.
strong

Memory or RAG workflow

OpenCode has multiple signals for memory or rag workflow, including matching tags, capabilities, category, or positioning.

  • Create, update, retrieve, correct, and delete memory or retrieval objects with real data.
  • Confirm official docs, current maintenance, license, and runtime constraints before production use.
partial

Reusable skill workflow

OpenCode has at least one signal for reusable skill workflow, but should be checked against a real task before adoption.

  • Run one skill end to end and check whether it produces evidence or structured output.
  • Confirm official docs, current maintenance, license, and runtime constraints before production use.
weak

Browser automation

OpenCode is not primarily positioned for browser automation in the current metadata.

  • Run one non-sensitive website task and inspect clicks, waits, retries, and changed URLs.
  • Confirm official docs, current maintenance, license, and runtime constraints before production use.
Inputs and outputs

What an agent should inspect

Likely inputs

  • Repositories, files, issues, terminal output, and test results
  • Documents, user facts, entities, context, or retrieval queries
  • Tool schemas, API requests, service resources, and auth scopes
  • Prompts, messages, documents, images, or model inputs
  • Official setup instructions and a small real workflow

Likely outputs

  • Diffs, commits, explanations, test results, or review notes
  • Retrieved context, memory updates, graph relations, or citations
  • A decision on whether this resource fits the target workflow
Evidence

Sources, claims, and missing checks

Claims are marked separately from source links so future crawlers and reviewers can update them without rewriting the page.

verified

OpenCode is listed as open source.

License metadata: MIT
verified

OpenCode has a recorded GitHub repository: anomalyco/opencode.

Resource facts and GitHub source link.
inferred

OpenCode supports these recorded deployment modes: local, cloud.

OpenAgent decision signal metadata.
inferred

OpenCode is tagged with mcp, local inference, workflow orchestration capabilities.

OpenAgent capability taxonomy.
Missing checks
  • Repository freshness has not been recorded.
Next action

How to start evaluating OpenCode

Inspect repository

Check license, recent activity, issues, examples, and security-sensitive code paths.

Open source

Open Homepage

Start from the official source before adopting third-party instructions.

Open source

Read setup docs

Use docs as the source of truth for installation and supported interfaces.

Open source

Install OpenCode

Install via the official script, then run 'opencode' in any project directory. Supports 75+ providers and works with existing subscriptions.

curl -fsSL https://opencode.ai/install | bash
Compare

Alternatives and nearby resources

Use related resources to compare category fit, license, deployment model, and first-workflow behavior.

FAQ

Common questions about OpenCode

What should I check before using OpenCode?

Start with one safe workflow for OpenCode. Inspect official setup instructions, required credentials, execution logs, approval points, and failure recovery before expanding from a sandbox task into production automation.

Is OpenCode open source?

OpenCode is listed with MIT based on the official source links in this profile. Re-check the repository, model card, or docs before production use.

Who should evaluate OpenCode?

OpenCode is most worth evaluating for developers who want a model-agnostic coding agent with maximum provider flexibility.

Who should use OpenCode?

Developers who want a privacy-first, model-agnostic coding agent that works across terminal, IDE, and desktop, especially those who already have ChatGPT Plus or Copilot subscriptions.

How does OpenCode compare to other coding agents?

OpenCode's main differentiators are its 75+ provider support, privacy-first design, and multi-surface availability. It trades deep single-provider integration for maximum flexibility.