Skip to content

CLI reference ​

The castiel launcher accepts the following flags. Unknown options and stray arguments fail fast with an error rather than being ignored.

FlagDescription
--port, -pHTTP port to listen on (default: 8081).
--bindNetwork address to bind (default: 127.0.0.1).
--authRequire token authentication for every API call.
--show-tokenPrint the --auth access token and exit.
--reset-tokenReplace the --auth access token; takes effect on the next start.
--debugEnable debug logging for castiel and LLM/MCP traffic.
--log-file [FILE]Also write logs to a file, rotated automatically. Without a value, uses castiel.log in the current directory.
--check-updateCompare this build with the latest GitHub release and install a newer one if available.
--help, -hShow all flags.
--version, -VPrint the version and exit.

Exposing castiel beyond localhost ​

By default castiel binds to 127.0.0.1 and is reachable only from your own machine. Binding beyond localhost — putting the UI on your LAN or a tunnel — requires --auth: without a token, anyone who can reach the port could drive your harness. Together:

sh
castiel --bind 0.0.0.0 --auth

--show-token prints the generated access token (for logging in from another device); --reset-token replaces it and takes effect on the next start.

Logging ​

--debug turns on debug logging for castiel itself and for all LLM and MCP traffic — useful when a model misbehaves or a server misconfigures. --log-file additionally mirrors logs into a rotating file:

sh
castiel --debug
castiel --log-file castiel.log
castiel --log-file           # same, using castiel.log in the current directory