> ## Documentation Index
> Fetch the complete documentation index at: https://kindling.birklid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode

> Open-source AI coding agent with 150k+ stars, multi-provider LLM support, and a privacy-first architecture.

<div style={{display: "flex", gap: "8px", marginBottom: "1.5rem", flexWrap: "wrap"}}>
  <Badge>Open Source</Badge>
  <Badge color="#F97316">Applications Layer</Badge>
</div>

# OpenCode

**Open-source AI coding agent for the terminal, IDE, and desktop — built for privacy and model flexibility.**

<Frame>
  <img src="https://mintcdn.com/tumbleweedlabs/QT0SlrwbzlJBSMcS/images/og-opencode.png?fit=max&auto=format&n=QT0SlrwbzlJBSMcS&q=85&s=01b5b72248e0ff9f6dd99d2130c40763" alt="OpenCode GitHub" width="1200" height="600" data-path="images/og-opencode.png" />
</Frame>

<CardGroup cols={4}>
  <Card title="Type" icon="code-branch">
    Open Source (MIT)
  </Card>

  <Card title="Stack Layer" icon="browsers">
    Applications
  </Card>

  <Card title="Language" icon="code">
    TypeScript
  </Card>

  <Card title="Stars" icon="star">
    157k+
  </Card>
</CardGroup>

## What it is

OpenCode is an AI coding agent built by [Anomaly](https://github.com/anomalyco) that runs in your terminal, IDE, or as a desktop app. Unlike proprietary alternatives, it connects to over 75 LLM providers through [Models.dev](https://models.dev) — including Claude, GPT, Gemini, and locally-hosted models — so you're never locked into a single vendor. With 157k+ GitHub stars and 6.5 million monthly users, it has become one of the most widely adopted open-source coding agents in the ecosystem.

The architecture is explicitly privacy-first: OpenCode doesn't store your code or context data, making it viable in environments where proprietary tools are ruled out. It supports Language Server Protocol (LSP) integration for language-aware completions, parallel multi-session runs for concurrent agents on the same project, and shareable session links for debugging and review. The companion service Zen provides a curated set of models benchmarked specifically for coding agent use.

<Tip>
  **Use this when** you want the flexibility to swap models, need to run in a privacy-sensitive codebase, or want an open-source alternative to GitHub Copilot or Cursor with full control over the underlying LLM.
</Tip>

## Get started

<CardGroup cols={2}>
  <Card title="Open OpenCode ↗" icon="globe" href="https://opencode.ai/">
    Visit the official site for installation guides and docs.
  </Card>

  <Card title="View on GitHub ↗" icon="github" href="https://github.com/anomalyco/opencode">
    Source code, issues, and 850+ contributors.
  </Card>
</CardGroup>

## Related tools

<CardGroup cols={2}>
  <Card title="gstack" icon="github" href="/library/skills/gstack">
    Garry Tan's Claude Code setup — 23 opinionated agent skills for engineering workflows.
  </Card>

  <Card title="Matt Pocock's Skills" icon="github" href="/library/skills/matt-pocock-skills">
    TDD, diagnose, zoom-out, and other engineering routines for Claude Code.
  </Card>
</CardGroup>
