OpenCode
OpenCode is an open-source coding agent offering CLI and desktop clients, a web interface, and multiple model providers; version 1 also documents IDE integrations.
Overview
OpenCode is MIT-licensed and supports direct provider keys and optional hosted model access. OpenCode 2 documents CLI, desktop and paired web use, while OpenCode 1 also documents IDE integrations. The major versions share a command name but differ in installation packages and permissions format: version 2 uses ordered permissions rules. Check the installed version before applying examples; API or hosted model charges can apply.
Agent details
- Type
- Coding
- Autonomy
- Supervised
- Environments
- Local, Cli, Desktop, Ide, Browser
- Human in loop
- Yes
- Pricing
- Free
- Categories
- AI Coding, Open-source Coding Agents, Terminal Coding Agents
Capabilities
The OpenCode client is open source. Model-provider or OpenCode hosted-model usage may be billed separately.
Selectable or integrated models
These are documented as selectable or accessible, not necessarily the product's default models.
Claude Sonnet 5.5
Claude Sonnet 5.5 is an Anthropic model released in September 2026 with a one-million-token context window, text and image input, and text output.
DeepSeek V4 Pro
DeepSeek V4 Pro is a reasoning and agent-oriented model in the DeepSeek V4 family, available through the DeepSeek API with a one-million-token context window.
Gemini 3.8 Flash
Gemini 3.8 Flash is a Google model for long-horizon software engineering, agent workflows, and multimodal tasks, available through the Gemini API.
GPT-6.1 Sol
GPT-6.1 Sol is an OpenAI model positioned below Astra on price while retaining support for complex coding, computer use, reasoning, and tool-based workflows.
API integrations
Claude API
Claude API is Anthropic's REST API for programmatic access to Claude models, including Messages, streaming, tool use, files, model listing, and related platform features.
DeepSeek API
DeepSeek API serves its current V4 models through OpenAI-compatible and Anthropic-compatible interfaces and separately offers Search and Fetch JSON endpoints for live web content.
Gemini API
Gemini API provides programmatic access to Google's Gemini and related generative models through standard, streaming, real-time, batch, embeddings, and media endpoints.
Groq API
Groq API is an OpenAI-compatible inference API for supported language and audio models, with Responses, Chat Completions, streaming, tool use, structured output, and speech endpoints.
Mistral API
Mistral API provides programmatic access to Mistral models, chat completions, agents, tool use, structured outputs, embeddings, document workflows, and batch processing.
OpenAI API
OpenAI API provides programmatic access to OpenAI models through the Responses API, Realtime API, batch processing, and other model and media endpoints.
OpenRouter API
OpenRouter API is an OpenAI-compatible model-routing API that exposes hundreds of models from many providers through a single endpoint and account.
xAI API
xAI API provides programmatic access to Grok models through OpenAI-compatible REST endpoints and xAI's gRPC interface, with text, tool, media, file, and batch APIs.
Alternatives
Alternative relationships are editorial navigation, not rankings.