Talk this topic through with an AI

You get an answer from the documentation and the page it comes from.

Installation & operation

Onboarding

The poison0 agent automatically reverts poisoned memory entries, blocks prompt injection, stops harmful tool calls before they run and protects your secrets from exfiltration. Six steps lead from the install key to feedback.

Download as PDF

~5 min read · Installation & operation

1. Prepare the console

PlanConsole
Enterprisehttps://<tenant>.poison0.com or your own domain
Solo Dev, Prohttps://console.poisonzero.com
  1. Invite more admins: Settings → Access & Security → People → enter the email → Invite. The link is valid for 7 days.
  2. Create an install key: Devices → Roll out many devices with a key → choose the Mode → Generate key. The key is shown only once.
    ModeEffect
    CloudIncidents and device status show up in the console continuously. Settings come from the profile.
    PrivateThe device fetches only its licence from the server, every 30 days. Incidents stay on the device. Settings come from a signed file (step 2).
  3. Pass the key to developers or IT. It is valid for 30 days and for as many devices as your plan allows (Enterprise: Unlimited).

2. Install

Option A or B, on macOS, Linux or Windows. After either option, /pz, /poison0, /p0 and the status line are ready in Claude Code (option B after the optional step 2). Then restart Claude Code. The status line shows 🛡 PoisonZero 🟢.

Private devices: Settings and company policies come from the signed file client-config.json. Create it: Settings → Protection & Devices → Profiles → on the profile Export for private devices (Pro/Enterprise, enabled on request). Distribute it: Via MDM with the script shown, or at install time with PZ_CONFIG (macOS/Linux also --config, Windows -Config).

2A. Developer installs it

bashTerminal
curl -fsSL https://poisonzero.com/install.sh | sudo PZ_ENROLL_CODE=<install-key> PZ_SETUP_AGENTS=claude PZ_SETUP_STATUSLINE=1 sh
powershellPowerShell as administrator
$env:PZ_ENROLL_CODE='<install-key>'; $env:PZ_SETUP_AGENTS='claude'; $env:PZ_SETUP_STATUSLINE='1'; irm https://poisonzero.com/install.ps1 | iex
Devices without a screen (e.g. over SSH): Also set PZ_HEADLESS=strict (macOS/Linux also --headless strict). strict blocks when in doubt, standard lets it through when in doubt. Without it, the poison0 agent detects this itself.

2B. IT deploys via Jamf, Intune or Ansible

Step 1: Install (as root or SYSTEM)

bashroot
PZ_ENROLL_CODE=<install-key> sh -c "$(curl -fsSL https://poisonzero.com/install.sh)"
powershellSYSTEM
$env:PZ_ENROLL_CODE='<install-key>'; irm https://poisonzero.com/install.ps1 | iex

Step 2 (optional): Set up /pz and the status line (as the signed-in user). PoisonZero sets up the protection for the AI agents itself after step 1, in every user account and for all supported agents.

bashUser
poison0 setup-claude
poison0 setup-claude --statusline-only
powershellUser
poison0 setup-claude
poison0 setup-claude --statusline-only
bashroot, in the signed-in user's account
u=$(stat -f%Su /dev/console)
sudo -u "$u" -H env -u SUDO_USER /usr/local/bin/poison0 setup-claude
sudo -u "$u" -H env -u SUDO_USER /usr/local/bin/poison0 setup-claude --statusline-only
ToolSetting
Intune
  • Package: build-package.ps1 -Out C:\pz-intune -InstallCode <install-key> -Version x.y.z, then IntuneWinAppUtil.exe -c C:\pz-intune -s install.cmd -o C:\pz-out. The key goes into installcode.txt, not into the Intune settings. Treat the .intunewin file like the key. Revoke the key after the rollout.
  • Win32 app: Install command install.cmd -Version x.y.z, install behavior System, x64 only, detection rule detect.ps1.
  • Agent hooks per user: user-setup.ps1 as a second Win32 app, install behavior User, with a dependency on the PoisonZero app, detection rule detect-user.ps1. Supported agents.
  • Defender exclusions first: Create an Intune policy (Endpoint security → Antivirus → Microsoft Defender Antivirus exclusions), never powershell -EncodedCommand; Defender blocks that. Paths: C:\Program Files\PoisonZero, C:\ProgramData\PoisonZero, C:\Users\*\AppData\Local\PoisonZero. Assign the app only after the policy shows as applied on the devices.
