{
  "schema_version": "openagent.resource.v1",
  "id": "res_opencode",
  "slug": "opencode",
  "status": "published",
  "identity": {
    "name": "OpenCode",
    "one_liner": "Open-source AI coding agent that connects to 75+ AI providers and runs in your terminal, IDE, or desktop with LSP integration and multi-session support.",
    "short_description": "OpenCode is an open-source AI coding agent built in Go that connects to 75+ AI providers including Anthropic, OpenAI, Google, and local models via Ollama. It runs as a terminal TUI, VS Code extension, and desktop app with features like LSP integration, multi-session support, session sharing, and privacy-first design where no code or context data is stored."
  },
  "classification": {
    "resource_type": "agent",
    "primary_category": "agents",
    "subcategories": [
      "coding-agent",
      "terminal",
      "cli",
      "go",
      "mcp"
    ]
  },
  "positioning": {
    "why_it_matters": "OpenCode is one of the fastest-growing open-source coding agents with 160K+ GitHub stars and 7.5M monthly developers. Its model-agnostic design lets developers use existing subscriptions (ChatGPT Plus, Copilot, etc.) or bring their own API keys, making it one of the most cost-effective and flexible coding agents available.",
    "best_for": [
      "Developers who want a model-agnostic coding agent with maximum provider flexibility",
      "Teams that need a privacy-first agent with no code storage or telemetry",
      "Engineers who want both terminal and IDE-based agent workflows"
    ],
    "not_for": [
      "Users who need a fully managed cloud-hosted coding agent",
      "Teams that prefer single-model deep integration over multi-provider flexibility"
    ],
    "use_cases": [
      "local-ai",
      "developer-workflow"
    ],
    "target_audience": [
      "developer",
      "agent_builder"
    ],
    "maturity": "active"
  },
  "decision_signals": {
    "deployment_modes": [
      "local",
      "cloud"
    ],
    "open_source": true,
    "local_first": true,
    "self_hostable": false,
    "has_api": false,
    "has_gui": false,
    "supports_mcp": true,
    "supports_docker": false
  },
  "facts": {
    "license": "MIT",
    "pricing_model": "open_source",
    "github_stars": 160000,
    "github_forks": 9000,
    "github_repo_full_name": "anomalyco/opencode",
    "last_verified_at": "2026-06-04"
  },
  "capabilities": {
    "core_capabilities": [
      "mcp",
      "local-inference",
      "workflow-orchestration"
    ],
    "integrations": [
      "agents",
      "models"
    ],
    "interfaces": [
      "repo",
      "docs"
    ]
  },
  "links": {
    "primary_url": "https://github.com/anomalyco/opencode",
    "items": [
      {
        "type": "github",
        "label": "GitHub",
        "url": "https://github.com/anomalyco/opencode"
      },
      {
        "type": "homepage",
        "label": "Homepage",
        "url": "https://opencode.ai"
      },
      {
        "type": "docs",
        "label": "Docs",
        "url": "https://opencode.ai/docs"
      }
    ]
  },
  "media": {
    "thumbnail_url": "https://github.com/anomalyco.png",
    "og_image_url": "https://github.com/anomalyco.png",
    "thumbnail_brief": {
      "resource_type": "agent",
      "visual_motif": "terminal with multi-provider connection indicators and code flow visualization",
      "background_style": "minimal editorial surface with restrained green accent color",
      "title_overlay": "OpenCode",
      "subtitle": "Open-source AI coding agent",
      "avoid": [
        "busy poster layout",
        "unverified logos",
        "marketing-heavy screenshots"
      ]
    }
  },
  "tags": {
    "category": [
      "agent",
      "open-source"
    ],
    "capability": [
      "mcp",
      "local-inference",
      "workflow-orchestration"
    ],
    "constraint": [
      "open-source",
      "local-first",
      "mcp-compatible"
    ],
    "scenario": [
      "local-ai",
      "developer-workflow"
    ]
  },
  "relationships": {},
  "machine_readable": {
    "canonical_url": "https://www.openagent.bot/agents/opencode",
    "json_url": "https://www.openagent.bot/agents/opencode.json",
    "markdown_url": "https://www.openagent.bot/agents/opencode.md"
  },
  "seo": {
    "title": "OpenCode: AI Agent — Open-source AI coding agent with 75+ provider support, LSP integration, and multi-session workflow.",
    "description": "OpenCode is an open-source AI agent. Open-source AI coding agent that connects to 75+ AI providers and runs in your terminal, IDE, or desktop with LSP integration and multi-session support."
  },
  "editorial": {
    "featured_reason": "One of the fastest-growing open-source coding agents with 160K+ GitHub stars, 75+ provider support, and a unique model-agnostic approach that works with existing subscriptions.",
    "trust_note": "Verified from source links and project metadata.",
    "core_strengths": [
      {
        "title": "75+ AI provider support",
        "description": "Works with any AI provider — Anthropic, OpenAI, Google, Groq, Ollama local models, and 70+ more through an extensible provider system.",
        "why_it_matters": "Developers can use existing subscriptions (ChatGPT Plus, Copilot) or choose the best model for each task without being locked into a single provider."
      },
      {
        "title": "Multi-surface workflow",
        "description": "Available as a terminal TUI, VS Code extension, and desktop app with seamless session sync across all surfaces.",
        "why_it_matters": "Developers can start a task in the terminal, refine it in the IDE, and share results via session links — all from the same agent."
      },
      {
        "title": "Privacy-first design",
        "description": "OpenCode does not store any code or context data. No telemetry, no data retention, and full local control.",
        "why_it_matters": "Privacy-sensitive teams can use OpenCode in regulated environments without worrying about data leaving their control."
      },
      {
        "title": "LSP integration",
        "description": "Automatically loads the right Language Server Protocol configurations for the LLM, giving it deeper code understanding.",
        "why_it_matters": "Better context leads to more accurate edits and fewer hallucinations when working with unfamiliar codebases."
      }
    ],
    "use_case_notes": [
      {
        "title": "Multi-provider experimentation",
        "description": "Switch between Claude, GPT, Gemini, and local models mid-session to compare results for different coding tasks."
      },
      {
        "title": "Privacy-sensitive development",
        "description": "Use OpenCode with local models via Ollama for fully offline, zero-exfiltration coding assistance."
      },
      {
        "title": "Team collaboration via session sharing",
        "description": "Share session links with teammates for code review, debugging help, or reproducing issues."
      }
    ],
    "compare_notes": [
      {
        "title": "Choose OpenCode for provider flexibility and privacy",
        "summary": "OpenCode supports 75+ providers and stores no code data. Claude Code offers deeper Anthropic model integration but locks you into a single provider.",
        "against": "Claude Code"
      }
    ],
    "getting_started": [
      {
        "label": "Open the GitHub repository",
        "url": "https://github.com/anomalyco/opencode",
        "type": "github"
      },
      {
        "label": "Read the documentation",
        "url": "https://opencode.ai/docs",
        "type": "docs"
      },
      {
        "label": "Visit the project website",
        "url": "https://opencode.ai",
        "type": "homepage"
      }
    ],
    "command_line": [
      {
        "label": "Install OpenCode",
        "command": "curl -fsSL https://opencode.ai/install | bash",
        "description": "Install via the official script, then run 'opencode' in any project directory. Supports 75+ providers and works with existing subscriptions."
      }
    ],
    "seo_article": {
      "intro": "OpenCode is redefining what an open-source coding agent can be. With support for 75+ AI providers, a privacy-first architecture, and multi-surface availability (terminal, IDE, desktop), it has rapidly grown to 160K+ GitHub stars and 7.5M monthly active developers.",
      "what_it_is": "OpenCode is an open-source AI coding agent built in Go that connects to 75+ AI providers. It runs in your terminal, as a VS Code extension, or as a desktop app, with LSP integration for deeper code understanding and multi-session support for parallel agent workflows.",
      "why_it_matters": "The coding agent space has been dominated by tools that lock you into a single model provider. OpenCode breaks that pattern by supporting 75+ providers, including the ability to use existing ChatGPT Plus and Copilot subscriptions. Combined with its privacy-first architecture (no code stored, no telemetry), it represents a new model for what an open-source coding agent should be.",
      "how_it_works": "Start with one safe workflow for OpenCode. Inspect official setup instructions, required credentials, execution logs, approval points, and failure recovery before expanding from a sandbox task into production automation.",
      "use_cases": [
        {
          "title": "Cost-effective multi-model development",
          "description": "Use your existing ChatGPT Plus or Copilot subscription with OpenCode instead of paying for additional API access. Switch between models based on task complexity."
        },
        {
          "title": "Local-first development",
          "description": "Run OpenCode with Ollama and local models for fully offline coding assistance. Ideal for air-gapped environments or privacy-sensitive projects."
        },
        {
          "title": "Parallel agent workflows",
          "description": "Use OpenCode's multi-session support to run multiple agents on the same project simultaneously — one refactoring, one testing, one writing documentation."
        }
      ],
      "alternatives": [
        {
          "title": "Use Claude Code for deeper codebase reasoning with Anthropic models",
          "summary": "OpenCode offers model flexibility and privacy. Claude Code may handle complex multi-file reasoning better but locks you into Anthropic's ecosystem.",
          "against": "Claude Code"
        },
        {
          "title": "Use Aider for deeper git integration",
          "summary": "Aider has best-in-class git integration with auto-commit. OpenCode offers broader provider support and multi-surface availability.",
          "against": "Aider"
        }
      ],
      "getting_started": [
        {
          "label": "Read the documentation",
          "url": "https://opencode.ai/docs",
          "type": "docs"
        },
        {
          "label": "Inspect the repository",
          "url": "https://github.com/anomalyco/opencode",
          "type": "github"
        }
      ],
      "faq": [
        {
          "question": "What should I check before using OpenCode?",
          "answer": "Start with one safe workflow for OpenCode. Inspect official setup instructions, required credentials, execution logs, approval points, and failure recovery before expanding from a sandbox task into production automation."
        },
        {
          "question": "Is OpenCode open source?",
          "answer": "OpenCode is listed with MIT based on the official source links in this profile. Re-check the repository, model card, or docs before production use."
        },
        {
          "question": "Who should evaluate OpenCode?",
          "answer": "OpenCode is most worth evaluating for developers who want a model-agnostic coding agent with maximum provider flexibility."
        },
        {
          "question": "Who should use OpenCode?",
          "answer": "Developers who want a privacy-first, model-agnostic coding agent that works across terminal, IDE, and desktop, especially those who already have ChatGPT Plus or Copilot subscriptions."
        },
        {
          "question": "How does OpenCode compare to other coding agents?",
          "answer": "OpenCode's main differentiators are its 75+ provider support, privacy-first design, and multi-surface availability. It trades deep single-provider integration for maximum flexibility."
        }
      ]
    }
  },
  "timestamps": {
    "created_at": "2026-06-04T00:00:00.000Z",
    "updated_at": "2026-06-04T00:00:00.000Z",
    "published_at": "2026-06-04T00:00:00.000Z"
  }
}