See every tool call and model call, what it cost and who approved it. Then set what agents may do next.
Install the CLI #get-started Book a Demo https://calendar.app.google/FV95tXZtfGpPk7398curl -fsSL https://preloop.ai/install/cli | sh
Finds Claude Code, Codex CLI, Cursor and the other agents on this machine, and onboards the ones you pick.
Apache-2.0|Self-hostable|No SDK or agent code changes
Preloop is the open-source AI agent control plane. It combines an MCP firewall for tool access, an AI model gateway for cost and attribution, policy-as-code with CEL, human-in-the-loop approvals (mobile, watch, Slack, Mattermost, Microsoft Teams, email), runtime session observability, and audit trails in a single self-hostable platform. The `preloop agents discover` command imports compatible local agent configs and transparently rewrites Claude Code, Codex CLI, Cursor, Gemini CLI, Hermes, OpenClaw, and OpenCode to route through Preloop without SDK changes. Teams use Preloop as an open-source alternative to AWS Bedrock AgentCore, a unified MCP gateway and AI gateway, and a way to collect machine evidence for EU AI Act, Cyber Resilience Act, DORA, and NIS2 programs. Named-instrument pages: /ai-act-readiness, /cra-readiness, /dora, /nis2. Preloop is not a law firm and nothing on the site is legal advice.
gridEvery model call is attributed to the agent, session, API key or flow that made it. Budgets warn at a soft limit and stop at a hard one.
The CLI finds the agents on a machine, backs up each config and routes tool calls, and model calls where the agent allows it, through Preloop. No SDK and no agent code changes.
Engineers install agents, skills, plugins and hooks from anywhere, and nobody has vetted them. Preloop inventories every machine that runs its CLI, including agents nobody onboarded. Approve what you have reviewed and see what you have not.
Rules are YAML with CEL conditions that read the arguments, not only the tool name. Deny a payment above 2000, ask above 100, allow the rest.
A held call reaches you on your phone, watch, Slack, Mattermost, Teams or email with its arguments and the rule that stopped it. Low-risk calls never wait.
A flow starts an agent when an issue or pull request changes, a schedule or webhook fires, or a CI job fails, on a runner we host or on your own. It can open a pull request for a person to review, and every call it makes is on the run's timeline and inside the flow's budget.
Tool, inputs, matched rule, decision, approver, spend and outcome, in a hash-chained trail you can verify and export. CRA presets add SBOM evidence packs, which are evidence, not a certification.
Preloop is the open-source AI agent control plane. It combines an AI model gateway for cost and budgets, an MCP firewall for tool access, human approvals, runtime session observability, and audit trails in one self-hostable platform. Teams use it to govern Claude Code, Codex CLI, Cursor, Gemini CLI, OpenClaw, Hermes, OpenCode, and any MCP-compatible agent.
The Preloop CLI onboards Claude Code, Codex CLI, Cursor, Windsurf, Gemini CLI, OpenClaw, Hermes, OpenCode, Pi, DeepSeek Harness, Copilot CLI, VS Code with Copilot, Claude Desktop, Antigravity, and Devin. What Preloop governs differs per agent: tool calls for all of them, model traffic where the agent can route it, and live control for some. See the <a href="https://docs.preloop.ai/guide/cli/#support-levels">support levels</a>. Any other MCP client can connect to the Preloop MCP server with OAuth 2.1 and PKCE.
Install the Preloop CLI and run <code>preloop agents discover</code>. It inspects local configurations for Claude Code, Codex CLI, Cursor, Gemini CLI, OpenClaw, Hermes, OpenCode, and other MCP-compatible runtimes, read-only, and reports what each one supports. <code>preloop agents onboard</code> then imports the MCP servers and model metadata it can represent, mints a durable credential, backs up the existing config, and rewrites the agent to use Preloop-managed endpoints. No SDK. No agent code changes.
When a tool call matches an approval rule, Preloop notifies the right people in the mobile app, on a watch, in Slack, Mattermost, Microsoft Teams, Discord, by email, or through a webhook. The request shows the arguments, the context, and the rule that gated it. Approvers can approve, reject, or leave guidance. If nobody answers in time, the workflow's timeout decision applies: decline by default, or approve if an administrator chose that. An async mode lets long reviews finish without blocking the agent's transport.
Allowed actions pass through without a pause. Denied actions fail at once with a message the agent can act on. Actions that need approval wait for a person, or run in async mode so the agent polls for the decision instead of blocking.
Yes. The core is Apache-2.0 and self-hostable. Open-source Preloop includes several users, invitations and teams on one account, with no roles or access controls between them. Preloop Cloud (hosted) and Preloop Enterprise (self-hosted commercial) add roles, RBAC and team approval workflows, plus managed hosting or support plans. The CRA evidence presets are Apache presets, not an edition gate. Release assets carry signed SLSA build provenance.
Loop engineering means designing the loop that drives a coding agent (what starts it, how its work is checked, when it retries and when it stops) instead of prompting it by hand. Preloop is the control plane for those loops. A flow gives a loop its trigger, runner, budget and tool policy, holds risky calls for a person, and records every call the loop made. A loop you already built on Claude Code or Codex CLI can stay as it is: onboard the agent, and its tool calls and spend are governed the same way.
They are the same pattern at two scales. Loop engineering is the practice: you design one loop that drives an agent. A software factory is what you get when several loops are connected to your tracker and your CI, for example triage, implementation, review and release, each doing bounded work that a person signs off. In Preloop a flow is a loop, and flows wired to GitHub, GitLab, Bitbucket, Jira or Azure DevOps are the factory. Both belong to agentic engineering, the wider discipline of building software with agents while people stay accountable for the result. Every loop keeps its budget, its tool policy and its record. Read <a href="/blog/the-software-factory">The software factory</a> for how we run ours.
Preloop finds what is installed on the machines that run its CLI or runner: the agents, including ones nobody onboarded, and their skills, plugins, hooks and commands. You approve what you have vetted, approvals are pinned to content, and optional enforcement denies calls to unapproved skills and MCP servers. On Preloop Cloud and Preloop Enterprise an unapproved extension raises a finding, and provider bills are reconciled against gateway traffic to show spend that went around the gateway. Preloop does not scan your network or your browsers.
Model traffic goes through an OpenAI-, Anthropic- and Gemini-compatible gateway. Every request is attributed to the agent, flow, or API key that made it. Budgets have a soft and a hard limit, per account and per flow. When a provider reports the actual cost of a request, Preloop records that value over its own estimate. Usage it cannot price is labelled unpriced instead of $0.00. Cursor spend that bypasses the gateway can be imported from the Cursor usage CSV.
AI gateways route model traffic and track cost. Preloop does that too. It also governs tool calls through an MCP firewall, adds human approvals, and keeps one view of every runtime session and its audit trail. Preloop's gateway embeds the LiteLLM library for provider translation. See <a href="/vs/litellm">Preloop vs LiteLLM</a>, <a href="/vs/portkey">Preloop vs Portkey</a>, and <a href="/vs/agentgateway">Preloop vs agentgateway</a>.
Any action exposed through MCP or a built-in tool: deployments, shell commands, database operations, secret access, cloud provisioning, billing changes, ticket automation, internal APIs. Rules can inspect arguments and context, not just tool names, with CEL expressions.
Those products govern MCP tool access, and several now add a model gateway too. Preloop puts per-call human approvals, native action gates for coding agents, per-agent budgets, and a hash-chained runtime audit trail in the Apache-2.0 core, not behind an enterprise tier. See <a href="/vs/mintmcp">MintMCP</a>, <a href="/vs/lunar">Lunar.dev</a>, and <a href="/vs/runlayer">Runlayer</a>.
Preloop covers the same core jobs: runtime, gateway, identity, observability, and policy. It is open source, self-hostable, MCP-native, and vendor-neutral. You are not tied to AWS models or infrastructure. Run it in your own VPC or on-prem. See <a href="/vs/aws-agentcore">Preloop vs AWS Bedrock AgentCore</a>.
They do different jobs. A workflow engine runs the agents you build: retries, queues, schedules, and durable waits. Preloop governs the agents you run, including the ones you bought: model spend and budgets, tool policy, human approvals, and the audit trail. A task can route its model calls through the Preloop gateway with an environment variable, and a Preloop approval can complete a wait token through a webhook relay. See <a href="/vs/trigger-dev">Preloop vs Trigger.dev</a>.
Your MDM is the rollout channel: it deploys vendor settings and the Preloop CLI, and keeps users from switching them off. Preloop is the control layer those settings point at: per-call approvals, budgets, session timelines, and one policy across Claude Code, Codex, Cursor, and server-side agents. Discovery can run as an MDM job with a key scoped only to reporting. See <a href="/vs/jamf">Preloop vs Jamf AI Governance</a>.
Varonis protects the data AI can reach: classification, permissions, DLP, and Copilot exposure. Preloop governs what agents do, what they cost, and who approved it, open source and on your own infrastructure. Run them side by side and send Preloop's signed events to the same SIEM. See <a href="/vs/varonis-atlas">Preloop vs Varonis Atlas</a>.
Partly. Tool access policies, per-parameter CEL conditions, approval rules on risky calls, and redaction of sensitive fields in logs and notifications all limit what an injected instruction can do. Model content policies add deterministic prompt-injection heuristics, documented as best-effort; semantic detection is not built in. Content-safety firewalls such as Lakera or Llama Guard can run in front of Preloop. See <a href="/vs/zenity">Preloop vs Zenity</a>.
As operational evidence, not as a certification or legal advice. EU AI Act, <a href="https://eur-lex.europa.eu/eli/reg/2024/1689/oj">Regulation (EU) 2024/1689</a>: Preloop can pause a tool call for a person (Art. 14-style oversight) and keep session logs (Art. 12-style records). CRA, <a href="https://eur-lex.europa.eu/eli/reg/2024/2847/oj">Regulation (EU) 2024/2847</a>: Art. 14 reporting applies from 11 September 2026; Apache presets verify an SBOM your build produced and write result.json. DORA, <a href="https://eur-lex.europa.eu/eli/reg/2022/2554/oj">Regulation (EU) 2022/2554</a>: an ICT-action trail, not the register of information. NIS2, <a href="https://eur-lex.europa.eu/eli/dir/2022/2555/oj">Directive (EU) 2022/2555</a> Art. 21(2): approvals on agent paths into production and SBOM exploit checks. Details: <a href="/ai-act-readiness">EU AI Act</a>, <a href="/cra-readiness">CRA</a>, <a href="/dora">DORA</a>, <a href="/nis2">NIS2</a>.
On Preloop Cloud, we store your sessions to give you search, audit trails, cost reports and policy enforcement. We use them for nothing else: we do not train models on them, and we do not sell or share them. Self-hosted, your tool calls, model traffic and audit records stay in your network; the only thing sent to us is an optional daily version check, which <code>PRELOOP_DISABLE_TELEMETRY=true</code> or <code>DISABLE_VERSION_CHECK=true</code> turns off. Message content is stored with pattern redaction, or not at all if you turn content capture off, and retention is yours to set. Details: <a href="https://docs.preloop.ai/security/security-privacy/">Security & Privacy</a>.
Preloop is not a law firm. Nothing on this site is legal advice. Every regulation reference names the instrument and the article or date so you can check it against EUR-Lex yourself.
Start in one command Read the quickstart https://docs.preloop.ai/guide/quickstart/Per-agent spend and hard budgets on day one. Start with visibility only.
Add deny and approval rules where agents can deploy, touch production data, or spend money.
Keep the session trail and the SBOM evidence packs. Hand them to your reviewer. Not a certification.