SuperAPIAI Directory

preloop

github.com · AI agents

Preloop is an open-source, self-hostable AI agent control plane and software factory. It sits between AI agents and all the resources they access, governing, attributing, and visualizing every tool call and model call, and supports automatically running agents when events are triggered. Key features include: an MCP firewall (allow, deny, or suspend tool calls pending human approval), an AI model gateway with budgets and attribution, YAML and CEL policy as code, and a unified timeline per session; the software factory part supports flows triggered by GitHub, GitLab, Bitbucket, Jira, Webhook, or CI, running agents on managed containers or your own runners, with 21 built-in presets (such as PR review, issue implementation, ticket triage, security audit, etc.), and supports humans steering running agents from the console, phone, or watch. It supports multiple model providers and MCP-compatible agents, and provides a CLI tool and Docker Compose/Helm self-hosting options. The open-source edition is multi-user but has no role-based access control; access control features are available in the cloud and enterprise editions.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Preloop is an open-source, self-hostable AI agent control plane and software factory, licensed under Apache 2.0. It is designed to let platform and security teams govern agents before they touch production systems, help engineering teams see the cost of coding agents and retain an audit trail, and turn tickets and incidents into reviewable, bounded agent work.

Purpose

Preloop serves as a single service that sits between AI agents and everything they access, and governs, attributes, and provides visibility into every tool call and model call. Whether an agent is started by a person or triggered by a ticket, the same policies, budgets, and session timeline apply. It consists of two parts: the control plane and the software factory.

Key capabilities

Control plane

  • MCP firewall: Allow, deny, or suspend any tool call pending human approval.
  • AI model gateway: Provides budgets and attribution, allowing gateway spending to be viewed by model, agent, session, API key, and flow, and budget caps to be set. Imported Copilot usage is shown separately as vendor-reported data.
  • Policy as code: Write policies using YAML and CEL, which can be applied, validated, diffed, and exported via the CLI.
  • Unified timeline: One runtime timeline per session.

Software factory

  • Flow triggers: When triggered by GitHub, GitLab, Bitbucket Cloud, Jira, Webhook, or a CI job, flows run agents on managed containers or your own runners.
  • Built-in presets: 21 presets are provided in the repository, including issue triage assistant, issue refinement, pull request reviewer, delivery report, daily CI and QA review, automated issue implementation, security audit presets (SBOM verification, vulnerability check, release audit), component due diligence, architecture and policy review, repository code health review, standards compliance walkthrough, release retrospective, weekly model price review, and more.
  • Human steering: Humans can steer running agents from the console, phone, or watch, and work results land as reviewable pull requests.
  • Flow delegation: Flows can start sub-flows.
  • CI integration: Trigger from CI via the run-flow GitHub Action.

Other capabilities

  • Model providers: Supports OpenAI, Anthropic, Google, Amazon Bedrock, Azure OpenAI, Alibaba Cloud Model Studio, DeepSeek, Mistral, Moonshot, Z.ai, OpenRouter (with provider routing), any OpenAI-compatible endpoint, and local models for runner agents.
  • Restricted CI identity: a machine identity bound to one project and one flow, with optional read-only native GitHub App clone mode and separate result publishing.
  • Account kill switch: blocks gateway and tool traffic, stops managed flow runs, and has audited recovery.
  • Durable audit delivery: optional transactional intent for approvals, policy decisions, and tool results, with restart replay and backlog alerts.
  • Session search: keyword search by default, optional semantic search, every search audited.
  • DORA export: AI agent slice of ICT inventory and incident records.
  • OTLP export: off by default, emits OpenTelemetry GenAI spans.
  • Chat integrations: Slack, Mattermost, Discord, and Microsoft Teams (own bot, personal chat) for asking questions, opt-in flow runs, and interactive conversations, with answers returned to chat, approval voting, and operator notes.
  • Event-driven staff: managed agents execute bounded tasks from tracker and error events.
  • Remote sessions and deployment: remote sessions, SSH and GCP agent deployment, environments, and recovery.
  • Runtime plugins: runtime adapters such as Pi, DeepSeek Harness, Nanobot, OpenClaw, Hermes.

