Start and stop clodex, set a time limit, check status, and read history.

cd ~/code/my-project
clodex start --ttl 4h   # runs in the background; returns once the tunnel is connected
clodex status           # running? tunnel? time left? background tasks?
clodex watch            # open the Liveboard
clodex stop             # turn access off and stop everything clodex started

Start

clodex start [DIR] makes DIR (default: the current directory) the initial working directory for Bash and for relative paths. It is a starting point, not a boundary. Commands run with the environment of the terminal you started from; the menu bar app uses your login shell’s environment.

--ttl takes 30m, 4h, 2d, 1h30m and so on. The time limit is wall-clock time (sleep counts toward it) and nothing extends it. Without one, clodex runs until clodex stop, logout or reboot. --foreground runs in the terminal with logs on stderr; Ctrl-C stops it.

Stop

clodex stop stops the tunnel connector and kills every command clodex started, including background tasks, then returns once the process has exited. It is safe to run when clodex is already stopped.

In claude.ai

Turn the clodex connector on for a chat (+ > Connectors) and ask Claude to work on your machine. Each chat is its own Agent with its own working directory and read-before-edit state, and several chats can work at once. Turning off claude.ai’s own code execution in those chats keeps Claude from mixing up its sandbox and your computer.

History

Every tool call is stored in ~/.local/state/clodex/history.sqlite3 (%LOCALAPPDATA%\clodex on Windows) for 60 days (history_retention_days in config.toml), with up to 8 MB of output per call.

clodex history                         # the last 30 tool calls
clodex history --last 100 --conversation k7m2
clodex history --id 42                 # one call in full: input, result, diff and output
clodex history --runs                  # when clodex started and stopped, and why
clodex history --json

clodex paths shows where every file lives.