Skip to content

AgentUsage-basedIntermediate

OpenCode

Lets you hand coding tasks to an open source AI agent that works with many model providers

View original on GitHub

Install request

Your browser blocked copying. Select the text and copy it yourself.

Paste this into your AI agent (Claude Code, Codex or similar). It asks the agent to read the files and wait for your OK before installing.

The OpenCode terminal interface searching a codebase to change a homepage button
Image: Anomaly (MIT). Original file

What it does

OpenCode is an open source AI coding agent, available as a terminal interface, a desktop app or a web app. You describe a task; its build agent makes the changes, and a read-only plan agent explores code and asks before running commands. You connect the model provider you already use, such as a ChatGPT plan, GitHub Copilot, an API key or a local model. It suits developers who want to choose their own model.

It does not tie you to one AI company: you can connect many providers, including local models, and switch between them.

Before you start

  • A computer with macOS, Windows or Linux.
  • An account with the model provider you choose; local models need no account
  • Free option: Local models through Ollama, LM Studio or vLLM work without an account
  • Pay per use. The AI service it calls charges for what you use.

How to start

  1. Install itPaste the install request into an AI agent you already use, or run the official command yourself or follow the official guide.macOS, Linuxcurl -fsSL https://opencode.ai/v2/install | bash

    Install command

    Your browser blocked copying. Select the text and copy it yourself.

    This is the official install command, copied from the creator's instructions. Paste it where the instructions say.

    macOS, Linuxnpm install -g @opencode/cli

    Install command

    Your browser blocked copying. Select the text and copy it yourself.

    This is the official install command, copied from the creator's instructions. Paste it where the instructions say.

    WindowsDownload the installer
  2. Sign up and choose a planCreate an account or sign in, then compare the official plans.
  3. Give it a first taskDescribe what you want in your own words, and check the first result before relying on it.

Steps follow the creator's instructions.

Stuck setting it up?

Tell us what happened. We confirm scope and price before any paid work.

Get help
View original

Install request

Your browser blocked copying. Select the text and copy it yourself.

Paste this into your AI agent (Claude Code, Codex or similar). It asks the agent to read the files and wait for your OK before installing.