Your first approval on one laptop
Hold your agent's command on your laptop until you approve it.
On this page
You use the standalone profile, so Straza runs on your laptop and signs you in itself, with no external identity provider. How it works explains the model, and Try it on one laptop walks through all of these steps.
- Get the binariesTutorialPut strazad, strazactl and straza on your PATH, on a machine with no Straza package or managed install.
- Start the serverTutorialRun strazad on the standalone profile. Its first start prints the admin password and adds a starter rule that denies a recursive forced delete.
- Sign in to the consoleTutorialSign in as the admin from the first start, and mint a token for strazactl.
- Add alice, the person your agent works forTutorialAdd the person your machine enrolls as, with the role that lets their browser approve.
- Enroll your machineTutorialStart the Straza service and run
straza enroll, which signs you in. - Connect Claude CodeTutorial
straza install claude-codeinstalls the hook for your user, and the starter rule then denies a command. - Hold a command for yourselfTutorialA rule with the mode confirm holds a command until you approve it.
- Turn on approvals in this browserTutorialOn the self-service page, under This browser.
- Approve your agent's callTutorialStraza denies the agent’s call at once with a reference. Approve it on the self-service page under Requests. An identical retry in the same session within 60 seconds of your approval runs once.
- Remove Straza from this machineTutorialRemove the hooks while the service still runs, then stop the service and the server and delete their state.
- What this protects on one laptopTutorialIt catches a mistake by the agent or a prompt injection against it. It does not stop you, because you approve the calls yourself. A hook installed for your user is also advisory.