INSTALL · 5 MINLinux · macOS · Windows · Docker · Kubernetes

Install the SDK.

Five minutes from "I just signed up" to your first receipt in the dashboard. Pick the path that matches your stack; every option ends the same way: a test receipt that flips the operator dashboard from amber "waiting" to green "SDK connected".

1. Get your API key.

  1. Sign in to /dashboard/.
  2. Open Settings → API keys.
  3. Click Create key.
  4. Pick scopes (ingest + read for SDK use), an expiry, click Create.
  5. Copy the key shown once. Store it in your secrets manager.

Set AGENTAUDIT_API_KEY in your environment, or pass it to the SDK constructor explicitly.

2. Pick an install path.

One-line bootstrap

curl -fsSL https://www.agentaudit.co.uk/install.sh | bash

The script installs into ~/.agentaudit/venv, prompts for your API key (or reads $AGENTAUDIT_API_KEY), writes ~/.agentaudit/env mode 0600, and sends a test receipt.

Re-running is safe — it updates the SDK and re-verifies the chain. Requires Python 3.10+.

One-line bootstrap

iwr -useb https://www.agentaudit.co.uk/install.ps1 | iex

Installs into %USERPROFILE%\.agentaudit\venv with an ACL restricted to the current user. Same behaviour as the bash script — prompts for the key, writes the env file, sends a test receipt.

Sidecar container

docker pull ghcr.io/agentaudit/sdk:latest
docker run --rm -d \
  -e AGENTAUDIT_API_KEY=aa_live_... \
  -p 4318:4318 \
  ghcr.io/agentaudit/sdk:latest

Drop-in sidecar for non-Python runtimes (Node, Go, Java, .NET). Mirrors the SDK's ingestion and redaction over local port 4318. Same JSON envelope as the REST /api/v1/receipts endpoint.

Direct pip install

pip install agentaudit
export AGENTAUDIT_API_KEY=aa_live_...

If you'd rather skip the bootstrap, install the package directly. Then in your agent code:

import agentaudit
agentaudit.init(agent_id="my-agent-v1")

Signed Windows MSI

Authenticode-signed MSI for ops teams that prefer a desktop installer over a package manager. Bundles Python 3.11, installs the SDK into a managed virtualenv, writes the API key, sends a test receipt.

Currently in early access while we finalise Authenticode reputation. Request a build — public download lands Q3 2026.

Source: /installer on GitHub.

3. Verify in the dashboard.

  1. Open /dashboard/.
  2. The install banner at the top should flip from amber "waiting" to green "SDK connected · 1 receipt".
  3. If it stays amber after 60s, run agentaudit doctor from the venv — it tests DNS, TLS, auth and ingestion in order and prints the first failure.

4. Wrap your agent.

Pick the framework adapter for your stack:

from agentaudit.adapters.openai import instrument
instrument(agent_id="claims-triage-v3")

# or
from agentaudit.adapters.claude_agent import instrument
instrument(agent_id="research-bot-v1")

# or for MCP servers
from agentaudit.adapters.mcp import audit_server
audit_server(server, agent_id="mcp-fileops")

Adapters available: OpenAI Agents SDK, Claude Agent SDK, MCP, LangChain, CrewAI. Drop-in code samples for each are in the SDK quickstart.

Fleet deploy.

For estate-wide rollouts (SCCM, Intune, Ansible, Kubernetes), see the ops-team playbook. Quick summary:

Troubleshooting.