OpenCode: What It Is, What It Costs, and How to Start

How OpenCode works in your repository, which models and subscriptions it accepts, and how to start a terminal session with a question about your code.

Published

OpenCode: What It Is, What It Costs, and How to Start

OpenCode lets you ask a question about the code in front of you, then change the model answering it without changing terminal tools. Anomaly builds the open-source coding agent and lists 200+ model providers. You can try your first project question with a free model before connecting an account.

What is OpenCode?

OpenCode is a program you run against a project directory. A model interprets your request. The agent gives it ways to look up files, change code and run commands in that project. If you already have it installed, the hands-on OpenCode walkthrough picks up from there.

Anomaly and its contributors develop OpenCode under the MIT license. On November 25, 2026, the project homepage pointed to the anomalyco/opencode repository. Look for that owner when choosing a download.

OpenCode’s product page with its terminal, desktop and mobile options
OpenCode

Think of a telescope with interchangeable eyepieces. The telescope stays pointed at the same object while the lens changes what you see. Here the project stays open in OpenCode while you choose the model. Installing the agent gives you the instrument. It doesn’t install the models in its catalog.

Two interchangeable eyepieces labeled hosted model and local model fit the same OpenCode telescope over one project
You can change the model while keeping the project and its tools.

Where does the work happen?

Open the terminal interface in a shell or inside your editor. If you prefer to read file changes side by side, the desktop app shows diffs, the lines added and removed, on macOS, Windows and Linux. There’s also a web interface you can pair with your running instance, a Docker image for running the agent in a container, and an SDK for calling it from your own scripts.

The browser interface can look like a hosted development environment. The difference shows up when you leave your desk. OpenCode works against the project on the machine running the agent. The phone app lets you steer sessions on that computer from Android or an iPhone via TestFlight. Installing the remote on a phone doesn’t give you a hosted IDE or a new machine with a copy of your code. How the mobile connection works

Which models and subscriptions can you use?

If you already pay for ChatGPT Plus or Pro, open /connect, choose OpenAI, then Sign in with ChatGPT. Usage counts against that plan. GitHub Copilot uses a device sign-in and requires an account with Copilot Chat access. After connecting, use /models to see what your account can use. That list answers a different question from the full catalog. Provider sign-in instructions

You can also bring a provider API key. OpenCode’s catalog includes Anthropic Claude, OpenAI GPT and Google Gemini models. For a local model, the docs describe connecting to Ollama on your machine. Ollama needs to be running with a model already downloaded. Choosing local execution matters if you want the model itself to process your question on your hardware.

OpenCode free models and OpenCode Go

The agent is free, including account-free models such as Big Pickle while offered. For paid access, use provider billing, Console pay-as-you-go, or OpenCode Go from $10 per month.

For a first session, choose an available free model. If your project depends on one particular model, check its name and availability in the Console model catalog before choosing how to pay.

Start a first session in your terminal

Pick a repository you know well enough to check an answer. For a web app with user accounts, ask OpenCode to trace a sign-in. You can judge the explanation by opening the relevant file before giving the agent an editing task.

  1. Install the terminal client

    On macOS or Linux, the current installation docs give this command. Windows users can get a standalone CLI binary from the same page.

    Bash
    curl -fsSL https://opencode.ai/v2/install | bash
  2. Open the project

    Use your own repository’s path in place of the example directory. In the shell, run the two lines from the terminal guide.

    Bash
    cd ~/code/my-project
    opencode
  3. Ask about the code

    Inside OpenCode, type the guide’s example question and press Enter.

    Explain how authentication works in this project

    Open a file named in the answer. If the explanation is too broad, type @ to select that file and ask about the particular function that checks a session. Terminal guide and example prompts

A path leads through three thresholds, from opening the project to asking a question and checking the file
A file you recognize gives you a way to check the first answer.

