Pre-execution authority enforcement system for AI agents
Project description
Pre-execution authority enforcement for AI agents
Overview
Caracal is a pre-execution authority enforcement system for AI agents and automated software operating in production environments. It exists at the boundary where autonomous decisions turn into irreversible actions—API calls, database writes, or system triggers.
By enforcing the principle of explicit authority, Caracal ensures no action executes without a cryptographically verified, time-bound mandate issued under a governing policy.
Community
|
GitHub's Open Source Friday |
More coming soon
|
Core Interfaces
1. Caracal SDK (Python & Node.js)
Target: Developers and System Architects.
The second-generation (v2) SDK provides a unified, high-performance interface for integrating Caracal into any agentic loop.
Installation (Python):
pip install caracal-core
Installation (Node.js):
npm install @caracal/core
Fluent API Example:
from caracal.sdk import CaracalClient
client = CaracalClient(api_key="your-key")
context = client.context.checkout(workspace_id="ws_123")
# Register an agent principal
agent = context.agents.create(name="web-scraper", owner="system")
2. Caracal Flow (TUI)
Target: Security Operations and Governance Officers.
Interactive terminal interface for monitoring authority ledgers, managing principals, and initial onboarding.
caracal-flow
Technical Architecture
Caracal Core (the open-source foundation) implements the primary enforcement engine:
| Component | Description |
|---|---|
| Principals | Identities (agents/users) with ECDSA P-256 cryptographic keys. |
| Policies | Fine-grained rules defining resource patterns and allowed actions. |
| Mandates | Short-lived, signed tokens granting the right to execute an action. |
| Ledger | High-performance audit trail of every authorization event. |
[!NOTE] Enterprise features (Gateway Proxy, SSO Provider, Compliance Extensions) are available on www.garudexlabs.com
Project Structure
caracal/core/: The core policy evaluation and mandate engine.caracal/sdk/: The unified Python SDK implementation.caracal/flow/: TUI application for management and monitoring.caracal/db/: Persistence layer with PostgreSQL and Redis support.k8s/: Kubernetes manifests for core component deployment.
Citation (Optional but Appreciated)
Caracal is an open-source framework for pre-execution authority enforcement for AI agents controlling delegated actions, with real-time revocation and immutable proof.
If this project contributes to your research, product, or derivative systems, please consider citing it. Citations help us build credibility, advance trustworthy AI security research, and continue developing open infrastructure that benefits the broader ecosystem.
@software{madhuwala2026caracal,
author = {Madhuwala, Ryan and Garudex Labs},
title = {Caracal: Authority Enforcement Framework for AI Agents},
year = {2026},
publisher = {GitHub},
url = {https://github.com/garudex-labs/caracal}
}
License
Caracal is open-source software licensed under the Apache-2.0. See the LICENSE file for details.
Developed by Garudex Labs.
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 caracal_core-0.7.0.tar.gz.
File metadata
- Download URL: caracal_core-0.7.0.tar.gz
- Upload date:
- Size: 321.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b45bcddf2f9ec1a7b18ff329e7a00b1df76ab5f8b3088c73fc3363ef4be63cfc
|
|
| MD5 |
d69fb5dd98736cd3bf02cd219c95550b
|
|
| BLAKE2b-256 |
086fdb5e8c304c31932c2fc174ac782a8f062b6308fa3f56546141de14eda2cf
|
File details
Details for the file caracal_core-0.7.0-py3-none-any.whl.
File metadata
- Download URL: caracal_core-0.7.0-py3-none-any.whl
- Upload date:
- Size: 391.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38f1bf0e1823c8f225bf16fadf9b5fe61ad8fd85b35564f2df624a8c39edcb53
|
|
| MD5 |
b2504211e4344e00e3c66f71b3c45289
|
|
| BLAKE2b-256 |
46165178287e4508c4b961b1a29083d2806a457a6651fe19c3356aa9c13209e9
|