The guardian layer for AI agents — identity, secrets, audit via MCP
Project description
Haldir
The guardian layer for AI agents.
Haldir is an MCP server platform that gives AI agents identity, security, and accountability. Every agent action — browsing, paying, authenticating, calling APIs — flows through Haldir.
Products
| Product | What it does | MCP Tools |
|---|---|---|
| Haldir Gate | Agent identity, auth, permissions | authenticate, check_permission, create_session, revoke_session |
| Haldir Vault | Secrets, credentials, payment limits | get_secret, store_secret, authorize_payment, check_budget |
| Haldir Watch | Audit logs, compliance, cost tracking | log_action, get_audit_trail, get_spend, flag_anomaly |
Quick Start
pip install haldir
from haldir import Gate, Vault, Watch
# Initialize
gate = Gate(api_key="your-key")
vault = Vault(api_key="your-key")
watch = Watch(api_key="your-key")
# Authenticate an agent
session = gate.create_session(agent_id="my-agent", scopes=["read", "spend:50"])
# Get a secret safely
api_key = vault.get_secret("stripe_key", session=session)
# Every action is logged
watch.log_action(session=session, tool="stripe", action="charge", amount=29.99)
MCP Server
{
"mcpServers": {
"haldir": {
"command": "haldir-mcp",
"env": {
"HALDIR_API_KEY": "your-key"
}
}
}
}
Architecture
Agent (Claude, GPT, etc.)
│
▼
┌─────────────────────────┐
│ Haldir Gate │ ← Identity + permissions
│ "Can this agent do X?" │
└────────┬────────────────┘
│
┌────┴────┐
▼ ▼
┌────────┐ ┌────────┐
│ Vault │ │ Watch │
│secrets │ │ audit │
│payments│ │ costs │
└────────┘ └────────┘
│ │
▼ ▼
External Storage
APIs (Postgres)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
haldir-0.1.0.tar.gz
(17.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
haldir-0.1.0-py3-none-any.whl
(18.2 kB
view details)
File details
Details for the file haldir-0.1.0.tar.gz.
File metadata
- Download URL: haldir-0.1.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db2ea007b1c765926f8c0ec891f0403357c18dcc2e6fa3ff2c987c140a158c9b
|
|
| MD5 |
a61ee3e6b7d0f12f2bccd94740411563
|
|
| BLAKE2b-256 |
4ad15b2926d33142621769a1066c0b02a9ab6714199f47ce3e3bf13691644bb5
|
File details
Details for the file haldir-0.1.0-py3-none-any.whl.
File metadata
- Download URL: haldir-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4a49e27c172f07e0d07327efdfee27b272499306a28f5bd0f088adac3f9588c
|
|
| MD5 |
bbede69120a4d9f0b37bed70f3d54a0c
|
|
| BLAKE2b-256 |
69d09fc8084983d653fc9fcce26d22d9cf706006905f034e77ebc0f0e1f34584
|