{
  "schema_version": "openagent.agent_resource_packet.v1",
  "id": "res_opencode",
  "slug": "opencode",
  "name": "OpenCode",
  "canonical_url": "https://www.openagent.bot/agents/opencode",
  "category": "agents",
  "resource_type": "agent",
  "summary": "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.",
  "capabilities": [
    "mcp",
    "local-inference",
    "workflow-orchestration"
  ],
  "constraints": [
    "open-source",
    "local-first",
    "mcp-compatible"
  ],
  "scenarios": [
    "local-ai",
    "developer-workflow"
  ],
  "deployment_modes": [
    "local",
    "cloud"
  ],
  "interfaces": [
    "repo",
    "docs"
  ],
  "integrations": [
    "agents",
    "models"
  ],
  "permission_surface": [
    "shell/files",
    "memory",
    "external services"
  ],
  "risk_level": "elevated",
  "source_confidence": "high",
  "recommended_workflows": [
    "Coding agent workflow",
    "Connector or protocol layer",
    "Local or private AI stack",
    "Memory or RAG workflow"
  ],
  "avoid_when": [
    "Users who need a fully managed cloud-hosted coding agent",
    "Teams that prefer single-model deep integration over multi-provider flexibility"
  ],
  "primary_actions": [
    "Inspect repository",
    "Open Homepage",
    "Read setup docs",
    "Install OpenCode"
  ],
  "evidence_urls": [
    "https://github.com/anomalyco/opencode",
    "https://opencode.ai",
    "https://opencode.ai/docs"
  ],
  "last_verified_at": "2026-06-04",
  "machine_readable": {
    "json_url": "https://www.openagent.bot/agents/opencode.json",
    "markdown_url": "https://www.openagent.bot/agents/opencode.md",
    "agent_json_url": "https://www.openagent.bot/agents/opencode.agent.json"
  }
}