# OpenCode

> Terminal-first, provider-agnostic coding TUI — the most starred open coding agent on GitHub.

- Type: agent or tool
- Field: Coding & Development
- Repository: https://github.com/anomalyco/opencode
- GitHub stars: 230247
- Licence: MIT
- Language: TypeScript
- Last push: 2026-12-01
- Page: https://imutechz.in/agents/opencode

## Features
- Build + plan agents with different permission levels
- LSP integration for 20+ languages
- MCP servers, themes, shareable sessions
- Any provider: Anthropic, OpenAI, Google, Ollama local models
- Works over SSH, in tmux, everywhere a terminal runs

## Best for
- Daily driver for terminal people
- Local models via Ollama
- Long refactors

## Pros
- Model-agnostic and genuinely free (MIT)
- Fast TUI with excellent keyboard flow
- Huge plugin/theme ecosystem

## Cons
- Terminal-first — no IDE inline diffs
- Config surface can overwhelm newcomers

## Install
```
npm i -g opencode-ai
```

## Usage
```
opencode "fix the failing tests"
```

Tags: TypeScript, agent, coding
