Overview
Thevelatir command-line interface is installed on the system path by the Windows MSI and the macOS package. It communicates with the local Velatir Agent over a platform-native IPC channel:
- Windows: named pipe
\\.\pipe\VelatirAgent - macOS and Linux: Unix domain socket
At a Glance
| Command | Requires admin | Purpose |
|---|---|---|
status | No | Show agent and host state. |
start | Yes | Activate transparent proxy interception. |
stop | Yes | Deactivate transparent proxy interception. |
restart | Yes | Stop then start. |
hide | Yes | Hide the system-tray icon. |
show | Yes | Show the system-tray icon. |
update | No / Yes | Check for updates, or apply with --apply. |
host restart | Yes | Drain and respawn the host process. |
quit | Yes | Stop the agent itself. |
events | No | Stream agent events. |
logs | No | Tail the agent or host log. |
health | No | Show interception-stack health and any failing checks. |
test | No | Send a synthetic trace to verify the install end to end. |
version | No | Show CLI, agent, and host versions. |
get-config | No | Show effective configuration. |
set-api-key | Yes | Update the Velatir API key. |
set-ca | Yes | Provide a bring-your-own CA. |
Global Flags
| Flag | Effect |
|---|---|
--help, -h | Print usage. Also accepted as the help subcommand. |
--version, -v | Alias for version. |
--json | Emit JSON output where applicable. Useful for scripting. |
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Agent unreachable |
2 | Administrator privileges required |
3 | Operation failed |
64 | Invalid usage |
Control Commands
status
Show the current state of the agent and host. Does not require elevation.- Agent version and uptime
- Host version and whether it is running
- Host executable path
- The last update check (time and outcome)
--json to produce a structured result suitable for monitoring tools.
start
Activate transparent proxy interception. Requires administrator rights.stop
Deactivate transparent proxy interception. Requires administrator rights.restart
Equivalent tostop followed by start. Requires administrator rights.
Tray Icon
hide
Hide the Velatir system-tray icon. Requires administrator rights.VELATIR_HIDE_TRAY MSI property — see Enterprise deployment.
show
Show the tray icon again. The inverse ofhide. Requires administrator rights.
Update Commands
update
Check whether a newer payload is available. Does not download.--apply. This drains the running host, swaps to the new payload, and relaunches. Requires administrator rights.
update --apply is the way to force it.
host restart
Drain the host process. The watchdog respawns it within 30 seconds on whichever payload is currently active. Requires administrator rights.quit
Stop the agent itself. The watchdog will not respawn it. Requires administrator rights.quit, the agent only restarts at next user logon (via the scheduled task on Windows or the launch agent on macOS) or when manually restarted.
Observability Commands
events
Stream the agent’s event log. Does not require elevation.HostExited, HostLaunched, UpdateAvailable, UpdateApplied, and proxy lifecycle transitions. Filter by event type:
logs
Tail the agent or host log. Does not require elevation.--host -f together to follow the host log in real time. Logs are useful when diagnosing why traces are not appearing for a specific application.
version
Show the CLI, agent, and host versions.health
Show the latest health of the interception stack, including the reason and remediation lever for any failing check. Does not require elevation.health exits 0 when the overall state is Ok and non-zero when degraded, so it works as a monitoring probe. See Health checks for what each check means.
test
Run a one-shot, end-to-end smoke test of the install. Does not require elevation.Configuration Commands
get-config
Show the effective configuration. The API key is masked. Does not require elevation.set-api-key
Update the Velatir API key. The host is restarted automatically so the new key takes effect immediately. Requires administrator rights.set-ca
Provide a bring-your-own certificate authority. The CA file must be a PFX (PKCS#12) bundle. The host is restarted automatically. Requires administrator rights.Common Recipes
Verify the install end to end
velatir test sends a synthetic trace and confirms the host, API key, and backend are all working. To watch live interception instead, run velatir logs --host -f and trigger an interaction in a supported AI application.
Rotate the API key
status that the masked key has changed.
Force the latest payload
Re-bind after a VPN change
Velatir re-binds automatically when the network changes, so this is only needed as a manual fallback:Next Steps
Troubleshooting
Resolve agent-unreachable errors and other common issues.
Enterprise deployment
Drive the CLI from MDM and scripted rollouts.
How it works
Understand what each command actually does under the hood.
FAQ
Quick answers to the questions that come up most often.