For exploring unfamiliar code, select Plan through /agents. Plan leaves ordinary project files alone, though it can write plan files and has permission-controlled shell access. Build is the default agent for making changes. Pick it when you can describe the edit and recognize a correct diff. Built-in agent permissions

When do OpenCode skills or OpenCode plugins help?

A skill gives the agent reusable instructions in a SKILL.md file. If every release review follows the same checklist, that checklist is a candidate for a skill. A plugin runs your own code when an event occurs. Use one when you need a programmed response to an event. For the authentication question above, a file reference is enough.

OpenCode vs Claude Code and OpenCode vs Codex CLI

  • OpenCode fits a developer who wants to compare models on the same repository or use a local model without learning a new agent for each provider.
  • Claude Code is Anthropic’s coding agent. If you already work in Claude and want its terminal workflow, start with the OpenCode and Claude Code comparison.
  • Codex CLI is OpenAI’s terminal agent for inspecting, editing and running code. If you already use ChatGPT, the terminal agent comparison can help you decide whether provider choice is worth a switch.
Where can I use OpenCode Desktop?

Choose the desktop app if you want a visual view of file changes. You can keep using your existing editor for the surrounding work.

Do I need an OpenCode login?

You can start with an included free model before creating an account. Connecting a subscription is a separate choice you make inside the agent.

How do I open the OpenCode web interface?

Run opencode pair to get a link for the web interface of your running instance. The project stays on the machine running OpenCode.

Who should try it?

Try OpenCode if your next task is in an existing repository and you have a reason to choose who supplies the model. If you need a ready-made computer and editor in the cloud, look for a hosted development environment. If you’re still deciding which part of the setup you want to control, the guide to open-source coding agents explains the options. Freebuff’s ad-supported approach offers another way to fund terminal assistance.

Get the developer tools newsletter.

Published
Category
Build
Related Articles
Shirudo: Shield a Running Linux Service Before the Patch Lands

Shirudo: Shield a Running Linux Service Before the Patch Lands

OpenAI and Cisco's Shirudo loads signed eBPF shields into running Linux to block an exploit's path before the patch. How it works and how to try it.Nov 25, 2026Build
Claude Approvals: Who Has to Sign Off on a Pull Request?

Claude Approvals: Who Has to Sign Off on a Pull Request?

Start Claude Approvals in observe mode, read the check, keep automatic Code Reviews running, and require a human sign-off on sensitive changes.Nov 25, 2026Build
GPT-6.2 API Guide: Astra, Sol and Moving From GPT-6.1

GPT-6.2 API Guide: Astra, Sol and Moving From GPT-6.1

GPT-6.2 Astra and Sol in the OpenAI API: model ids, limits and prices, the instructions and prefix changes from 6.1, and the same call in the AI SDK.Nov 24, 2026Build
Claude Ship

Claude Ship

Follow one GitHub pull request through Code Review, PR Steward and Claude Approvals. See who can use Claude Ship, how billing works and where to start.Nov 24, 2026Build
What Is Google AI Studio? From Your First Prompt to a Working App

What Is Google AI Studio? From Your First Prompt to a Working App

Learn when to use Google AI Studio, how to try a Gemini prompt and share an app, and where to get your first API key.Nov 24, 2026Build
Vercel v0: What It Builds and How to Start

Vercel v0: What It Builds and How to Start

See how Vercel v0 turns a task-tracker prompt into a full-stack web app, what to check in the preview, and how to publish it on Vercel.Nov 24, 2026Build
Freebuff: What It Is, How Ads Work and How to Start

Freebuff: What It Is, How Ads Work and How to Start

What Freebuff can do in your project, how its daily allowance works, what code leaves your machine and how to start the coding agent from a terminal.Nov 24, 2026Build
Jan AI: What It Is, What It Costs, and How to Start

Jan AI: What It Is, What It Costs, and How to Start

Run Jan AI on your computer, choose a model that fits your hardware, and start an offline chat. See when a request stays local and when it goes to the cloud.Nov 24, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.