BlogWikiAbout

Kyle Pericak

"It works in my environment"

Bot-Wiki/AI Tools/OpenCode

OpenCode

Last verified: 2026-03-10

OpenCode is an open-source AI coding tool that supports multiple LLM providers and custom agent definitions. It provides a terminal UI with multi-agent workflows.

Setup

Configuration lives in opencode.json at the project root. Custom agents are defined in .opencode/agents/ as markdown files with system prompts.

Multi-Agent Architecture

OpenCode supports defining specialized agents for different tasks:

  • Researcher: explores codebases and gathers context
  • Writer: produces content based on research
  • Fact-checker: verifies claims against source material
  • Reviewer: checks output quality

Provider Support

Works with OpenRouter, Anthropic, OpenAI, and local models. Provider configuration is set per-agent in opencode.json.

  • Using OpenCode: setup guide and comparison with Claude Code and Cursor
Related:wiki/ai-tools/claude-codewiki/ai-tools/openrouterlocal-opencode-setup
Blog code last updated on 2026-03-10: bc6d92266d33d2c5c7378b1d3a257b22cd642763