Loading...
Loading...
This skill provides comprehensive guidance for using OpenCode, the open-source AI coding agent. Use this skill when working with OpenCode CLI commands, keyboard shortcuts, agents (build/plan), slash commands, tools, skills, MCP servers, or configuration. Automatically triggered when OpenCode-specific questions or tasks are detected.
npx skill4agent add s-hiraoku/synapse-a2a opencode-expert| Task | Command/Action |
|---|---|
| Start TUI | |
| Continue session | |
| Run non-interactive | |
| Start headless server | |
| Web interface | |
| Switch agent | |
| File search | |
| Undo changes | |
| Redo changes | |
| Share conversation | |
| Initialize project | |
| Configure API keys | |
Tabask@| Key | Action |
|---|---|
| Switch between Build and Plan agents |
| Fuzzy file search |
| Cancel current operation |
| Command | Description |
|---|---|
| Configure LLM provider API keys |
| Initialize project and create |
| Revert recent changes (stackable) |
| Restore undone changes |
| Create shareable conversation link |
# Start TUI in current directory
opencode
# Start in specific project
opencode /path/to/project
# Continue previous session
opencode --continue
opencode -c
# Use specific session
opencode --session <id>
opencode -s <id>
# Start with specific model
opencode --model <model>
opencode -m <model>
# Start with specific agent
opencode --agent build
opencode --agent plan# Run single prompt
opencode run "Fix the bug in auth.py"
# Run with file attachment
opencode run "Review this" --file README.md
opencode run "Review this" -f README.md
# Run and share result
opencode run "Explain this code" --share
# Run specific command
opencode run --command "npm test"# Start headless API server
opencode serve
# With custom port
opencode serve --port 3000
# With mDNS discovery
opencode serve --mdns
# Web interface
opencode web# Authentication
opencode auth login
opencode auth list
opencode auth logout
# Models
opencode models # List available models
opencode models --refresh # Refresh model cache
# Agents
opencode agent create # Create custom agent
opencode agent list # List agents
# MCP servers
opencode mcp add <server>
opencode mcp list
opencode mcp auth
opencode mcp debug
# Sessions
opencode session list
opencode session list -n 10 # Last 10 sessions
# Statistics
opencode stats
opencode stats --days 7
opencode stats --tools
opencode stats --models
# Export/Import
opencode export <sessionID>
opencode import <file>
# Upgrade
opencode upgrade
opencode upgrade <version>| Tool | Description |
|---|---|
| read | Read file contents with optional line ranges |
| write | Create new files or overwrite existing |
| edit | Modify files using exact string replacements |
| patch | Apply patch files |
| grep | Search file contents with regex |
| glob | Find files by pattern ( |
| list | List files and directories |
| bash | Execute shell commands |
| lsp | Language Server Protocol integration (experimental) |
| todowrite | Create/update task lists |
| todoread | Read current todo state |
| skill | Load skill files into conversation |
| webfetch | Fetch and read web pages |
| question | Ask user clarifying questions |
.opencode/skills/<name>/SKILL.md~/.config/opencode/skills/<name>/SKILL.md.claude/skills/<name>/SKILL.md~/.claude/skills/<name>/SKILL.md---
name: my-skill
description: Description of what this skill does and when to use it.
---
# Skill Content
Instructions and documentation here...--.opencode/opencode.json~/.config/opencode/| Variable | Description |
|---|---|
| Custom config path |
| Permission mode |
| Server auth password |
| Disable auto-updates |
| Enable experimental features |
| Enable Exa search |
opencode agent createopencode.json~/.config/opencode/agents/.opencode/agents/Tab@filename/undo/redo--continue-creferences/cli.mdreferences/tools.mdreferences/agents.md