All apps/OpenCode

OpenCode

opencode

The open source coding agent, model-agnostic by design.

Runs as opencode|macOS, Linux, Windows|opencode.ai

Autocomplete

Fig spec, with what the manifest adds · 33 subcommands · 16 options
Published once and never changed; check the digest before caching
sha256
48ccb40b309ab39b74ab78a34e115e437b0bbefe5c009ef0b259f51849275f75
Size
36497 bytes
Subcommands33 subcommands
opencode completion
Generate shell completion script
opencode acp
Start ACP (Agent Client Protocol) server
opencode mcp
Manage MCP (Model Context Protocol) servers
opencode mcp add
Add an MCP server
opencode mcp list
List MCP servers and their status
opencode mcp auth
Authenticate with an OAuth-enabled MCP server
opencode mcp logout
Remove OAuth credentials for an MCP server
opencode mcp debug
Debug OAuth connection for an MCP server
opencode attach
Attach to a running opencode server
opencode run
Run opencode with a message
opencode debug
Debugging and troubleshooting tools
opencode providers
Manage AI providers and credentials
opencode providers list
List providers and credentials
opencode providers login
Log in to a provider
opencode providers logout
Log out from a configured provider
opencode agent
Manage agents
opencode agent create
Create a new agent
opencode agent list
List all available agents
opencode upgrade
Upgrade opencode to the latest or a specific version
opencode uninstall
Uninstall opencode and remove all related files
opencode serve
Start a headless opencode server
opencode web
Start opencode server and open web interface
opencode models
List all available models
opencode stats
Show token usage and cost statistics
opencode export
Export session data as JSON
opencode import
Import session data from JSON file or URL
opencode github
Manage GitHub agent
opencode pr
Fetch and check out a GitHub PR branch, then run opencode
opencode session
Manage sessions
opencode session list
List sessions
opencode session delete
Delete a session
opencode plugin
Install plugin and update config
opencode db
Database tools
OptionsOn opencode itself
-h--help
Show help
-v--version
Show version number
--print-logs
Print logs to stderr
--log-level
Log level <level>
--pure
Run without external plugins
--port
Port to listen on (defaults to random port) <port>
--hostname
Hostname to listen on <hostname>
--mdns
Enable mDNS service discovery (defaults hostname to 0.0.0.0)
--mdns-domain
Custom domain name for mDNS service (default: opencode.local) <domain>
--cors
Additional domains to allow for CORS <domain>
-m--model
Model in the format provider/model <model>
-c--continue
Continue the last session
-s--session
Session id to continue <session_id>
--fork
Fork the session when continuing (use with --continue or --session)
--prompt
Prompt to use <prompt>
--agent
Agent to use <agent>
ArgumentsPositional, in order
<project>
Path to start opencode in · optional · folders