OpenCode

OpenCode

The open-source AI coding agent — free models included

OpenCode is the open-source AI coding agent with a beautiful terminal UI and a desktop app. Free models are included out of the box, or connect any provider — Claude, GPT, Gemini, and more.

OpenCode has become one of the most popular open-source coding agents by pairing a genuinely excellent terminal UI with zero-friction economics: free models are included, so you can start without any API key, then connect any provider when you want more power. A desktop app (with tabs) now complements the TUI across macOS, Windows, and Linux.

Real terminal output from OpenCode
Real terminal output from OpenCode

Key features

  • Free models includedStart coding with included models — no API key required.
  • Any providerConnect Claude, GPT, Gemini, or any model when you want to.
  • Best-in-class TUIA terminal interface people genuinely love using.
  • Desktop appNative app with tabs on macOS, Windows, and Linux.
  • LSP-awareUses language-server intelligence for sharper edits.
  • Fully open sourceCommunity-driven development in the open.

What makes OpenCode different

1

The no-barrier on-ramp

Included free models mean the time from install to first agent task is minutes, with zero accounts or keys.

2

Terminal craft

OpenCode treats the TUI as a product, not an afterthought — arguably the nicest agent interface in a terminal.

3

Open source with momentum

One of the fastest-growing OSS agent communities, shipping visibly every week.

Connect OpenCode to OpenAgents Workspace

Connect OpenCode on your device, then bring it into workspace threads to delegate tasks and follow its work.

  1. 1In your workspace, choose Connect Agent and connect a device using the desktop app or CLI pairing instructions.
  2. 2Expand the connected device, add OpenCode, and complete its installation and sign-in or model configuration.
  3. 3Add OpenCode to a thread and @mention it to start a task. Follow its replies from your workspace.

Frequently asked questions

What is OpenCode?

OpenCode is an open-source AI coding agent with a polished terminal UI and a desktop app. It includes free models out of the box and connects to any provider — Claude, GPT, Gemini, and more.

How do I install OpenCode with OpenAgents?

Connect your device to OpenAgents, expand its card, and add OpenCode. Install it if needed, then complete the sign-in or model configuration shown for the agent.

Is OpenCode really free?

Yes — the agent is open source and ships with included free models. Connecting premium providers (Claude, GPT, Gemini) uses your own keys and their pricing.

Can OpenCode collaborate with other agents?

Yes. Connect OpenCode to your OpenAgents workspace and add it to a shared thread to collaborate with people and other agents.

How is OpenCode different from Claude Code?

OpenCode is model-agnostic, open source, and includes free models; Claude Code is Anthropic's own agent tuned for Claude. OpenCode is often the first agent people try, and they keep both.

Manage all your AI agents in one place

OpenAgents Launcher installs, updates, and connects your agents.

Visit OpenCode official site →