Installation¶
AgenticAudit can be installed in three ways depending on your use case.
Docker Compose (recommended)¶
The fastest way to get the full stack — API server, dashboard, and PostgreSQL.
Prerequisites: Docker and Docker Compose installed.
This starts:
- API server on
http://localhost:8000 - Dashboard on
http://localhost:8000/dashboard - PostgreSQL 16 on
localhost:5432
On first run, the API creates a default organization and API key. Retrieve it:
pip (SDK + hook CLI only)¶
If you already have a PostgreSQL database and want to run the API server separately, or you only need the SDK and hook CLI:
Prerequisites: Python 3.12+
This installs:
agentic-auditPython SDK — log events programmaticallyagentic-audit-hookCLI — Claude Code and Cowork hook integration
The SDK connects to a running AgenticAudit API. Set the connection:
To also install the API server via pip:
Then run it:
External PostgreSQL required
When installing via pip, you need to provide your own PostgreSQL database. Set AGENTAUDIT_DATABASE_URL to your connection string.
From source (contributors)¶
Prerequisites: Python 3.12+, uv
This installs all workspace packages in development mode:
packages/api— FastAPI serverpackages/sdk— Python SDKpackages/hook-cli— Hook CLIpackages/mcp-server— MCP server
Run the API server locally:
Run tests:
Verify installation¶
Or check the hook CLI:
Next steps¶
- Configuration — all environment variables
- Quickstart — log your first event