Skip to main content

A Zero Trust Cryptographic Certificate Authority SDK for Autonomous AI Agents.

Project description

Agent-CA 🛡️

PyPI version Version License: MIT

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
  1. 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())

🔒 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_ca-0.2.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_ca-0.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file agent_ca-0.2.0.tar.gz.

File metadata

  • Download URL: agent_ca-0.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for agent_ca-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d1875ed565baaa0498e9e85ecfa2e1663a384f905c524028d4575dbec3673099
MD5 307a76fe6e96e6b7ebedae740853bdfc
BLAKE2b-256 3bad40aef2c44af0b1bb540059c0e349de15d7bb7d67a37bb1ca3f124823cbc2

See more details on using hashes here.

File details

Details for the file agent_ca-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agent_ca-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for agent_ca-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b15362b6896e952ebfa3890fa3a13500481d29101f9f78cf2c17de2519660b8a
MD5 f4bcf8633fd66afec1f374e226da626d
BLAKE2b-256 2e6f151be3c123031635de2269a1d5f89516eadfcbdaa5d8f5c0e28066c09b73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page