
OpenCode
Open-source terminal-based AI coding agent with a rich TUI that works with any LLM
Free and open-source; bring your own LLM API keys
Overview
OpenCode is a terminal-native AI coding agent built as an open-source alternative for developers who live in the command line. It provides a polished terminal UI (TUI) with syntax-highlighted code diffs, conversation history, and file context management — far beyond a basic REPL — while working with any LLM via API.
Key Features
- Rich terminal UI (TUI) with syntax highlighting and interactive diffs — no IDE required
- Supports any OpenAI-compatible LLM including Claude, Gemini, and local Ollama models
- File reading, editing, and creation with full project context
- Shell command execution for running tests and build scripts
- Session history and conversation management within the terminal
- Fully open-source — inspect, fork, and extend the codebase
Pricing: Free and open-source; bring your own LLM API keys.
Pros
- Polished terminal UI — much richer experience than basic CLI tools
- Free and open-source with no lock-in
- Works with any LLM provider via API keys
- Native terminal workflow — no IDE required
Cons
- Terminal-only limits accessibility for non-CLI users
- Requires API keys with their associated costs
- Smaller community than IDE-based agents like Cline
Tags
Product Updates
Similar Tools

Aider
Open-source AI pair programmer that lets you edit code across your entire repo directly from the terminal

Claude Code
Anthropic's CLI-based agentic coding tool that operates in your terminal to edit files, run commands, and complete entire coding tasks autonomously

Cline
Open-source autonomous coding agent for VS Code that reads and writes files, runs terminal commands, and browses the web

Roo Code
Open-source AI coding agent VS Code extension with enhanced capabilities — a popular Cline fork with additional features and modes



