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.