Preloop - Control plane & safety layer for your agentic AI workforce
Project description
Preloop: AI Safety, Control, and Observability for AI Agents
Preloop is a safety and control platform for teams deploying AI agents into real workflows. It gives you policy enforcement, human approvals, observability, budget controls, and audit trails across both tool use and model traffic.
Use Preloop to onboard existing agents and to deploy event-driven agentic automations.
Works with OpenClaw, OpenCode, Claude Code, Codex CLI, Gemini CLI, Cursor, and any MCP-compatible agent or managed runtime.
Once an agent is onboarded it routes prompts through the Preloop Gateway and tool calls through the Preloop MCP firewall.
Deploy automations using the built-in flow templates like the Pull Request Reviewer or create your own.
Read the official documentation: Full guides and tutorials are available at docs.preloop.ai.
Why Preloop?
AI agents like Claude Code, Cursor, and OpenClaw are transforming how we work. But with great power comes great risk:
- Accidental deletions. One wrong command and your production database is gone.
- Leaked secrets. API keys pushed to public repos before anyone notices.
- Runaway costs. Agents spinning up expensive resources without limits.
- Breaking changes. Untested deployments to production at 3am.
Most teams face an impossible choice: give AI full access and move fast (but dangerously), or lock everything down and lose the productivity gains.
Preloop solves this. You can govern what agents are allowed to do, route risky actions to the right human workflow, track every important decision, and keep model usage and spend visible in one place. You stay in control while AI handles the routine work.
AI Agent -> Preloop -> [Policy check] -> Allow / Deny / Require Approval -> Execute
Core Capabilities
Access Policies & Approval Workflows
Define fine-grained access controls for any AI tool or operation. Tools support multiple ordered access rules that evaluate in priority order. When an AI attempts a protected operation, Preloop pauses and notifies you:
- Instant notifications via mobile app, email, Slack, or Mattermost.
- One-tap approvals from your phone, watch, or desktop.
- Async approval mode allows the agent to poll for status instead of blocking network hooks.
- Full Audit Trail: Every action is logged with full context: what was attempted, the matched policy, execution duration, and who approved it.
Policy-as-Code
Define policies in YAML and manage via CLI or API to version-control your safeguards alongside your infrastructure:
# Example: Require approval for production deployments
version: "1.0"
metadata:
name: "Production Safeguards"
description: "Require approval before deploying"
approval_workflows:
- name: "deploy-approval"
timeout_seconds: 600
required_approvals: 1
async_approval: true
tools:
- name: "bash"
source: mcp
approval_workflow: "deploy-approval"
justification: required
conditions:
- expression: "args.command.contains('deploy') && args.command.contains('production')"
action: require_approval
AI Model Gateway
Preloop safely routes model traffic on behalf of managed runtimes instead of handing provider credentials to potentially vulnerable agent containers.
- Exposes OpenAI-compatible and Anthropic-compatible endpoints with SSE streaming.
- Account-level and flow-level budget enforcement using configurable cost tracking limits.
- Usage persistence for detailed telemetry, letting operators see which projects or flows cost what over time.
Managed Agent Onboarding
Discover and securely enroll existing local agents into your control plane effortlessly using native CLI tools (preloop agents discover). Connect OpenClaw, OpenCode, Claude Code, Codex CLI, or Gemini CLI. Preloop will map the agent's MCP interfaces to your account and transparently bind their execution constraints into your unified approval interface.
Getting Started
Install Preloop agents and components locally using our provisioning scripts.
# Install the standalone CLI
curl -fsSL https://preloop.ai/install/cli | sh
# Install the OSS platform stack
curl -fsSL https://preloop.ai/install/oss | sh
For extended details detailing comprehensive Docker builds, Kubernetes Helm topologies, GraphQL configuration, WebSocket streaming channels, and deep .env definitions, refer to the Preloop Documentation Hub.
Comparison: AWS Agent Core
| Feature | Preloop | AWS Agent Core |
|---|---|---|
| Open source | ✅ | ❌ |
| Self-hosted option | ✅ | ❌ |
| Policy-as-code (YAML) | ✅ | Limited |
| MCP native | ✅ | ❌ |
| Works with any agent | ✅ | AWS-focused |
Preloop is the open-source alternative to AWS Agent Core for teams who want vendor-neutral, self-hosted AI governance.
Enterprise Features
Preloop Enterprise Edition extends the core open-source components with centralized RBAC capabilities:
| Feature | Open Source | Enterprise |
|---|---|---|
| Basic approval workflows | ✅ | ✅ |
| Issue tracker integrations | ✅ | ✅ |
| Agentic flows & Vector search | ✅ | ✅ |
| Role-Based Access Control (RBAC) | ❌ | ✅ |
| Team management & Admin Dashboard | ❌ | ✅ |
| CEL conditional approval workflows | ❌ | ✅ |
| AI-driven approval logic | ❌ | ✅ |
| Team-based approvals with quorum | ❌ | ✅ |
| Approval escalation | ❌ | ✅ |
| Audit impersonation tracking | ❌ | ✅ |
Contact sales@preloop.ai for Enterprise Edition licensing requests.
Contributing
Contributions are welcome! Please see our Contributing Guidelines for details on how to get started.
License
Preloop is open source software licensed under the Apache License 2.0. Copyright (c) 2026 Spacecode AI Inc.
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 preloop-0.9.0rc1.tar.gz.
File metadata
- Download URL: preloop-0.9.0rc1.tar.gz
- Upload date:
- Size: 717.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a9fed585a3b7ae234ead01e27260e6bbff91f5dd163cd225e563bcfc10d3693
|
|
| MD5 |
d4673675d6327ce56445bfea5e2814dd
|
|
| BLAKE2b-256 |
1fa19b08a8e7b7d86faa44af62a2ea41e6eb5b165f797effe6c63892ac0d4e36
|
File details
Details for the file preloop-0.9.0rc1-py3-none-any.whl.
File metadata
- Download URL: preloop-0.9.0rc1-py3-none-any.whl
- Upload date:
- Size: 902.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5430866a664fc6721d392c5eb2abba0af9079a8733eec54d9b86f2bd38ea3f7
|
|
| MD5 |
4ab853f09e4c99410f7bf0d5765aa2dc
|
|
| BLAKE2b-256 |
5b908fa7d699e3ee53c1107b8a31144dbb48b5dad3bc818475712e5c2c382a2f
|