coderClaw

Gateway CLI

The Gateway is CoderClaw’s WebSocket server (channels, nodes, sessions, hooks).

Subcommands in this page live under coderclaw gateway ….

Related docs:

Run the Gateway

Run a local Gateway process:

coderclaw gateway

Foreground alias:

coderclaw gateway run

Notes:

Options

Query a running Gateway

All query commands use WebSocket RPC.

Output modes:

Shared options (where supported):

Note: when you set --url, the CLI does not fall back to config or environment credentials. Pass --token or --password explicitly. Missing explicit credentials is an error.

gateway health

coderclaw gateway health --url ws://127.0.0.1:18789

gateway status

gateway status shows the Gateway service (launchd/systemd/schtasks) plus an optional RPC probe.

coderclaw gateway status
coderclaw gateway status --json

Options:

gateway probe

gateway probe is the “debug everything” command. It always probes:

If multiple gateways are reachable, it prints all of them. Multiple gateways are supported when you use isolated profiles/ports (e.g., a rescue bot), but most installs still run a single gateway.

coderclaw gateway probe
coderclaw gateway probe --json

Remote over SSH (Mac app parity)

The macOS app “Remote over SSH” mode uses a local port-forward so the remote gateway (which may be bound to loopback only) becomes reachable at ws://127.0.0.1:<port>.

CLI equivalent:

coderclaw gateway probe --ssh user@gateway-host

Options:

Config (optional, used as defaults):

gateway call <method>

Low-level RPC helper.

coderclaw gateway call status
coderclaw gateway call logs.tail --params '{"sinceMs": 60000}'

Manage the Gateway service

coderclaw gateway install
coderclaw gateway start
coderclaw gateway stop
coderclaw gateway restart
coderclaw gateway uninstall

Notes:

Discover gateways (Bonjour)

gateway discover scans for Gateway beacons (_coderclaw-gw._tcp).

Only gateways with Bonjour discovery enabled (default) advertise the beacon.

Wide-Area discovery records include (TXT):

gateway discover

coderclaw gateway discover

Options:

Examples:

coderclaw gateway discover --timeout 4000
coderclaw gateway discover --json | jq '.beacons[].wsUrl'