OpenCode — AI Coding Agent
Complete guide to OpenCode, the terminal-based AI coding agent. Covers installation, prompt engineering, configuration, providers, skills, and best practices.
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.
Navigation
- 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
Related Articles
Claude Code Cost Optimization
Cut Claude Code costs by 70-95% using shell scripts, provider switching, and task routing. When to use extended thinking vs cheap execution.
AI Coding Tools — Prompt Engineering & Configuration
Complete guides for Claude Code, OpenCode, Gemini CLI, Cursor, GitHub Copilot, and more. Tool-specific prompt patterns, configuration files, and setup guides for every major AI coding assistant.
OpenCode — Getting Started
Install and configure OpenCode, the multi-provider AI coding agent. Covers installation, LLM provider setup, Zen/Go pricing, and first session walkthrough.