.opencode/agents/ in your project.
Requirements
For TUI and CLI
Node.js 20 or higher — the CLI is zero-dependency and runs on Node.js built-ins only.
For bash script
Git and bash — the script clones the repo and creates symlinks or copies.
Method 1 — Interactive TUI
Recommended for first-time users. The TUI provides a visual browser with search, category tabs, and pack exploration.
TUI features
- Category tabs — browse agents by category (
←→orTab) - Agent list — navigate with
↑↓, select withSpace - Search — press
/to filter agents by name or description - Pack explorer — view and install predefined packs
- Install confirmation — review selections before installing
TUI keyboard shortcuts
| Key | Action |
|---|---|
↑ ↓ | Navigate agent list |
← → | Switch category tabs |
Tab | Cycle through tabs |
Space | Select/deselect agent |
Enter | Install selected agents |
/ | Open search |
Esc | Cancel or go back |
q | Quit |
Method 2 — Non-interactive CLI
Best for automation, CI/CD, or scripting. All commands are non-interactive and suitable for pipelines.
Install a single agent
Install a pack
Install one or more predefined packs:Install by category
Install all agents in one or more categories:Install all agents
Install the entire registry of 69 agents:CLI options
| Option | Description |
|---|---|
--force | Overwrite existing agent files |
--dry-run | Preview changes without writing files |
--permissions <preset> | Apply permission preset (strict, balanced, permissive, yolo) |
--yolo | Set all permissions to allow (requires typing CONFIRM) |
--save-permissions | Save permission choices as default |
List and search commands
Update outdated agents
Reinstall agents whose installed file hash doesn’t match the registry:Verify integrity
Verify that installed agent files match their lock file hashes:Rebuild lock file
Rebuild the lock file from disk (recompute hashes for all installed agents):Uninstall agents
Method 3 — Bash script
For advanced users. The bash script clones the repo locally and creates symlinks (or copies) into your OpenCode config. Ideal for global installs or custom directory structures.
Quick install (symlink mode)
Run the install script directly from GitHub:- Clone the repo to
~/.local/share/opencode-agents - Detect your OpenCode config (project
.opencode/or global~/.config/opencode/) - Create symlinks in
.opencode/agents/pointing to the cloned repo - Preserve your existing
opencode.jsonand agents
Bash script options
| Option | Description |
|---|---|
--copy | Copy agent files instead of creating symlinks |
--dir PATH | Target directory (default: current directory) |
--global | Install into ~/.config/opencode/ instead of project .opencode/ |
--force | Skip interactive confirmations |
--dry-run | Preview actions without executing |
--uninstall | Remove previously installed agents |
Examples
Manual clone method
For full control, clone the repo and setOPENCODE_CONFIG_DIR:
OpenCode will now use the cloned repo as the agent source.
Where are agents installed?
All three methods install agents to the same location:- Project install —
.opencode/in your project root - Global install —
~/.config/opencode/(accessible from all projects)
The CLI and TUI never modify your
opencode.json. Your existing configuration is always preserved.Permission management
Agents declare required permissions in their frontmatter. The installer resolves permissions based on presets or explicit overrides.Permission presets
| Preset | Description |
|---|---|
strict | Deny all risky permissions by default |
balanced | Allow common workflows, deny destructive operations |
permissive | Allow most operations, deny only high-risk actions |
yolo | Allow everything (requires typing CONFIRM) |
Set permissions during install
Command aliases
The CLI supports short aliases for common commands:| Full command | Aliases |
|---|---|
install | i, add |
uninstall | remove, rm |
list | ls |
search | find |
Next steps
Agent Catalog
Browse all 69 agents with quality scores and descriptions
Packs
Explore 15 predefined packs for common workflows
OpenCode Plugin
Install the plugin for LLM-powered agent discovery
CLI Reference
Full CLI command reference and flags