# straza

Straza client: enroll this machine, wire the hooks and decide each tool call


## Commands

* [straza connect](https://docs.straza.ai/reference/cli/straza/straza_connect/index.md): Connect your own account to an MCP server; no server lists your connections
* [straza disconnect](https://docs.straza.ai/reference/cli/straza/straza_disconnect/index.md): Remove your own connection to an MCP server
* [straza doctor](https://docs.straza.ai/reference/cli/straza/straza_doctor/index.md): Diagnose the background service, enrollment, connectivity, hook wiring, and the audit spool
* [straza enroll](https://docs.straza.ai/reference/cli/straza/straza_enroll/index.md): Sign in through your browser and enroll this machine with the background service (--use-device-code: sign in with a code, --headless: an AI agent)
* [straza exec](https://docs.straza.ai/reference/cli/straza/straza_exec/index.md): Run a command through Straza policy, for an agent that has no hooks
* [straza hook](https://docs.straza.ai/reference/cli/straza/straza_hook/index.md): Hook entrypoint: normalize a harness payload and decide (reads stdin)
* [straza install](https://docs.straza.ai/reference/cli/straza/straza_install/index.md): Write hook wiring for Tier-1 harnesses (user mode, or --managed system layout)
* [straza keygen](https://docs.straza.ai/reference/cli/straza/straza_keygen/index.md): Have the background service generate the Ed25519 key an AI agent enrolls with headless
* [straza logs](https://docs.straza.ai/reference/cli/straza/straza_logs/index.md): Print the client error log (hook, capture and MCP bridge failures; never payload content)
* [straza mcp](https://docs.straza.ai/reference/cli/straza/straza_mcp/index.md): Serve the Straza MCP gateway to this harness over stdio (`straza install` registers it)
* [straza service](https://docs.straza.ai/reference/cli/straza/straza_service/index.md): Run the Straza background service that holds this machine's keys and sessions
* [straza status](https://docs.straza.ai/reference/cli/straza/straza_status/index.md): Show enrollment, sessions and the audit spool the background service holds for you
* [straza trace](https://docs.straza.ai/reference/cli/straza/straza_trace/index.md): Decision journal and debug trace (content-free): on, off, status, show
* [straza uninstall](https://docs.straza.ai/reference/cli/straza/straza_uninstall/index.md): Remove Straza hook wiring from harness settings
* [straza version](https://docs.straza.ai/reference/cli/straza/straza_version/index.md): Print version information


- [straza connect](https://docs.straza.ai/reference/cli/straza/straza_connect/index.md): Connect your own account to an MCP server; no server lists your connections
- [straza disconnect](https://docs.straza.ai/reference/cli/straza/straza_disconnect/index.md): Remove your own connection to an MCP server
- [straza doctor](https://docs.straza.ai/reference/cli/straza/straza_doctor/index.md): Diagnose the background service, enrollment, connectivity, hook wiring, and the audit spool
- [straza enroll](https://docs.straza.ai/reference/cli/straza/straza_enroll/index.md): Sign in through your browser and enroll this machine with the background service (--use-device-code: sign in with a code, --headless: an AI agent)
- [straza exec](https://docs.straza.ai/reference/cli/straza/straza_exec/index.md): Run a command through Straza policy, for an agent that has no hooks
- [straza hook](https://docs.straza.ai/reference/cli/straza/straza_hook/index.md): Hook entrypoint: normalize a harness payload and decide (reads stdin)
- [straza install](https://docs.straza.ai/reference/cli/straza/straza_install/index.md): Write hook wiring for Tier-1 harnesses (user mode, or --managed system layout)
- [straza keygen](https://docs.straza.ai/reference/cli/straza/straza_keygen/index.md): Have the background service generate the Ed25519 key an AI agent enrolls with headless
- [straza logs](https://docs.straza.ai/reference/cli/straza/straza_logs/index.md): Print the client error log (hook, capture and MCP bridge failures; never payload content)
- [straza mcp](https://docs.straza.ai/reference/cli/straza/straza_mcp/index.md): Serve the Straza MCP gateway to this harness over stdio (`straza install` registers it)
- [straza service](https://docs.straza.ai/reference/cli/straza/straza_service/index.md): Run the Straza background service that holds this machine's keys and sessions
- [straza status](https://docs.straza.ai/reference/cli/straza/straza_status/index.md): Show enrollment, sessions and the audit spool the background service holds for you
- [straza trace](https://docs.straza.ai/reference/cli/straza/straza_trace/index.md): Decision journal and debug trace (content-free): on, off, status, show
- [straza trace off](https://docs.straza.ai/reference/cli/straza/straza_trace_off/index.md): Close the debug window (the journal stays on)
- [straza trace on](https://docs.straza.ai/reference/cli/straza/straza_trace_on/index.md): Open a debug window (default 1h, max 24h); the journal is always on
- [straza trace show](https://docs.straza.ai/reference/cli/straza/straza_trace_show/index.md): Print the journal and debug records, oldest first
- [straza trace status](https://docs.straza.ai/reference/cli/straza/straza_trace_status/index.md): Report the trace level in force, its source, the window and the file
- [straza uninstall](https://docs.straza.ai/reference/cli/straza/straza_uninstall/index.md): Remove Straza hook wiring from harness settings
- [straza version](https://docs.straza.ai/reference/cli/straza/straza_version/index.md): Print version information
