opencode

Configure and manage OpenCode AI coding agent settings, agents, commands, MCP servers, providers, skills, and permissions.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/heydemoura/ai-skills-inventory --skill opencode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/heydemoura/ai-skills-inventory/tree/main/skills/opencode
Command: npx skills add https://github.com/heydemoura/ai-skills-inventory --skill opencode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on configuring and managing OpenCode, an AI coding agent, covering all aspects from basic setup to advanced customization.

Core Features & Use Cases

  • Configuration Management: Understand and modify OpenCode's settings via JSON/JSONC files.
  • Agent Customization: Define and manage primary and subagents with specific behaviors and permissions.
  • Command Creation: Create custom slash commands for streamlined repetitive tasks.
  • Tool & Provider Management: Configure available tools and model providers.
  • Use Case: A developer needs to set up a new AI coding agent for their project. They can use this skill to define custom agents for code review and testing, configure specific model providers, and set up permissions for various tools.

Quick Start

Configure OpenCode by defining a new agent named 'refactor' with specific permissions in your opencode.json file.

Frequently Asked Questions about opencode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure an AI coding agent using JSON files?

Configure an AI coding agent by defining settings, agent behaviors, and permissions in JSON or JSONC files. This approach allows detailed control over model providers, available tools, and operational adjustments directly within development workflows.

Can I define custom subagents for specific coding tasks like code review?

Yes, you can define and manage primary and subagents with specific behaviors and permissions for tasks like code review and testing. Agent customization is handled through Markdown definitions and JSON configuration files to tailor agent interactions.

What is the best way to set up custom slash commands for repetitive coding tasks?

The best way to streamline repetitive tasks is to create custom slash commands defined via Markdown files. This allows developers to trigger specific agent actions and operational sequences quickly during project development.

Does OpenCode support configuring MCP servers and external model providers?

OpenCode supports configuring MCP servers, external model providers, and available tools. Tool and provider management is handled through JSON configuration files, enabling integration and detailed control over AI agent capabilities.

How do I manage permissions for an AI coding agent in a development project?

Manage AI coding agent permissions by specifying access levels and restrictions within JSON or JSONC configuration files. This ensures agents operate with the correct tool access and behavioral boundaries for project setup and operational adjustments.