opencode

Your terminal's AI agent, with any model you want

Visit website →

About

opencode is an open-source AI coding agent that runs in the terminal. It has a native text user interface, supports multiple concurrent sessions, and is model-agnostic, so a developer can drive it with Claude, OpenAI, Google, or locally hosted models depending on cost, privacy, or preference.

Because it is open source and not tied to one provider or editor, it can be inspected, extended, and run entirely on a developer's own terms.

It is aimed at developers who want a terminal-based coding agent with the flexibility to switch models freely and the transparency of an open codebase, rather than a closed tool locked to a single vendor.

AI-assisted draft, human-reviewed before publishing — see how we choose & review tools.

Why we picked it

opencode earns its spot for being genuinely model-agnostic and open-source — driving it with a local model for privacy or a cheaper cloud model for cost is worth naming against terminal agents locked to one vendor's pricing and roadmap.