JamfRuns as root; the Jamf tab runs the optional step 2 in the account of the signed-in user.

2C. Device name at install time (optional)

Set one of these variables next to PZ_ENROLL_CODE. The first one set, in this order, applies:

VariableEffect
PZ_DEVICE_NAME="Platform / Laptop 07"The name is stored as platform-laptop-07
PZ_DEVICE_NAMES_CSV=<file or https URL>CSV with the header hostname,name. The installer looks up its own hostname and takes the name. On macOS it tries the computer name, then the local hostname, then the hostname. Only the name is sent, never the hostname
PZ_DEVICE_NAME_FROM_HOSTNAME=1The hostname becomes the device name. On macOS, it is the computer name. Not recommended
textpz-names.csv
hostname,name
mbp-0231,Platform / Laptop 07

Note: The device name is chosen by the administrator. The name should not contain personal data, for example no person's name.

Formatlowercase letters, digits and hyphens, up to 63 characters. The installer shows how the name is stored
ConversionUppercase letters, umlauts, spaces and special characters are converted, for example “Jon's MacBook Pro” becomes jon-s-macbook-pro.
When the name is appliedonly when a device is enrolled for the first time. For a device that is already enrolled, change the name in the console: Devices → Rename device.
Interactive installWithout a variable, the installer asks in a terminal whether to send the device name (Yes or No, no default). Yes works like PZ_DEVICE_NAME_FROM_HOSTNAME=1, No sends no name. With Intune, Jamf and scripts without a terminal, the installer does not ask and sends no name unless a variable is set.
Available fromversion 1.16.45

2D. Windows at a glance

TopicWindows
Installinstall.ps1 in PowerShell as Administrator. Interactively, it asks for the acceleration, the AI agents and the device name (Yes or No); as SYSTEM without a console (Intune), it asks nothing, installs for the CPU and sends no name.
Microsoft DefenderBefore installing, set three path exclusions, because the program is not code-signed: C:\Program Files\PoisonZero, C:\ProgramData\PoisonZero, C:\Users\*\AppData\Local\PoisonZero. Installing on Windows.
Intune, Configuration Manager, Group PolicyIntune: Two Win32 apps, the main app with install behavior System, the per-user app with User. Configuration Manager with the same values, not tested yet. Group Policy: Defender exclusions. Installing on Windows.
Command and PATHpoison0, also p0 and pz. C:\Program Files\PoisonZero and its bin subfolder are on the system PATH.
Confirmation dialogYou confirm Allow for exec0 in the “Windows Security” window, with a PIN or fingerprint if set up. Only the signed-in account can answer: Answering the dialog.
exec0 and inject0inject0 runs only on a GPU at this stage. On Windows the device image needs a Vulkan driver from Intel, AMD or NVIDIA; without a suitable GPU inject0 stays off. exec0 runs on the CPU (Enterprise). On the GPU, the engine runs without AppContainer: System requirements, Windows sandbox.

