DESCRIPTION OpenCode command line interface USAGE opencode [flags] [] ARGUMENTS directory string Directory to start OpenCode in (optional) FLAGS --standalone Run with a private server instead of the background service --server string Connect to a server URL instead of the background service --auto Auto-approve permissions that are not explicitly denied --continue, -c Continue the last session --session, -s string Session ID to continue, or to create if it does not exist --prompt string Prompt to use GLOBAL FLAGS --help, -h Show help information --version, -v Show version information --wizard Start wizard mode for a command --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh) --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) --print-logs Print logs to stderr (server logs require --standalone) SUBCOMMANDS upgrade, update Upgrade OpenCode to the latest or a specific version uninstall Uninstall OpenCode, keeping session data, configuration, and state acp Start an Agent Client Protocol server api Make a request to the running server debug Debugging and troubleshooting tools auth manage integrations and credentials mcp Manage MCP (Model Context Protocol) servers plugin Manage plugins models List all available models stats Show shareable usage statistics mini Start the minimal interactive interface run Run OpenCode with a message session Manage sessions service Manage the background server reload Reload configuration pair Print one-time links to connect a browser or app serve Start the v2 API and web server