v2.4.0 — now with multi-file editing

const code =
  await ai.write("magic");

A terminal-first AI coding assistant that lives in your workflow. No IDE plugins, no browser tabs — just you, your terminal, and code that writes itself.

~/projects/my-app — opencode
$ opencode "add user auth with JWT"
→ Analyzing project structure...
→ Reading src/auth/...
→ Generating 'src/auth/jwt.ts' (42 lines)
→ Generating 'src/middleware/auth.ts' (28 lines)
→ Updating 'src/routes/index.ts'
✦ Created 3 files · 70 lines · 0 errors
$
// features

Built for developers. Not marketers.

class

Context-Aware Engine

Reads your entire codebase. Understands imports, types, and patterns. Generates code that actually fits.

AST parsing type-aware multi-lang
fn()

Terminal-Native UX

No GUI overhead. Runs in any shell. Pipes work naturally. Your muscle memory stays intact.

stdin/stdout pipes tmux friendly
"ai"

Multi-Model Backend

Switch between Claude, GPT-4, Codex, or local models. One command, any brain.

OpenAI Anthropic local LLM
let

Safe by Default

Diffs before apply. Git-aware edits. Rollback in one command. Never lose work to AI hallucinations.

git integration diff review undo
// pricing

Pay for compute, not hype.

Community

$0

Free forever

  • Unlimited single-file edits
  • Open-source model support
  • Community Discord
  • Basic context window (8K)

Team

$49/mo

For engineering teams

  • Everything in Pro
  • Shared codebase context
  • Team analytics dashboard
  • SSO & admin controls
  • Custom model fine-tuning