-p, --port <n> | Port to listen on. Defaults to 7723, or the next free port if 7723 is taken. |
--host [addr] | Bind address. Default: 127.0.0.1. Bare --host (no argument) binds to 0.0.0.0 for LAN access. |
--no-open | Do not auto-open a browser window on start. |
-w, --watch | Reload the browser UI when workspace files change on disk. Useful when editing files from outside DocWriter. |
--restart | Restart the server if it crashes. Default: exit on crash. |
--root <dir> | Workspace root. Same as the positional [directory] argument. |
--new-session | Clear any persisted AI session before starting. Files and tabs are not affected. |
--api-key <key> | Anthropic API key. Overrides the ANTHROPIC_API_KEY environment variable. |
--model <name> | Default model for the session: opus, sonnet, or haiku. Overrides the UI’s model selector. |
--version | Print the installed version and exit. |
-h, --help | Print help and exit. |