OpenCode is an open-source harness system under an MIT license that allows users to build AI agent systems. Unlike proprietary solutions like Claude Code or Codex, OpenCode is model-agnostic and supports over 75 providers, including local models via Ollama or vLLM.

The system enables users to define roles such as orchestrators, coders, and reviewers, assigning specific models to each. It supports OpenAI-compatible gateways, allowing integration with services like Bothub to access various models through a single endpoint.

Installation of the current v2 version is performed via npm, brew, or an official script. The author notes that OpenCode relies on Bun, which may encounter issues with HTTP/HTTPS proxies. Users are advised to unset proxy variables to ensure stable operation.

Configuration is managed via a JSON file where users define providers, models, and agent permissions. Authentication is handled through the 'opencode auth login' command to avoid storing credentials in environment files.