# 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 the open, model-agnostic coding agent to try on Mac in August 2026 if you refuse a single-vendor IDE. MIT software, optional $10/month Go tier, 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 with a terminal UI, desktop app, and 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. As of August 2026 OpenCode is highly visible among open coding agents. Marketing materials cite on the order of 195K GitHub stars and multi-million monthly developer usage (treat star counts as approximate). Desktop work accelerated in 2026: Desktop v2 (around v1.15.11 in late May 2026) redesigned the home screen, added titlebar session controls, pinch zoom, and background agents that push updates without polling. 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. Optional OpenCode Go is a low-cost hosted model subscription ($5 for the first month, then $10/month) with usage limits as dollar budgets ($12 / 5 hours, $30 weekly, $60 monthly) 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 curl installer, Homebrew tap anomalyco/tap/opencode, npm/bun global packages, and desktop downloads from opencode.ai/download. Competitors in August 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 cheap 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. 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 $5 first month, then $10/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) with documented usage caps.
- **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 opencode`. This installs the latest stable release from Homebrew's official formula (31,000+ monthly installs).
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 after a $5 first month for 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 innovative subscription models.

## FAQ

### Is OpenCode free?

Yes. The agent is open source. You optionally pay providers via BYOK or subscribe to OpenCode Go/Zen for hosted model access.

### What is OpenCode Go pricing?

$5 for the first month, then $10/month, with usage limits around $12 per 5 hours, $30 weekly, and $60 monthly across curated open coding models.

### 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?

curl installer, Homebrew tap anomalyco/tap/opencode, npm/bun global install, or download the desktop app from opencode.ai/download.

### 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.

## 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)

## 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",
        "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 the open, model-agnostic coding agent to try on Mac in August 2026 if you refuse a single-vendor IDE. MIT software, optional $10/month Go tier, 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 the open, model-agnostic coding agent to try on Mac in August 2026 if you refuse a single-vendor IDE. MIT software, optional $10/month Go tier, 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",
      "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. You optionally pay providers via BYOK or subscribe to OpenCode Go/Zen for hosted model access."
          }
        },
        {
          "@type": "Question",
          "name": "What is OpenCode Go pricing?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "$5 for the first month, then $10/month, with usage limits around $12 per 5 hours, $30 weekly, and $60 monthly across curated open coding models."
          }
        },
        {
          "@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": "curl installer, Homebrew tap anomalyco/tap/opencode, npm/bun global install, or download the desktop app from opencode.ai/download."
          }
        },
        {
          "@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."
          }
        }
      ],
      "isPartOf": {
        "@id": "https://bundl.run/apps/opencode-desktop"
      }
    }
  ]
}
```