
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A self-hostable AI agent control plane that offers an MCP firewall governing tool calls with policy, approvals and a model gateway with budgets and attribution.
Preloop is cataloged as an MCP server attributed to preloop. A self-hostable AI agent control plane that offers an MCP firewall governing tool calls with policy, approvals and a model gateway with budgets and attribution. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Preloop are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. Preloop's MCP firewall can hold tool calls for human approval, with approvals delivered via mobile, watch, Slack, Mattermost, email, webhook or the preloop approvals command.
Yes. The AI model gateway applies budgets and attribution, and cost can be broken down by model, agent, session, API key, flow and user.
README.md · dc6aeef588a3 · Fetched 2026-11-13 11:17:00 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
PreloopThe open-source AI agent control plane and software factory.
Preloop is one self-hostable service that sits between your AI agents and everything they reach, and runs agents for you when work arrives. Every tool call and every model call is governed, attributed and visible, whether a person started the agent or a ticket did. You see gateway spend by model, agent, session, API key and flow, and cap it with budgets. Imported Copilot usage is displayed separately as vendor-reported data.
It has two halves, and the same policies, budgets and session timeline apply to both:
Both halves are multi-user: invite colleagues and organize teams in Preloop (OSS). Each user can connect devices, runners and agents. Preloop (OSS) has no roles or access controls between users of an account; those are in Preloop Cloud and Preloop Enterprise.
Who it is for:
MCP clients connect to /mcp. See the tested MCP protocol matrix for modern discovery, legacy initialization, and SDK migration details.
Works with Claude Code, Codex CLI, OpenCode, Pi, Deepseek Harness, Hermes, OpenClaw, Cursor, Gemini CLI, Devin, Copilot CLI, and any MCP-compatible agent.
# 1. Install the CLI (macOS / Linux / WSL)
curl -fsSL https://preloop.ai/install/cli | sh
# Windows, native (PowerShell): irm https://preloop.ai/install/cli.ps1 | iex
# Details: docs/windows-cli.md
# 2. Connect it to a control plane
preloop signup # Preloop Cloud (fastest), or
preloop login --url http://localhost:3000 # your self-hosted instance
# 3. Bring local agents under governance
preloop agents discover
preloop agents discover finds local agent configs and reports what each adapter supports. preloop agents onboard configures them: calls routed through the managed MCP entry reach the MCP Firewall, supported model routes use the Gateway. To talk to a running agent, install the runtime plugin with preloop agents install-plugin (or preloop claude for Claude Code). Full walkthrough: onboard local agents.
Onboarding, the MCP firewall, human approvals, and cutting session cost. Recorded against a real stack, no slideware.
Jobs teams otherwise buy from several vendors, in one Apache 2.0 stack:
| Capability | What it does | Alternatives |
|---|---|---|
| MCP Firewall | Govern every tool call. Allow, deny, require approval, require justification. YAML + CEL. Connect OAuth MCP servers with automatic token refresh. | MintMCP, Lunar.dev MCPX, TrueFoundry |
| AI Model Gateway | OpenAI-, Anthropic- and Gemini-compatible. Budgets, allowed-model lists, token accounting, attribution. | Portkey, Helicone, LiteLLM, Kong AI |
| Flows | Start an agent when a tracker, webhook, or CI job fires, with the same firewall, approvals, and cost. preloop flow trigger. | Custom CI glue, AgentCore Runtime |
| Private runners | Run flow agents on your own machines over an outbound WebSocket, no inbound ports. | Self-managed CI runners |
| Agent Control | Talk to long-running agents from the console, phone, or watch. Steer runs with operator notes. | Terminal access |
| Cost & Budgets | Spend by model, agent, session, API key, flow, and user, including imported Copilot usage. | FinOps dashboards, vendor billing exports |
| Human Approvals | Mobile, watch, Slack, Mattermost, email, webhook, or preloop approvals. Native Bash/Edit. Agents can ask_user. | Custom Slack bots, Peta Desk |
| Runtime Observability | One session timeline: tool calls, model calls, policy, approvals, spend, outcomes, and synchronized recordings. | AgentOps, Langfuse, LangSmith |
| Fleet Map | People, devices, agents, models and observed work in one map. | Spreadsheets |
| Evidence packs | Apache flow presets write result.json plus an evidence directory for CRA / AI Act-style work. Not a certification. | Custom GRC folders |
AI Agent → Preloop → [Policy] → Allow / Deny / Require Approval → Execute
→ [Gateway] → Budget + attribution → Model
One loop, end to end: an issue event arrives from GitHub, GitLab, Bitbucket Cloud or Jira. A flow starts an agent in a hosted container or on your own runner. Every tool call it makes passes the same firewall and approvals as your own agents, and every model call is charged to the flow's budget. The agent opens a pull request; the Pull Request Reviewer reviews it; review or CI feedback resumes the implementation on the same branch, and the result is a pull request you can review. You can steer the run with an operator note at any point, and the whole run is one timeline.
21 presets ship in this repository, including:
Or write your own. Trigger from CI with the run-flow GitHub Action; run agents on private runners; let a flow start child flows with flow delegation. Tracker setup: Bitbucket and Jira quickstart; Bitbucket Data Center is available as an opt-in provider.
version: "1.0"
metadata:
name: "Production Safeguards"
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
Check a sample call before saving with Test this rule or Simulate in the console. Ship it with preloop policy apply <file> (validate / diff / export also exist).
Everything else: docs.preloop.ai.
The CLI is a client. It talks to a control plane: Preloop Cloud or a stack you run.
Cloud (fastest)
curl -fsSL https://preloop.ai/install/cli | sh
preloop signup
preloop agents discover
Self-host (Docker Compose, data stays on your machine)
curl -fsSL https://preloop.ai/install/oss | sh
curl -fsSL https://preloop.ai/install/cli | sh
preloop login --url http://localhost:3000
preloop agents discover
Console: http://localhost:3000. CLI login commands: CLI authentication. TLS, SMTP, upgrades and Kubernetes: Install the OSS stack, Helm chart helm/preloop, compatibility policy. Docker Compose and Helm are the supported install surfaces; this repository does not ship Terraform modules. The local upgrade acceptance harness verifies release-to-candidate migrations, data and credentials in disposable Compose and kind stacks.
Credential storage upgrades keep the existing encryption key and run as a normal rolling upgrade; read the credential storage upgrade guide before upgrading an existing installation.
Production self-host: SECRET_KEY is required or the app refuses to start, and the Helm chart refuses to install while environment.jwtSecret is empty or a placeholder (see helm/preloop/README.md). The development docker-compose.yml ships development-only credential defaults; override them with a .env file (start from .env.example). Telemetry is a daily pseudonymous version check-in; set PRELOOP_DISABLE_TELEMETRY=true to disable. Event list: SECURITY.md.
Same core jobs (runtime, gateway, identity, observability, policy), vendor-neutral and self-hostable. Full comparison: preloop.ai/vs/aws-agentcore.
| Preloop | AWS Bedrock AgentCore | |
|---|---|---|
| Open source (Apache 2.0) | Yes | No |
| Self-hostable (VPC / on-prem) | Yes | No |
| Policy-as-code (YAML + CEL) | Yes | Limited |
| MCP-native tool governance | Yes | Partial |
| Human approvals (mobile, Slack, webhook) | Yes | Limited |
Onboard existing local agents (preloop agents discover) | Yes | No |
Also compare: LiteLLM, Portkey, Helicone, MintMCP, Lunar, Runlayer, Zenity.
Unqualified Preloop is this repository (Apache 2.0, self-hosted). Preloop Cloud is the hosted service at preloop.ai. Preloop Enterprise is the commercial self-hosted edition. Cloud and Enterprise include support plans. Cloud billing owners can compare usage from the previous three completed months in Account settings before requesting a plan-change quote.
Your data: self-hosted, nothing leaves your network except the optional daily version check. On Preloop Cloud, sessions are stored only to give you search, audit trails, cost reports and policy enforcement; they are not used to train models and are not sold or shared. Details: Security & Privacy.
Governance itself is open source: every model provider, flows, private runners, session search, operator notes, the audit trail, single-approver workflows and budgets scoped to the account, a flow, an API key or a managed agent. What is commercial is the organizational layer on top:
| Feature | Preloop (OSS) | Preloop Cloud / Preloop Enterprise |
|---|---|---|
| Audit collection, query API, and console | Yes | Yes |
| Audit hash chain and verification, retention, legal holds, signed exports (Settings > Records) | Yes | Yes |
| Multiple users, invitations, teams and team membership | Yes | Yes |
| Membership offboarding with personal credential revocation and retained account automation | Yes | Yes |
| Per-user devices, runners and agents; basic approvals and usage views | Yes | Yes |
| Isolation between accounts | Yes | Yes |
| Roles, owner protection, RBAC/ABAC, resource access rules and sharing | No | Yes |
| Subaccounts, pooled billing, fleet findings | No | Yes |
| Single sign-on (OIDC, SAML), verified domains, IdP group mapping, SSO enforcement with owner break-glass | No | Yes |
| Governance reviews, advanced reporting | No | Yes |
| Budgets scoped to a user or a team, budget notification routing | No | Yes |
| Multi-approver routing, quorum, escalations | No | Yes |
Preloop (OSS) supports multiple users on one account, with no access controls between them: every user of an account can do everything in that account, including inviting and removing colleagues and managing teams. Accounts stay isolated from each other. Public signup, if enabled, creates a separate account. All access control (roles, owner protection, RBAC/ABAC) is in Preloop Cloud and Preloop Enterprise.
| If you need | Read |
|---|---|
| How the system fits together | ARCHITECTURE.md, then one chapter under docs/architecture/ |
| Commands, DB/CRUD rules, Lit frontend | AGENTS.md |
| PR process | CONTRIBUTING.md |
| Operator and client guides | docs.preloop.ai |
| Policy examples | backend/presets/ |
Discord for help, feedback, and the founder's build log.
See CONTRIBUTING.md. Maintainers: follow the protected-branch release process.
Apache License 2.0. Copyright (c) 2026 Spacecode AI Inc.
Release assets carry signed Sigstore build provenance and checksums (verification). The release SBOM audit gate checks both architectures of every release image and the tag's security workflows. Windows CLI notes: windows-cli.md, code signing policy. Free code signing provided by SignPath.io, certificate by SignPath Foundation.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Preloop from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/preloop)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.