3. Set up

  1. Name devices that have no name: Devices → on the device Rename device → enter the Display name of the device, for example “Platform / Laptop 07”.
  2. Separate teams (optional, Enterprise): Create one install key per team, each with its own Profile. Manage profiles: Settings → Protection & Devices → Profiles.
  3. Stop prompt injection with inject0 (from poison0 agent 1.16.56)

    inject0 checks results of web fetches, web searches, MCP tools, the shell and files before the agent reads them. The check runs on the device.

    Default: Off, on every plan. Enterprise admins switch it on in the profile: Edit → inject0 → On, then choose the Level (default Remove).

    GPU only at this stage: Metal on Apple Silicon, Vulkan on Windows and Linux. Each device runs a short self-test at start and only then turns inject0 on. A device without a suitable GPU reports inject0: off (no suitable GPU). There is no CPU fallback.

    Central Claude Code settings: If you manage Claude Code settings centrally (Intune or Group Policy, managed-settings.json, claude.ai admin console), add the PostToolUseFailure hook entry next to PostToolUse. Otherwise poison0 doctor warns inject0 failure hook missing.

    More: How inject0 checks tool results

  4. Check tool calls with exec0 (optional)

    exec0 checks every tool call of your AI agents before it runs. Requirement: Enterprise. It runs on the CPU of the device, no GPU needed.

    Set it: Settings → Protection & Devices → Profiles → Edit → exec0 with Melira AI → Mode

    ModeEffect
    Off (default)No check
    ObserveChecks every call and never asks. Hard rules still block; everything else is only counted.
    ProtectionBlocks dangerous calls. The person at the device decides unclear cases.
    Rules only (no model) (agent 1.16.54 or later)Only the fixed rules apply. The model does not run.

    Check not possible: In Protection mode the poison0 agent asks the person at the device (default).

    More: How exec0 checks tool calls

  5. Agentic DLP with leak0 (optional)

    leak0 checks prompts, tool calls and tool output of Claude Code, Codex, Cursor, Gemini CLI and more agents, see Supported agents. API keys, tokens and credential files stay on the device. It blocks only with proof.

    Set it: Settings → Protection & Devices → Profiles → Edit → section leak0

    ModeEffect
    OnBlocks with proof, asks, replaces secrets with placeholders and gives notices
    ObserveLogs every hit without stepping in
    OffNo check

    New profiles start at On, existing ones at Off. In the same section: Your own secret files, exclusions and Also in the console (cloud audit).

    Installer: Cloud devices take the mode from the profile. Only on private devices does the installer ask, with On preselected. Unattended, set PZ_SETUP_LEAK0=enforce|observe|off; without the variable leak0 stays off.

    Approving a commit with a secret file: With Codex and Gemini CLI the PoisonZero dialog asks. You confirm Allow with your system sign-in. Without a desktop, for example over SSH: poison0 leak0 allow <file>. The approval covers commits with exactly this content for 10 minutes and one push. If Users may approve commits with secret files themselves is off in the profile, the commit stays blocked.

    More: How leak0 protects credentials

  6. Review and extend the rules

    The Rules page shows the built-in policies of exec0 and leak0. They always protect.

    With Enterprise (enabled on request) you add your own policies there with + Policy and switch built-in ones on and off per profile.

  7. Notice after a quarantine

    Nothing to set: After an automatic quarantine the coding agent is told automatically. A paired phone reports blocks.

  8. Change settings on the device

    Every command requires an administrator sign-in. With sudo no sign-in is needed.

    CommandEffect
    poison0 exec0 observe|enforce|rules|offexec0: Observe, Protection, Rules only, Off
    poison0 exec0 fail open|closedLet it through unchecked or ask the person when exec0 cannot check. Private devices only
    poison0 leak0 enforce|observe|offleak0: On, Observe, Off
    poison0 exec0 clear, poison0 leak0 clearDrop the local change; the central value applies again

    A local change applies until the console or a newer client-config.json sets this setting again. poison0 doctor shows active local changes.

    Cloud devices: Thresholds and the behaviour when the check is not possible are set only in the console.

4. Use

