Commands and settings
Every command, environment variable and file.
Commands
| Command | What it does |
|---|---|
toge open <file.html> [--title T] [--session ID] [--no-browser] | Put a page under review and open it (starts toge if needed) |
toge reply <comment-id> <text> | Answer a thread as the agent |
toge pull [--session ID] | Print comments waiting for this folder or session |
toge done <page-id> | Close a review from the agent’s side |
toge list | Pages and their open threads |
toge shares [revoke <share-id>] | Live wifi links, and turning one off |
toge connect cloudflare [--name toge] | Deploy toge’s Worker to your Cloudflare account |
toge disconnect cloudflare [--turn-off | --keep] | Forget the Worker here; turn its links off first, or keep them |
toge viewer [set <url> | reset | export <dir>] | Where gist links open; export the viewer for GitHub Pages |
toge install <agent|all> [--dry-run] | Connect claude, codex, opencode, pi or omp |
toge doctor | Check toge, its ports, agents’ hooks, gh, wifi and Cloudflare |
toge serve | Run toge in the foreground (it normally runs in the background) |
toge stop | Stop the background toge |
toge version | Print the version |
Add --help to any command to see how to use it. You’ll also see toge hook … commands in your
agent’s config: those are for the hooks, not for you.
Environment variables
You rarely need these.
| Variable | Default | What it sets |
|---|---|---|
TOGE_PORT | 4747 | Your view of pages, and the API |
TOGE_CONTENT_PORT | 4749 | Where the pages themselves are served from |
TOGE_GUEST_PORT | 4748 | Wifi links (open only while one is live) |
TOGE_HOME | ~/.toge | Where toge keeps its data |
TOGE_SESSION | Which agent session a page belongs to (instead of --session) | |
TOGE_HOOK_WAIT | 3300 | Seconds a holding hook (Codex) waits for comments |
TOGE_LISTEN_WAIT | 82800 | Seconds a background listener (Claude Code) waits for comments |
TOGE_NO_BROWSER | Set it to stop toge open opening a browser |
toge used to be called nittle. NITTLE_* variables still work, and toge keeps using ~/.nittle
until a ~/.toge exists.
Files
In ~/.toge | What it is |
|---|---|
state.json | Pages, threads, links (and state.json.bak) |
versions/ | Published copies |
key | The key your CLI and agent plugins use to prove it’s you |
settings.json | Your gist viewer, and limits for shared pages |
cloudflare.json | Your Worker’s address and the secret toge uses with it |
server.log | toge’s log |