.opencode/agents/ in your project.
Usage
Install Modes
Single Agent
Install a specific agent by name:- Validate the agent name exists in the registry
- Download the agent from GitHub raw content
- Write to
.opencode/agents/<category>/<name>.md(or root for primary agents) - Skip if already installed (unless
--forceis used) - Provide fuzzy search suggestions if the name is misspelled
Category Mode
Install all agents from one or more categories:languages, ai, web, data-api, devops, devtools, security, mcp, business, docs
Pack Mode
Install a predefined pack of agents:backend— TypeScript, Python, PostgreSQL, Redis, API design, debugging, testing (8 agents)frontend— React, Next.js, TypeScript, UI design, performance, testing (6 agents)fullstack— Full-stack dev, React, Next.js, PostgreSQL, API design, code review (9 agents)devops— Docker, Kubernetes, Terraform, AWS, CI/CD, Linux, incident response (9 agents)ai— AI engineering, data science, ML, LLMs, prompts, search (6 agents)
Install All
Install every agent in the registry (69 agents):Update Mode
Reinstall only agents whose installed file hash doesn’t match the lock file:.opencode/agents/.manifest-lock.json. Only agents with mismatched hashes are reinstalled (forced overwrite).
See also: update command (standalone alias)
Flags
Overwrite existing agent files without prompting. By default, the CLI skips agents that are already installed.
Preview what would be installed without writing any files to disk. Useful for testing pack or category installations.
Reinstall only outdated agents (hash mismatch). Mutually exclusive with
--all, --pack, and --category.Permission Flags
Control agent permissions via presets or granular overrides. Permissions are embedded in agent frontmatter and control tool access (bash, read, write, etc.).Apply a permission preset to all agents:
strict— Deny bash, allow read-only operationsbalanced— Ask for bash, allow most read/write operations (default)permissive— Allow bash, allow all operationsyolo— Allow everything, no confirmation (requires typing CONFIRM)
Set all permissions to
allow without confirmation prompts. Requires typing CONFIRM at runtime for safety. Equivalent to --permissions yolo.Override a specific permission for all agents or a single agent. Format: Can be specified multiple times:
[agent:]permission=actionValid permissions: bash, read, write, edit, glob, grep, webfetch, task, mcp, alarmValid actions: allow, ask, denySave the permission preset and overrides as default for future installs. Preferences are stored in
.opencode/agents/.permissions.json.Ignore saved permission preferences from
.opencode/agents/.permissions.json. Use CLI flags only.Skip the interactive permission editor (if implemented in future versions). Currently reserved for non-interactive CI/CD workflows.
Mutual Exclusivity
These flags cannot be combined in a single command:--all+--pack--all+--category--pack+--category--update+ any of the above
Examples
Install a single agent
Install a pack with custom permissions
Install multiple categories
Update outdated agents
Deny bash for security-sensitive packs
Exit Codes
| Code | Meaning |
|---|---|
0 | All agents installed successfully (or skipped) |
1 | One or more agents failed to install, or validation error |