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.
Configuration lives in opencode.json at the project root. Custom agents
are defined in .opencode/agents/ as markdown files with system prompts.
OpenCode supports defining specialized agents for different tasks:
Works with OpenRouter, Anthropic, OpenAI, and local models. Provider
configuration is set per-agent in opencode.json.