caracal

caracal

🐾 Caracal is pre-execution authority enforcement for AI agents controlling delegated actions with real-time revocation and immutable proof.

Stars: 82

Visit
 screenshot

Caracal is a pre-execution authority enforcement system for AI agents and automated software operating in production environments. It enforces a single rule: no action executes unless there is explicit, valid authority for that action at that moment. Caracal offers two interfaces: Caracal Flow for operators, FinOps, and monitoring teams, and Caracal Core for developers, CI/CD engineers, and system architects. Core capabilities include dynamic identity & access, budget enforcement, secure ledger, and agent-native data model. The infrastructure is designed to scale with environments for local and production setups.

README:

Caracal Logo

Pre-execution authority enforcement for AI agents

License Version Python Repo Size Activity Website PyPI


Overview

Caracal is a pre-execution authority enforcement system for AI agents and automated software operating in production environments. It exists at the exact boundary where decisions turn into irreversible actions such as API calls, database writes, deployments, workflow triggers, financial operations, or any action that can create real impact. Instead of relying on standing credentials, broad roles, or static permissions, Caracal enforces a single rule: no action executes unless there is explicit, valid authority for that action at that moment.


Quickstart

Caracal offers two distinct interfaces depending on your role and requirements.

1. Caracal Flow (Default)

Target: Operators, FinOps, and Monitoring Teams.

Caracal Flow is the interactive Terminal User Interface (TUI). It provides a visual dashboard for monitoring agent swarms, managing infrastructure, and auditing real-time spend without writing code.

╔═══════════════════════════════════════════════════════════════════╗
║                                                                   ║
║     ██████╗ █████╗ ██████╗  █████╗  ██████╗ █████╗ ██╗            ║
║    ██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗██║            ║
║    ██║     ███████║██████╔╝███████║██║     ███████║██║            ║
║    ██║     ██╔══██║██╔══██╗██╔══██║██║     ██╔══██║██║            ║
║    ╚██████╗██║  ██║██║  ██║██║  ██║╚██████╗██║  ██║███████╗       ║
║     ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚══════╝       ║
║                                                                   ║
║                   C A R A C A L  F L O W                          ║
║              Economic Control Plane for AI Agents                 ║
║                                                                   ║
╚═══════════════════════════════════════════════════════════════════╝

Launch Dashboard:

uv run caracal-flow

Capabilities in Flow:

  • Visual Metering: Real-time graphs of token usage and dollar spend.
  • One-Click Infrastructure: Toggle between local SQLite and production Docker stacks.
  • Policy Management: GUI-based adjustments for agent budget caps.

2. Caracal Core (Power Users)

Target: Developers, CI/CD Engineers, and System Architects.

Caracal Core provides the high-performance CLI and SDK for deep integration. It is designed for users who require programmatic control, custom scripting, or wish to embed economic safety checks directly into agent loops.

Installation:

git clone https://github.com/Garudex-Labs/caracal.git
cd caracal
pip install -e .

CLI Commands:

# Register a new agent identity with a hard budget cap
caracal agents register --name "researcher-01" --budget 50.00 --zone "dev-cluster"

# Generate a dynamic access token for a specific session
caracal auth token --agent "researcher-01" --ttl 3600

# Audit the ledger for specific transactions
caracal ledger audit --agent "researcher-01" --format json

Advanced Configuration: Power users can override default behaviors by modifying caracal.yaml or setting environment variables for custom identity providers (IdP) and key management systems (KMS).


Core Capabilities

Dynamic Identity & Access Move beyond static API keys. Caracal issues ephemeral, identity-attested credentials that can be revoked instantly. Authorization happens at the edge where agents interact with their environment.

Budget Enforcement Define hard caps on token usage, dollar spend, and transaction frequency per agent identity. Policies are deterministic and enforced at the gateway level before any cost is incurred.

Secure Ledger An immutable audit trail for every economic decision made by an agent. This system of record allows companies to attribute costs to specific agents, explain outcomes, and ensure compliance.

Agent-Native Data Model Map workloads into logical, ephemeral zones. Spin zones up or down as needed, perfect for dynamic, agent-native workloads that integrate directly into your software development lifecycle.


Infrastructure

Caracal is designed to scale with your agent fleet.

Environment Database Messaging Cache Use Case
Local SQLite In-Memory Local Dict Zero-setup dev, testing, and Caracal Flow default.
Production PostgreSQL Kafka Redis High-throughput enterprise deployment.

To enable production mode:

  1. Open caracal-flow.
  2. Navigate to Settings & Config > Infrastructure Setup.
  3. Select Start All Services (provisions containers via Docker).

Project Structure

  • caracal/core/: Business logic for budgeting, identity, and ledger operations.
  • caracal/flow/: TUI layer for the visual dashboard.
  • caracal/gateway/: Policy enforcement proxy and middleware.
  • deploy/: Infrastructure definitions (Docker Compose, Helm).

License

Caracal is open-source software licensed under the AGPL-3.0. See the LICENSE file for full details.

Developed by Garudex Labs.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for caracal

Similar Open Source Tools

For similar tasks

For similar jobs