toge

Commands and settings

Every command, environment variable and file.

Commands

CommandWhat 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 listPages 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 doctorCheck toge, its ports, agents’ hooks, gh, wifi and Cloudflare
toge serveRun toge in the foreground (it normally runs in the background)
toge stopStop the background toge
toge versionPrint 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.

VariableDefaultWhat it sets
TOGE_PORT4747Your view of pages, and the API
TOGE_CONTENT_PORT4749Where the pages themselves are served from
TOGE_GUEST_PORT4748Wifi links (open only while one is live)
TOGE_HOME~/.togeWhere toge keeps its data
TOGE_SESSIONWhich agent session a page belongs to (instead of --session)
TOGE_HOOK_WAIT3300Seconds a holding hook (Codex) waits for comments
TOGE_LISTEN_WAIT82800Seconds a background listener (Claude Code) waits for comments
TOGE_NO_BROWSERSet 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 ~/.togeWhat it is
state.jsonPages, threads, links (and state.json.bak)
versions/Published copies
keyThe key your CLI and agent plugins use to prove it’s you
settings.jsonYour gist viewer, and limits for shared pages
cloudflare.jsonYour Worker’s address and the secret toge uses with it
server.logtoge’s log