Usage

The Preloop CLI is the client and communicates with the control plane (Preloop Cloud or a self-hosted stack).

Quick start

  • Cloud (fastest): use Preloop Cloud.
  • Self-hosted (Docker Compose, data stays local): the console address is http://localhost:3000。CLI For login commands, see the CLI authentication documentation. For TLS, SMTP, upgrades, and Kubernetes support, see the Install OSS Stack documentation, the Helm chart (helm/preloop), and the compatibility policy. Docker Compose and Helm are the supported installation methods; this repository does not provide Terraform modules.

First five minutes

  • preloop agents discover Find local agent configurations and report what each adapter supports.
  • preloop agents onboard Start with tool governance. Calls through the Preloop MCP entry point reach the MCP firewall. Choose model spend control to send supported model traffic to the gateway. To talk to a running agent, use preloop agents install-plugin Install runtime plugins (or for Claude Code use preloop claude).
  • When the agent is configured as read-only (container or sandbox), onboarding prints the exact changes to apply and verifies them afterward.
  • Tool governance setup enables native approval hooks where supported. In scripts, use --governance-only to govern tools and approvals only, or use --approvals to enable hooks and control model spend. Recognized read operations require no human intervention unless a rule requires it.

Policy management

In the console, use "Test this rule" or "Simulate" to check sample calls before saving. Use preloop policy apply <file> to publish policies (validate, diff, and export are also available). The CLI resolves ${NAME}in policy string values from the local environment, including during --dry-run . Use --no-resolve-env Keep quoted literals; the server preserves them and returns warnings.

Compatible agents

Works with Claude Code, Codex CLI, OpenCode, Pi, Deepseek Harness, Hermes, OpenClaw, Cursor, Gemini CLI, Devin, Copilot CLI, and any MCP-compatible agent. MCP clients connect to /mcp.

When to use

  • Platform and security teams need governance before agents touch production systems.
  • Engineering teams run coding agents and want to see costs and keep an audit trail.
  • Teams want to turn tickets and incidents into reviewable, bounded agent work.

Limitations

  • Preloop (OSS) supports multiple users on one account, but there is no access control between users: every user of an account can perform all actions in that account, including inviting and removing colleagues and managing teams. Accounts are isolated from each other. Public registration (if enabled) creates separate accounts. All access control (roles, owner protection, RBAC/ABAC) is provided in Preloop Cloud and Preloop Enterprise.
  • Production self-hosting requires SECRET_KEY, otherwise the application refuses to start; the Helm chart refuses to install when environment.jwtSecret is empty or a placeholder. The development docker-compose.yml provides development-only credential defaults, which must be overridden with a .env file.
  • Telemetry is a daily pseudonymous version check; set PRELOOP_DISABLE_TELEMETRY=true to disable it.
  • When self-hosted, data stays local, except for the optional daily version check. On Preloop Cloud, sessions are used only to provide search, audit trails, cost reports, and policy enforcement; they are not used to train models, nor sold or shared.
  • The security audit preset collects machine evidence for CRA and EU AI Act-style reviews, but this does not constitute a compliance assessment, certification, or legal advice.
  • This repository does not provide Terraform modules.
  • For Claude Code fleet administrators, the extension limits export reviewed account plugin denials and marketplace policies as managed-settings direct replacements. Preview and registration do not prove installation; the Preloop pathDelivery by the agent vendor's management console remains unverified.

Getting and support

  • Documentation: docs.preloop.ai
  • Community: Discord
  • Contributing: see CONTRIBUTING.md
  • License: Apache License 2.0, Copyright (c) 2026 Spacecode AI Inc.
  • Release assets carry signed Sigstore build provenance and checksums.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools