A Zero Trust Cryptographic Certificate Authority SDK for Autonomous AI Agents.
Project description
Agent-CA 🛡️
Zero Trust Hardware Cryptography for Autonomous AI Agents.
In an era of AI-to-API communication, hardcoded API keys are a catastrophic vulnerability. agent-ca allows autonomous AI agents (LangChain, CrewAI, AutoGen) to securely authenticate with internal enterprise APIs using mathematically unforgeable, short-lived X.509 passports backed by a cloud Hardware Security Module (HSM).
🏗️ Architecture
sequenceDiagram
participant Agent as AI Agent (Python SDK)
participant CA as Agent-CA (Azure Container)
participant HSM as Azure Key Vault (Hardware)
participant API as Internal Bouncer API
Agent->>CA: 1. Request Passport (Budget: $500)
CA->>HSM: 2. Validate Identity & Sign (ECDSA)
HSM-->>CA: 3. Return Hardware Signature
CA-->>Agent: 4. Issue X.509 Passport (60m expiry)
Agent->>API: 5. Execute Task (Injects Passport in Headers)
API-->>Agent: 6. Verify Signature & Allow Access
🚀 Quickstart
1. Get your API key
Register your agent in the Agent-CA Command Center. (Note: Link will update post-beta).
https://agent-ca-saas.vercel.app/
2. Install the SDK
```python
pip install agent-ca
- Initialize your secure session agent-ca acts as a drop-in secure replacement for requests.Session. It handles ephemeral key generation, CA negotiation, payload signing, and automatic background rotation.
from agent_ca import SecureAgentSession
# 1. Initialize the Zero-Trust session
#Get the API key: https://agent-ca-saas.vercel.app/
session = SecureAgentSession(
agent_name="Finance-LangGraph-Bot",
api_key="sk_live_your_key_here"
)
# 2. Execute requests. The SDK automatically signs the payload
# and injects the X.509 passport into the headers.
response = session.post(
"[https://api.your-company.com/v1/execute](https://api.your-company.com/v1/execute)",
json={"action": "transfer_funds", "amount": 500}
)
print(response.json())
⚙️ Core Security Guarantees Ephemeral Identity: Certificates mathematically expire in 15 minutes.
Auto-Rotation: The SDK runs a background heartbeat thread, automatically provisioning a fresh passport before the old one expires.
Zero-Trust Memory: Keys are held in volatile RAM, never written to disk.
Least Privilege: Developers can revoke an agent's passport instantly from the dashboard.
Built for the next generation of Autonomous DevSecOps.
🔒 Why Agent-CA? No Hardcoded Secrets: Agents generate ephemeral private keys in memory. If an LLM gets prompt-injected, the attacker gets nothing but useless math.
Hardware Anchored: Every certificate is signed by a physical FIPS 140-2 Level 2 Hardware Security Module hosted in the Microsoft Azure cloud.
Instant Revocation: Global Certificate Revocation Lists (CRL) give you a terrifyingly fast kill-switch for rogue AI agents.
Privacy by Design: Built-in telemetry sanitization ensures your proprietary LLM prompts and vector data never leave your infrastructure.
📄 License This SDK is released under the MIT License. See LICENSE for more information.
Note: The Agent-CA core routing engine and cryptographic HSM backend are proprietary SaaS infrastructure.
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
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
File details
Details for the file agent_ca-0.2.1.tar.gz.
File metadata
- Download URL: agent_ca-0.2.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0f4ff83a6e380f0830bb4229b6fadc43ddc572287cce7344dfc6ffeaa23be7d
|
|
| MD5 |
7792d7022a8f9988c58ed8174a0680f6
|
|
| BLAKE2b-256 |
7e0ac61ca7234a249d12378bf113f047bda0ba46c88a022dee7c8c7b86473f99
|
File details
Details for the file agent_ca-0.2.1-py3-none-any.whl.
File metadata
- Download URL: agent_ca-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3186dea0e7595d5ecd755ecb4391fbdbaa1b8e0fc0b09ccbe1103d7ed7650a01
|
|
| MD5 |
40ed5b302ce20699a7a8e4824080caf2
|
|
| BLAKE2b-256 |
3c0fbe1a9429193f0eb82740e4f64c5c69ee594ee4326cf81a4652da85322deb
|