Every clodex command and flag.

Command What it does
clodex setup --hostname H --email E Provision or reuse the Cloudflare Access app, Tunnel and DNS. Token from hidden prompt, CLOUDFLARE_API_TOKEN or --api-token-stdin. Also --tunnel-name, --app-name, --mcp-port, --liveboard-port, --no-menu-bar.
clodex start [DIR] [--ttl DUR] [--foreground] Start in the background (or in this terminal) with DIR as the initial working directory.
clodex stop Stop clodex, its tunnel connector and every command it started.
clodex status [--json] Running state, tunnel, time left, background tasks, connector URL.
clodex watch [--print] Open the Liveboard, or print a one-time link.
clodex history [--last N] [--conversation ID] [--id N] [--runs] [--json] Read durable history.
clodex autostart status [--json] | folder PATH | enable [PATH] | disable Start folder and start-at-login settings used by the menu bar app.
clodex menu Open the macOS menu bar app.
clodex paths Show where config, state, history and logs live.

Files: ~/.config/clodex (config.toml, tunnel.token, login.json) and ~/.local/state/clodex (runtime.json, daemon.log, cloudflared.log, history.sqlite3, liveboard-preferences.json, tasks/). CLODEX_HOME puts both under one directory. On Windows they are under %APPDATA%\clodex and %LOCALAPPDATA%\clodex.