# OpenCode — AI Compare Ninja

> Open-source AI coding agent for the terminal.

## Overview
- **Category:** Development & Code (Coding assistants & IDEs)
- **Status:** Active · checked - Active.
- **Paid from:** free / Permanent (Open Source)
- **Free access:** Free plan
- **Website:** https://opencode.ai
- **Canonical URL:** https://www.aicompare.ninja/en/tool/opencode

## What it does
- Open-source AI coding agent for the terminal with no proprietary lock-in
- Supports Anthropic Claude, OpenAI, Google Gemini, xAI Grok, and more via your own API key
- Tools: file management, shell execution, search, diagnostics, and fetch
- Share feature for conversations with other developers
- MIT core free; optional Zen is usage-based and Go a separate subscription with no published rate
- LSP-powered diagnostics and symbol search for precise code navigation

## In brief
opencode is an open-source AI coding agent for terminal environments that calls Anthropic Claude, OpenAI, Google Gemini, and xAI Grok using your own API key. Features include file, shell, diagnostics, and fetch tools plus a share function.

The MIT core is free. Alongside BYOK and local models, Zen is optionally available as OpenCode's own usage-based gateway; Go is a separate subscription with no published rate.


## Limits
The OpenCode core is open source under MIT. BYOK and local models remain available. Optionally, OpenCode Zen is OpenCode's own usage-based gateway with credits; OpenCode Go is a separate subscription whose current documentation does not publish a rate.

## Pricing tiers
| Tier | Price | Period | What you get |
| --- | --- | --- | --- |
| Open Source | free | Permanent | Terminal, IDE, and desktop use; BYOK for 75+ model providers |

## Sources
All details regarding plans, limits, and features are based on official vendor documentation and the primary sources verified below.

- https://github.com/anomalyco/opencode
- https://opencode.ai
- https://opencode.ai/docs
- https://dev.opencode.ai/docs/zen
- https://dev.opencode.ai/docs/providers

---
*Source: AI Compare Ninja (2026) - https://www.aicompare.ninja/en/tool/opencode*
