OpenCode — AI Coding Agent

Complete guide to OpenCode, the terminal-based AI coding agent. Covers installation, prompt engineering, configuration, providers, skills, and best practices.

opencodeai-codingterminal-agentsetupprompt-engineering

OpenCode — AI Coding Agent

OpenCode is an interactive CLI tool that helps users with software engineering tasks. It reads your codebase, writes and edits files, runs terminal commands, and can autonomously complete multi-step engineering tasks.

  • Getting Started — Install, configure, and begin your first session
  • Prompt Engineering — Write effective prompts, master AGENTS.md conventions, and use slash commands
  • Configuration Reference — Complete reference for opencode.json, skills, plugins, MCP servers, and permission rules
  • Patterns — Cross-tool workflows: the OpenCode ↔ Hermes iterative cleanup loop
  • Tutorials — Multi-model workflows: switch between Gemini, GLM, DeepSeek, and MiniMax mid-session

Quick Start

# Install
npm install -g opencode

# Run in your project
opencode

Key Features

  • Provider flexibility — Supports 75+ LLM providers, switch mid-session
  • Skills system — Customizable skill configurations for specialized workflows
  • MCP support — Full Model Context Protocol integration
  • Custom rules — AGENTS.md conventions for project-specific instructions
  • Pricing tiers — Free, Zen, and Go pricing options