WhereInputResult
Claude Code/pz, /poison0, /p0Protection stats for this month
Claude CodeStatus line🟢 protection running; 🟡 service running but reports a problem; 🔴 service not running
Command linepoison0 statsProtection stats
Command linesudo poison0 statusAll decisions, open quarantine
Command linesudo poison0 quarantine listHeld-back changes; show, restore, discard <id>
Command linepoison0 doctorSelf-test, with active local changes
Command linesudo poison0 egressWhat left the machine
Command linepoison0 exec0 status
poison0 leak0 status
Mode, source and protection per agent on this device
Command linepoison0 exec0 allowAllow your most recent blocked exec0 call once, with an administrator sign-in. --list shows the calls of the last 10 minutes
Command linepoison0 leak0 allow <file>Approve a secret file for commits (10 minutes) and one push, with your system sign-in
ConsoleAssistantThe documentation assistant answers questions about setup and operation
Short form p0 instead of poison0, as long as no other program uses the name. poisonzero still works. Windows: No sudo; use PowerShell as administrator.
Update via/pz in Claude Code
install.sh, install.ps1Existing /pz files of the installing user are renewed automatically
Homebrew, Scoop, .deb/.rpm, automatic updateAnyone who uses /pz runs poison0 setup-claude once. The protection itself does not need it

5. View telemetry

ConsoleContent
DevicesState and incidents per device
AnalyticsEvents by type and day, with the pages Overview, exec0 and leak0. Filters: Time range, device, agent, operating system, action, category
AuditEvery incident with its redacted attack content
Never transmitted: Full file contents (only redacted changes), files outside the protected paths, process and system information.

6. Give feedback

WhereInput
Claude Code/pz feedback <text>
Command linepoison0 feedback "<text>" (no sudo)
ItemRule
LengthAt most 2000 characters
RedactionLocally before sending: Secrets, email addresses, IBANs, card numbers, IP addresses, phone numbers, key and token assignments, and the user name in home paths (/Users/<name>, /home/<name>, C:\Users\<name>). The command shows the text after redaction
SendingWith the next check-in. The device sends only the text, version and platform; on arrival PoisonZero stores the device's current name with it
RecipientOnly the PoisonZero team sees the text, not your own admins
ReplyIf the team replies, the account owner is told the date and device of the feedback, not its text
Private modeBlocked; use the contact form on poisonzero.com instead

For administrators

TaskWhereGuide
Invite admins, create an install keySettings → Access & Security → People; Devices → Roll out many devices with a keyEnroll a device
Choose cloud or privateWhen creating the key: ModeCloud or private
Roll out per operating systemJamf, Intune, Configuration Manager, AnsiblemacOS, Linux, Windows
Maintain profiles and rulesSettings → Protection & Devices → Profiles; RulesProfiles for a fleet
Set the modes of exec0, leak0, inject0Profile → Editexec0, leak0, inject0
Turn on Shadow AI (off by default, Enterprise)Settings → Protection & Devices → Profiles → Features → Shadow AI, then per profile. Areas in leak0: Overview, DLP & Compliance, Shadow AIDetect AI services
Review incidents and auditAudit, DevicesIncidents and audit
Connect SIEM, Falcon, Google SecOps (SIEM), OpenTelemetry (Enterprise)Settings → Protection & Devices → Devices & Model → SIEM (Falcon / Splunk); Google SecOps in the Google SecOps section of the same page; SIEM files via siem.json on the deviceSIEM export, Falcon Next-Gen SIEM, Google SecOps, OpenTelemetry export
Manage by scriptSettings → Access & Security → API keysThe Management API
Control updatesSettings → Protection & Devices → UpdatesUpdates and lifecycle

Uninstall

Run as administrator. Removes hooks, service, commands, program and data.
macOS / Linux: curl -fsSL https://poisonzero.com/install.sh | sudo sh -s -- --uninstall
Windows: & ([scriptblock]::Create((irm https://poisonzero.com/install.ps1))) -Uninstall
Packages (.deb, .rpm, Homebrew, Scoop): See the installation reference.

Read next: Every installer variable and path: Installing the poison0 agent. Windows: Installing on Windows. Hardware: System requirements. Protected agents: What the poison0 agent watches. Incidents: Incidents and audit. Updates: Updates and lifecycle.