Opencode Download

Terminal-based AI coding assistant with multi-provider LLM support, session management, LSP integration, and interactive TUI for developers.

⭐ 9,521 stars on GitHub
Latest Release: v0.0.55

About Software

Opencode is a Go-based terminal AI assistant that provides interactive coding help via a polished TUI built with Bubble Tea. It supports multiple AI providers including OpenAI, Anthropic Claude, Google Gemini, AWS Bedrock, Groq, Azure OpenAI, and OpenRouter with configurable endpoints and API keys.

Features include session management with SQLite storage, tool integration for command execution and code modification, LSP support for language intelligence, file change tracking, Vim-like editing, and auto-compact to prevent context overflow. Cross-platform builds are available for macOS, Windows, and Linux.

Use Cases:

  • Terminal-native AI coding assistant with full TUI for developers
  • Multi-provider LLM integration (OpenAI, Claude, Gemini, Groq, Bedrock) in one interface
  • Session-based code collaboration with persistent chat history and file tracking
  • Command execution and LSP-powered code intelligence in the terminal
  • Local or cloud AI with custom endpoints and automated context summarization

Downloads

v0.0.55 June 26, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.54 June 25, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.53 June 07, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.52 June 07, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.51 June 04, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.50 June 04, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.49 May 22, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.48 May 22, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.47 May 21, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.46 May 14, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.45 May 14, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.44 May 09, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.43 May 09, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.42 May 09, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.40 May 02, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.39 May 01, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.38 May 01, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.37 May 01, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.36 April 29, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.35 April 28, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.34 April 27, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.33 April 27, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.32 April 27, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.31 April 27, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.30 April 27, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.29 April 27, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.28 April 27, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.27 April 26, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.26 April 24, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb
v0.0.24 April 24, 2025
opencode-linux-amd64.debdeb
opencode-linux-arm64.debdeb

Package Info

Last Updated
Jun 26, 2025
Latest Version
v0.0.55
License
MIT
Total Versions
30

README

Archived: Project has Moved

This repository is no longer maintained and has been archived for provenance.

The project has continued under the name Crush, developed by the original author and the Charm team.

Please follow Crush for ongoing development.

⌬ OpenCode

⚠️ Early Development Notice: This project is in early development and is not yet ready for production use. Features may change, break, or be incomplete. Use at your own risk.

A powerful terminal-based AI assistant for developers, providing intelligent coding assistance directly in your terminal.

Overview

OpenCode is a Go-based CLI application that brings AI assistance to your terminal. It provides a TUI (Terminal User Interface) for interacting with various AI models to help with coding tasks, debugging, and more.

For a quick video overview, check out OpenCode + Gemini 2.5 Pro: BYE Claude Code! I'm SWITCHING To the FASTEST AI Coder!

Features

  • Interactive TUI: Built with Bubble Tea (https://github.com/charmbracelet/bubbletea) for a smooth terminal experience
  • Multiple AI Providers: Support for OpenAI, Anthropic Claude, Google Gemini, AWS Bedrock, Groq, Azure OpenAI, and OpenRouter
  • Session Management: Save and manage multiple conversation sessions
  • Tool Integration: AI can execute commands, search files, and modify code
  • Vim-like Editor: Integrated editor with text input capabilities
  • Persistent Storage: SQLite database for storing conversations and sessions
  • LSP Integration: Language Server Protocol support for code intelligence
  • File Change Tracking: Track and visualize file changes during sessions
  • External Editor Support: Open your preferred editor for composing messages
  • Named Arguments for Custom Commands: Create powerful custom commands with multiple named placeholders

Installation

Using the Install Script

# Install the latest version
curl -fsSL https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | bash

# Install a specific version
curl -fsSL https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | VERSION=0.1.0 bash

Using Homebrew (macOS and Linux)

brew install opencode-ai/tap/opencode

Using AUR (Arch Linux)

# Using yay
yay -S opencode-ai-bin

# Using paru
paru -S opencode-ai-bin

Using Go

go install github.com/opencode-ai/opencode@latest

Configuration

OpenCode looks for configuration in the following locations:

  • $HOME/.opencode.json
  • $XDG_CONFIG_HOME/opencode/.opencode.json
  • ./.opencode.json (local directory)

Auto Compact Feature

OpenCode includes an auto compact feature that automatically summarizes your conversation when it approaches the model's context window limit. When enabled (default setting), this feature:

  • Monitors token usage during your conversation
  • Automatically triggers summarization when usage reaches 95% of the model's context window
  • Creates a new session with the summary, allowing you to continue your work without losing context
  • Helps prevent "out of context" errors that can occur with long conversations

You can enable or disable this feature in your configuration file:

{
  "autoCompact": true // default is true
}

Environment Variables

You can configure OpenCode using environment variables:

Environment Variable Purpose
ANTHROPIC_API_KEY For Claude models
OPENAI_API_KEY For OpenAI models
GEMINI_API_KEY For Google Gemini models
GITHUB_TOKEN For Github Copilot models (see Using Github Copilot)
VERTEXAI_PROJECT For Google Cloud VertexAI (Gemini)
VERTEXAI_LOCATION For Google Cloud VertexAI (Gemini)
GROQ_API_KEY For Groq models
AWS_ACCESS_KEY_ID For AWS Bedrock (Claude)
AWS_SECRET_ACCESS_KEY For AWS Bedrock (Claude)
AWS_REGION For AWS Bedrock (Claude)
AZURE_OPENAI_ENDPOINT For Azure OpenAI models
AZURE_OPENAI_API_KEY For Azure OpenAI models (optional when using Entra ID)
AZURE_OPENAI_API_VERSION For Azure OpenAI models
LOCAL_ENDPOINT For self-hosted models
SHELL Default shell to use (if not specified in config)
See full README on repository.