OpenCode
OpenCode is an open-source coding agent available through a terminal interface, desktop app, and IDE integrations, with support for multiple model providers and local models.
Overview
The OpenCode client is MIT licensed and provider-agnostic. Users can connect their own provider accounts or optionally use OpenCode's hosted model service.
Agent details
- Type
- Coding
- Autonomy
- Supervised
- Environments
- Local, Cli, Desktop, Ide
- 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 provides access to the current DeepSeek V4 models through OpenAI-compatible and Anthropic-compatible interfaces.
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.