Skip to main content

CLI Reference

Most Used Commands

The commands you will use day-to-day:

CommandWhat it does
remiStart Claude Code with remote monitoring in the current directory
remi lsList running sessions (local or remote with --host)
remi attach [id]Attach your terminal to a running session (detach: Ctrl+B d)
remi codeShow your connection code for remote access from the web/mobile app
remi recentBrowse recent project directories

All Commands (A-Z)

CommandDescriptionDetails
remi attach [id]Attach terminal to a running sessionsessions
remi authorize <key-file>Add a client public key to authorized keysauth
remi codeShow or refresh connection coderemote
remi detach [name]Detach from current or named sessionsessions
remi export-keyExport identity for sharing across devicesidentity
remi import-key [file]Import identity from file or stdinidentity
remi keygenGenerate Ed25519 identity keypairidentity
remi keysList authorized client keysauth
remi kill <name>Kill a session by name or IDsessions
remi configShow, initialize, or inspect configurationservice
remi logsShow recent daemon logsservice
remi lsList live sessions from running daemonsessions
remi newStart a new session (with optional remote/directory flags)sessions
remi recentBrowse recent project directoriessessions
remi reloadHot-reload config on running daemonsservice
remi startStart daemon in backgroundservice
remi statusShow daemon statusservice
remi stopStop background daemonservice
remi [claude-args]Start Claude Code with remote monitoring (wrapper mode)start
remi --daemonRun in headless daemon modestart
remi --installInstall as autostart serviceservice
remi --resume [id]Resume a previous Claude sessionsessions
remi --sessionsList stored sessionssessions
remi --uninstallRemove autostart serviceservice

Per-Command Help

Every subcommand supports --help to show its own usage, options, and examples:

remi ls --help
remi kill --help
remi attach --help
remi new --help

This shows subcommand-specific help instead of the global help page.

Global Options

Network / daemon

OptionDescriptionDefault
--port PORTWebSocket server port18765 (env: REMI_PORT)
--host HOSTConnect to daemon at HOST (for ls, attach, new, recent, kill)localhost
--bind HOSTBind address for the WebSocket server0.0.0.0
--localLocalhost-only mode (implies --bind localhost + --no-mdns)
--networkUse mDNS/VPN discovery when listing sessions across hosts
--no-mdnsDisable mDNS advertising
--no-relayDisable signaling/relay adapter
--no-tofuReject unknown client keys (no trust-on-first-use)
--auth / --no-authForce authentication on / offauto
--signaling-url URLOverride signaling server URLwss://remi-signaling.yooz.workers.dev/connect
--permanent-codeUse a fixed connection code instead of rotating
--push-secret SECRETAPNS push auth secret (env: REMI_PUSH_SECRET)
--orphan-timeout SECSOrphan session timeout in seconds (0 = disabled)300

Session / directory

OptionDescriptionDefault
--dir PATHWorking directory for new session (mutually exclusive with --recent)
--recentPick from recent project directories (for new, recent)
--resume [id]Resume a previous Claude session (id optional; picks latest when omitted)
--sessions [all|running|exited]List sessions (defaults to running)running
--max-bullet-length NTruncate message bullets (0 = disabled)500
--no-telegramDisable Telegram adapter even if token is configured

Auto-approve (LLM)

OptionDescriptionDefault
--auto-approveEnable LLM auto-approveconfig: auto_approve.enabled
--no-auto-approveDisable auto-approve (overrides config)
--auto-approve-model MODELLLM model namegemma4:e2b
--auto-approve-provider PROVIDERollama, openrouter, or a custom URLollama
--auto-approve-api-key KEYAPI key (required for OpenRouter)
--auto-approve-allow STRSubstring allow pattern (repeatable; appends to config)
--auto-approve-deny STRSubstring deny pattern (repeatable; appends to config)
--auto-approve-instructions TEXTNatural-language guidance for the LLM

See the Auto-Approve guide for semantics.

Identity / authorization

OptionDescription
--passphrasePrompt for passphrase when generating or importing identity
--encryptRe-encrypt an unencrypted identity in place
--decryptRemove passphrase from an encrypted identity (keep same keys)
--forceOverwrite existing identity (for keygen, import-key)
--label TEXTLabel an authorized key (authorize)
--remove FINGERPRINTRemove an authorized key (authorize)
--public-onlyExport only the public key (export-key)

Misc

OptionDescription
--install / --uninstallInstall/remove as autostart service
--daemonRun in headless daemon mode
--help, -hShow help (global or per-command)
--version, -vShow version and exit

Unrecognized flags are passed through to Claude Code. Use -- to separate Remi flags from Claude Code arguments explicitly.