CLI Flags
The Ptah executable accepts a small set of command-line arguments for automation and troubleshooting.
Positional argument
Section titled “Positional argument”ptah [workspace-path]If workspace-path is provided and points to a directory, Ptah opens it as the active workspace on startup. Relative paths are resolved against the current working directory.
| Flag | Argument | Purpose |
|---|---|---|
--dev | — | Enable development mode: verbose logging, DevTools auto-open |
--profile | <name> | Use an isolated user-data directory named <name>; lets you run multiple independent Ptah instances |
--user-data-dir | <path> | Override the user-data directory with an absolute path |
--log-level | <level> | One of error, warn, info, debug, trace |
--no-gpu | — | Disable hardware acceleration; useful for flaky GPU drivers |
--headless | — | Start with no visible window; intended for CI / smoke tests |
--version | — | Print the version and exit |
--help | — | Print usage and exit |
ptah interact — embedded Anthropic-compatible proxy
Section titled “ptah interact — embedded Anthropic-compatible proxy”ptah interact can boot an embedded HTTP proxy that exposes an Anthropic-compatible API surface, optionally re-exporting Ptah’s workspace MCP tools. Useful for harnessing external clients or supervisors that already speak the Anthropic protocol.
| Flag | Argument | Purpose |
|---|---|---|
--proxy-start | — | Boot the embedded Anthropic-compatible HTTP proxy |
--proxy-port | <n> | TCP port (0 = OS-assigned) |
--proxy-host | <host> | Bind host (default 127.0.0.1) |
--proxy-expose-workspace-tools | — | Surface workspace MCP tools through the proxy |
The bound address is printed on stderr as:
[ptah] proxy listening on http://127.0.0.1:54321Supervisors can scrape that line to discover the live address when --proxy-port=0 is used.
Environment variables
Section titled “Environment variables”The same behavior is also available through environment variables, which is often more convenient when launching from a shell script:
| Variable | Equivalent to |
|---|---|
PTAH_LOG | --log-level |
PTAH_PROFILE | --profile |
PTAH_USER_DATA_DIR | --user-data-dir |
Examples
Section titled “Examples”Open a specific workspace with debug logging:
# Windows"C:\Users\<you>\AppData\Local\Programs\Ptah\Ptah.exe" "D:\projects\my-app" --log-level=debug
# macOS/Applications/Ptah.app/Contents/MacOS/Ptah ~/code/my-app --log-level=debug
# Linux./Ptah-*.AppImage ~/code/my-app --log-level=debugRun two independent Ptah instances:
Ptah --profile=workPtah --profile=personalEach profile keeps its own settings, plugins, agents, and logs.