# OpenCode

Published January 1, 2026 · Updated August 10, 2026

Open-source AI coding agent with terminal integration

Category: Developer Tools · Free · Replaces GitHub Copilot Pro ($10/month) · [Official website](https://opencode.ai)

## Install with Homebrew

`brew install --cask opencode-desktop`

## Quick take

OpenCode is a free, open-source, model-agnostic AI coding agent for Mac that fits developers who refuse a single-vendor IDE; the OpenCode Desktop client is at version 2.3.0. MIT software with free models and no account required, optional $10/month Go or $40/month Go Plus tiers, desktop tabs, and 75+ providers make the cost structure clear. Stay with Claude Code or Cursor when you want polished single-stack quality more than provider freedom.

Best for: Developers who want Claude Code-like agents without single-vendor lock-in, Mac users running local models via Ollama/LM Studio, Teams standardizing on BYOK multi-model workflows, Budget-conscious users eyeing OpenCode Go

## What is OpenCode?

OpenCode is an open-source AI coding agent for Mac that carries out coding tasks from a terminal UI, a desktop app, and an IDE extension. The anomalyco/opencode project (Anomaly) positions it as a model-agnostic alternative to vendor agents such as Claude Code and Codex: you bring API keys or local models, describe a task, and the agent edits files, runs commands, and iterates. Marketing materials cite on the order of 195K GitHub stars and multi-million monthly developer usage (treat star counts as approximate). Desktop work accelerated through 2026: Desktop v2 redesigned the home screen, added titlebar session controls, pinch zoom, and background agents, and by November 2026 the app sits at version 2.3.0 (released 2026-11-13), where subagents return immediately and keep working in the background, the terminal UI summarizes each run of tool calls into one collapsible activity row, and the command palette can jump to an earlier prompt (Cmd+Alt+G on macOS). Later desktop messaging highlights multi-tab sessions on macOS, Windows, and Linux. LSP awareness, multi-session agents, shareable session links, optional GitHub Copilot or ChatGPT Plus/Pro login paths, and 75+ providers via Models.dev (including local Ollama/LM Studio) define the platform. Pricing: the agent is free MIT-licensed software with free models and no account required. Optional OpenCode Go is a low-cost hosted model subscription at $10 per month, and a Go Plus tier runs $40 per month; the Go console prints illustrative per-model allowance amounts such as $15 on Go and $60 on Go Plus across curated open coding models such as Grok 4.5, GLM-5.x, GPT-5.6 Luna, Kimi K-series, DeepSeek V4, Qwen3.x, MiniMax, and MiMo variants. You can also BYOK to Anthropic, OpenAI, Google, and others, or use OpenCode Zen pay-as-you-go for curated premium routes. Mac install paths include the Homebrew cask opencode-desktop (the cask lists macOS 13 or newer), curl installer, npm/bun global packages, and desktop downloads from opencode.ai/download with separate macOS (Apple Silicon) and macOS (Intel) builds. Competitors in November 2026 include Claude Code, OpenAI Codex inside the ChatGPT desktop app, Cursor, Windsurf (Cognition), Warp agents, and Meta Muse Code. OpenCode's edge remains open source plus any model plus an optional low-cost Go tier without forcing a single vendor IDE.

## Features

- **Desktop Tabs & Background Agents.** Desktop v2 and later add multi-tab sessions, titlebar session controls, and background agents that push progress without constant polling. In the current desktop release, 2.3.0 from 2026-11-13, subagents return immediately and keep working in the background, each run of tool calls collapses into one collapsible activity row in the terminal UI, and the command palette can jump to an earlier prompt (Cmd+Alt+G on macOS). That helps long refactors on macOS when you leave a job running while you work elsewhere.
- **Multi-Provider Support.** More than 75 LLM providers via Models.dev: OpenAI (GPT-5.6-class, GPT-4.1), Anthropic (Claude Sonnet, Claude Opus), Google Gemini, OpenAI-compatible endpoints, plus local Ollama or LM Studio. Log in with GitHub Copilot or ChatGPT Plus/Pro where supported. Switch providers mid-session when the task changes.
- **LSP-Enabled Intelligence.** OpenCode loads Language Server Protocol servers for the project so the model sees symbols, types, and diagnostics, not only raw file text. Edits land closer to a real IDE agent than a pure chat-with-files bot.
- **Multi-Session Architecture.** Run several agents on one project with separate histories. Useful for comparing approaches, parking a long job, or letting teammates watch different threads.
- **Shareable Conversation Links.** The /share command builds a URL that captures conversation state for reviews or debugging. Sessions stay private until you create a link on purpose.
- **Desktop App and IDE Extension.** Desktop builds for macOS, Windows, and Linux add notifications and a GUI. An IDE extension embeds OpenCode in VS Code, Cursor, and similar editors so you stay in the editor shell.
- **Open Source and Self-Hostable.** MIT-licensed code on GitHub. Inspect the agent, patch it, or extend it with the SDK and plugins. Anomaly continues active maintenance; star counts are high (marketing cites ~195K; some materials still say 155K+).
- **OpenCode Go Model Bundle.** Optional OpenCode Go subscription at $10 per month, or Go Plus at $40 per month, for curated open coding models (Grok 4.5, GLM-5.x, GPT-5.6 Luna, Kimi, DeepSeek V4, Qwen3.x, MiniMax, MiMo, and more). The Go console prints illustrative per-model allowance amounts such as $15 on Go and $60 on Go Plus.
- **75+ Providers & Local Models.** Connect cloud providers through Models.dev or run local models via Ollama/LM Studio. LSP-backed context improves edits inside real codebases.

## How to Install OpenCode on Mac

OpenCode can be installed via Homebrew, npm, bun, or curl. Multiple installation options ensure it works with your preferred package manager.

1. **Install via Homebrew.** Run `brew install --cask opencode-desktop`. This installs the OpenCode desktop client (currently 2.3.0) from the Homebrew cask, which has recorded 25,027 installs in the last 90 days.
2. **Configure a Provider.** Create `~/.config/opencode/config.yaml` and add your API key. For Anthropic: set `provider: anthropic` and `api_key: sk-ant-...`. For OpenAI: set `provider: openai` and `api_key: sk-...`. For GitHub Copilot: log in with `opencode --login copilot`. For local Ollama: set `provider: ollama` and `base_url: http://localhost:11434`.
3. **Navigate to Your Project.** cd into your project directory. OpenCode reads the current directory as the project root.
4. **Launch OpenCode.** Run `opencode` in your terminal. The TUI opens with a prompt. Type natural language instructions such as 'explain this codebase,' 'add input validation to the login form,' or 'write tests for the user service.'

## Pros

- 75+ models via Models.dev; not locked to one vendor
- GitHub Copilot and ChatGPT Plus/Pro login paths where supported
- Local models via Ollama for offline or private work
- LSP integration for symbol-aware edits
- Parallel multi-session agents on one project
- Shareable conversation links for reviews
- Desktop app for macOS, Windows, and Linux (still maturing)
- IDE extension for VS Code, Cursor, and similar editors
- MIT open source with active Anomaly maintenance
- OpenCode Go at $10/month and Go Plus at $40/month for hosted open models
- Works on Apple Silicon with local Ollama/LM Studio stacks

## Cons

- Output quality follows whichever model you pick
- Desktop app still beta-ish with rough edges
- Local models need RAM and lag cloud flagships
- Some convenience features sit behind OpenCode Go
- You own provider selection and key management
- Desktop polish still trails some commercial AI IDEs

## Closer look: The Open-Source AI Coding Agent Movement

How OpenCode evolved from a terminal tool into a full AI coding platform with desktop apps, IDE extensions, and low-cost subscription models.

## FAQ

### Is OpenCode free?

Yes. The agent is open source under MIT, with free models and no account required. You can also BYOK to any supported provider you pay for, or subscribe to OpenCode Go, Go Plus, or Zen for hosted model access.

### What is OpenCode Go pricing?

OpenCode Go is $10 per month and Go Plus is $40 per month. The console prints illustrative per-model allowance amounts such as $15 on Go and $60 on Go Plus; those lines are allowances, not the subscription price.

### Does OpenCode have a Mac desktop app?

Yes. Desktop builds for macOS (plus Windows/Linux) include tabs and background agents; the TUI remains first-class.

### Which models can I use?

75+ providers via Models.dev, local models, GitHub Copilot or ChatGPT login paths where supported, and Go-hosted models like Grok 4.5, GLM-5.x, GPT-5.6 Luna, Kimi, DeepSeek V4, and Qwen3.x.

### How do I install on macOS?

brew install --cask opencode-desktop, the curl installer, npm/bun global install, or desktop downloads from opencode.ai/download with separate macOS (Apple Silicon) and macOS (Intel) builds.

### How does OpenCode compare to Claude Code?

Claude Code optimizes for Anthropic models and UX. OpenCode optimizes for openness, multi-model choice, and low-cost open model bundles.

### Is my code stored on OpenCode servers?

OpenCode markets privacy-first operation without storing your code/context by default; hosted model providers have their own retention policies, read Go/Zen privacy tables.

### Can I use local models offline?

Yes via Ollama or LM Studio endpoints configured as providers.

### Is OpenCode related to SST?

The project has roots in the broader open-agent ecosystem around Anomaly/SST contributors; use the official opencode.ai and anomalyco/opencode repositories as sources of truth.

### Does it work on Apple Silicon and Tahoe?

Yes. macOS desktop and Homebrew installs are actively promoted for modern Macs including Apple Silicon.

### What's new in the latest OpenCode Desktop update?

Desktop 2.3.0, released 2026-11-13, makes subagents return immediately and keep working in the background, summarizes each run of tool calls into one collapsible activity row, and lets the desktop app jump to an earlier prompt from the command palette (Cmd+Alt+G on macOS).

### What are OpenCode's minimum requirements on Mac?

The Homebrew cask for OpenCode Desktop lists macOS 13 or newer and marks the app as auto-updating. The homepage offers separate downloads labeled macOS (Apple Silicon) and macOS (Intel), so pick the build that matches your Mac.

### Does OpenCode still support free models?

Yes. OpenCode ships with free models and no account required. The current desktop release is 2.3.0, released 2026-11-13. The Homebrew cask marks the app auto-updating, so an installed copy reaches the current release on its own, and a fresh build is available from opencode.ai/download.

## Sources

- [OpenCode home](https://opencode.ai/)
- [OpenCode docs](https://opencode.ai/docs/)
- [OpenCode Go docs](https://opencode.ai/docs/go/)
- [OpenCode Go product page](https://opencode.ai/go)
- [anomalyco/opencode GitHub](https://github.com/anomalyco/opencode)
- [OpenCode vs Claude Code 2026](https://www.aibuilderclub.com/blog/opencode-vs-claude-code-2026)
- [OpenCode Go](https://opencode.ai/console/go)
- [OpenCode GitHub releases API](https://api.github.com/repos/anomalyco/opencode/releases?per_page=12)
- [Homebrew cask opencode-desktop](https://formulae.brew.sh/cask/opencode-desktop)

## Related

- [Cursor](https://bundl.run/apps/cursor)
- [Claude Code](https://bundl.run/apps/claude-code)
- [ChatGPT](https://bundl.run/apps/chatgpt)
- [Claude](https://bundl.run/apps/claude)
- [Codex](https://bundl.run/apps/codex)
- [Windsurf](https://bundl.run/apps/windsurf)
- [OpenCode vs Claude Code](https://bundl.run/compare/opencode-desktop-vs-claude-code)
- [Free alternative to GitHub Copilot Pro](https://bundl.run/https:/)

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://bundl.run/#organization",
      "name": "Bundl.run",
      "url": "https://bundl.run",
      "logo": {
        "@type": "ImageObject",
        "url": "https://bundl.run/og-image.png",
        "width": 1200,
        "height": 630
      },
      "description": "The Ninite for Mac. Install all your essential Mac apps with one terminal command.",
      "sameAs": [
        "https://github.com/abhiofficial/bundl-mac-setup",
        "https://x.com/bundlrun",
        "https://www.producthunt.com/products/bundl-run"
      ],
      "foundingDate": "2024",
      "contactPoint": {
        "@type": "ContactPoint",
        "contactType": "customer support",
        "url": "https://bundl.run/faq"
      }
    },
    {
      "@type": "WebSite",
      "@id": "https://bundl.run/#website",
      "name": "Bundl.run",
      "url": "https://bundl.run",
      "description": "The Ninite for Mac. Install all your essential Mac apps with one terminal command.",
      "publisher": {
        "@id": "https://bundl.run/#organization"
      },
      "inLanguage": "en-US"
    },
    {
      "@type": "Person",
      "@id": "https://bundl.run/authors/alex-chen#person",
      "name": "Alex Chen",
      "jobTitle": "Senior Developer Tools Specialist",
      "url": "https://bundl.run/authors/alex-chen",
      "worksFor": {
        "@id": "https://bundl.run/#organization"
      },
      "description": "Alex Chen has been evaluating developer tools and productivity software for over 12 years, with deep expertise in code editors, terminal emulators, and development environments. As a former software engineer at several Bay Area startups, Alex brings hands-on experience with the real-world workflows these tools are meant to enhance. Alex tests each application extensively on both Intel and Apple Silicon Macs, documenting performance metrics, integration capabilities, and workflow efficiency. When not reviewing software, Alex contributes to open-source projects and writes technical tutorials for the developer community.",
      "knowsAbout": [
        "Code Editors & IDEs",
        "Terminal Emulators",
        "Version Control Tools",
        "DevOps & CI/CD",
        "API Development",
        "Performance Benchmarking"
      ],
      "image": "https://bundl.run/authors/alex-chen.svg"
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://bundl.run/apps/opencode-desktop#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://bundl.run"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Apps",
          "item": "https://bundl.run/apps"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "OpenCode",
          "item": "https://bundl.run/apps/opencode-desktop"
        }
      ]
    },
    {
      "@type": "WebPage",
      "@id": "https://bundl.run/apps/opencode-desktop",
      "url": "https://bundl.run/apps/opencode-desktop",
      "name": "OpenCode for Mac",
      "description": "Open-source AI coding agent with terminal integration",
      "isPartOf": {
        "@id": "https://bundl.run/#website"
      },
      "publisher": {
        "@id": "https://bundl.run/#organization"
      },
      "inLanguage": "en-US",
      "datePublished": "2026-01-01T00:00:00Z",
      "dateModified": "2026-08-10T13:34:04.000Z",
      "author": {
        "@id": "https://bundl.run/authors/alex-chen#person"
      },
      "mainEntity": {
        "@id": "https://bundl.run/apps/opencode-desktop#software"
      },
      "breadcrumb": {
        "@id": "https://bundl.run/apps/opencode-desktop#breadcrumb"
      }
    },
    {
      "@type": "SoftwareApplication",
      "@id": "https://bundl.run/apps/opencode-desktop#software",
      "name": "OpenCode",
      "description": "Open-source AI coding agent with terminal integration",
      "applicationCategory": "DeveloperApplication",
      "operatingSystem": "macOS",
      "url": "https://bundl.run/apps/opencode-desktop",
      "image": {
        "@type": "ImageObject",
        "url": "https://img.logo.dev/opencode.ai?token=pk_fPJIhKDVRze355DoWUdqqg",
        "caption": "OpenCode app icon for Mac"
      },
      "sameAs": [
        "https://opencode.ai/",
        "https://formulae.brew.sh/cask/opencode-desktop"
      ],
      "review": {
        "@type": "Review",
        "author": {
          "@id": "https://bundl.run/authors/alex-chen#person"
        },
        "reviewBody": "OpenCode is a free, open-source, model-agnostic AI coding agent for Mac that fits developers who refuse a single-vendor IDE; the OpenCode Desktop client is at version 2.3.0. MIT software with free models and no account required, optional $10/month Go or $40/month Go Plus tiers, desktop tabs, and 75+ providers make the cost structure clear. Stay with Claude Code or Cursor when you want polished single-stack quality more than provider freedom."
      },
      "about": {
        "@type": "Thing",
        "name": "OpenCode",
        "description": "Open-source AI coding agent with terminal integration"
      },
      "isPartOf": {
        "@id": "https://bundl.run/#website"
      }
    },
    {
      "@type": "Article",
      "@id": "https://bundl.run/apps/opencode-desktop#article",
      "headline": "OpenCode for Mac — Full Review & Installation Guide 2026",
      "description": "OpenCode is a free, open-source, model-agnostic AI coding agent for Mac that fits developers who refuse a single-vendor IDE; the OpenCode Desktop client is at version 2.3.0. MIT software with free models and no account required, optional $10/month Go or $40/month Go Plus tiers, desktop tabs, and 75+ providers make the cost structure clear. Stay with Claude Code or Cursor when you want polished single-stack quality more than provider freedom.",
      "image": "https://img.logo.dev/opencode.ai?token=pk_fPJIhKDVRze355DoWUdqqg",
      "author": {
        "@id": "https://bundl.run/authors/alex-chen#person"
      },
      "publisher": {
        "@id": "https://bundl.run/#organization"
      },
      "datePublished": "2026-01-01T00:00:00Z",
      "dateModified": "2026-08-10T13:34:04.000Z",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://bundl.run/apps/opencode-desktop"
      },
      "articleSection": "DeveloperApplication",
      "speakable": {
        "@type": "SpeakableSpecification",
        "cssSelector": [
          "h1",
          ".key-facts"
        ]
      },
      "about": {
        "@type": "SoftwareApplication",
        "name": "OpenCode",
        "url": "https://bundl.run/apps/opencode-desktop"
      },
      "mentions": [
        {
          "@type": "SoftwareApplication",
          "name": "GitHub Copilot Pro"
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://bundl.run/apps/opencode-desktop#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Is OpenCode free?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. The agent is open source under MIT, with free models and no account required. You can also BYOK to any supported provider you pay for, or subscribe to OpenCode Go, Go Plus, or Zen for hosted model access."
          }
        },
        {
          "@type": "Question",
          "name": "What is OpenCode Go pricing?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "OpenCode Go is $10 per month and Go Plus is $40 per month. The console prints illustrative per-model allowance amounts such as $15 on Go and $60 on Go Plus; those lines are allowances, not the subscription price."
          }
        },
        {
          "@type": "Question",
          "name": "Does OpenCode have a Mac desktop app?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. Desktop builds for macOS (plus Windows/Linux) include tabs and background agents; the TUI remains first-class."
          }
        },
        {
          "@type": "Question",
          "name": "Which models can I use?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "75+ providers via Models.dev, local models, GitHub Copilot or ChatGPT login paths where supported, and Go-hosted models like Grok 4.5, GLM-5.x, GPT-5.6 Luna, Kimi, DeepSeek V4, and Qwen3.x."
          }
        },
        {
          "@type": "Question",
          "name": "How do I install on macOS?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "brew install --cask opencode-desktop, the curl installer, npm/bun global install, or desktop downloads from opencode.ai/download with separate macOS (Apple Silicon) and macOS (Intel) builds."
          }
        },
        {
          "@type": "Question",
          "name": "How does OpenCode compare to Claude Code?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Claude Code optimizes for Anthropic models and UX. OpenCode optimizes for openness, multi-model choice, and low-cost open model bundles."
          }
        },
        {
          "@type": "Question",
          "name": "Is my code stored on OpenCode servers?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "OpenCode markets privacy-first operation without storing your code/context by default; hosted model providers have their own retention policies, read Go/Zen privacy tables."
          }
        },
        {
          "@type": "Question",
          "name": "Can I use local models offline?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes via Ollama or LM Studio endpoints configured as providers."
          }
        },
        {
          "@type": "Question",
          "name": "Is OpenCode related to SST?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "The project has roots in the broader open-agent ecosystem around Anomaly/SST contributors; use the official opencode.ai and anomalyco/opencode repositories as sources of truth."
          }
        },
        {
          "@type": "Question",
          "name": "Does it work on Apple Silicon and Tahoe?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. macOS desktop and Homebrew installs are actively promoted for modern Macs including Apple Silicon."
          }
        },
        {
          "@type": "Question",
          "name": "What's new in the latest OpenCode Desktop update?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Desktop 2.3.0, released 2026-11-13, makes subagents return immediately and keep working in the background, summarizes each run of tool calls into one collapsible activity row, and lets the desktop app jump to an earlier prompt from the command palette (Cmd+Alt+G on macOS)."
          }
        },
        {
          "@type": "Question",
          "name": "What are OpenCode's minimum requirements on Mac?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "The Homebrew cask for OpenCode Desktop lists macOS 13 or newer and marks the app as auto-updating. The homepage offers separate downloads labeled macOS (Apple Silicon) and macOS (Intel), so pick the build that matches your Mac."
          }
        },
        {
          "@type": "Question",
          "name": "Does OpenCode still support free models?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. OpenCode ships with free models and no account required. The current desktop release is 2.3.0, released 2026-11-13. The Homebrew cask marks the app auto-updating, so an installed copy reaches the current release on its own, and a fresh build is available from opencode.ai/download."
          }
        }
      ],
      "isPartOf": {
        "@id": "https://bundl.run/apps/opencode-desktop"
      }
    }
  ]
}
```