Preloop

السجل الرسمي أدوات المطورين

Open-source AI agent control plane and software factory: govern every tool and model call.

ماذا يمكنك أن تفعل مع Preloop؟

  • Model providers: OpenAI, Anthropic, Google, Amazon Bedrock, Azure OpenAI, Alibaba Cloud Model Studio, DeepSeek, Mistral, Moonshot, Z.ai, Ope...
  • Restricted CI identity: a machine identity bound to one project and one flow for CI jobs. Guide.
  • Account kill switch: blocks gateway and tool traffic and stops managed flow runs, with audited recovery. Guide.
  • Session search: keyword search by default, semantic as an opt-in, every search audited. Saved searches.
  • DORA exports: the AI-agent slice of the ICT inventory and incident record. Guide.
  • OTLP export: off by default; emits OpenTelemetry GenAI spans. Guide.
  • Chat: Slack, Mattermost, and Discord for questions, approval votes and operator notes. Chat connections.
  • Event-driven employees: managed agents doing bounded tasks from tracker and error events. Guide.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http preloop 'https://preloop.ai/mcp/v1' --header 'Authorization: <Optional. Preloop access token as '\''Bearer <token>'\'' (from '\''preloop auth token'\''). OAuth-capable clients can omit it.>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "preloop": {
            "type": "http",
            "url": "https://preloop.ai/mcp/v1",
            "headers": {
                "Authorization": "<Optional. Preloop access token as 'Bearer <token>' (from 'preloop auth token'). OAuth-capable clients can omit it.>"
            }
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Preloop
  2. Your first five minutes
  3. Watch it work
  4. What you get
  5. The software factory
  6. Policy-as-code
  7. More capabilities
  8. Getting started
  9. Open-source alternative to AWS Bedrock AgentCore
  10. Editions
  11. Working in this repository
  12. Community
  13. Contributing
  14. License

Preloop

The 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:

  • Control plane. An MCP firewall that allows, denies or holds any tool call for human approval; an AI model gateway with budgets and attribution; policy-as-code in YAML and CEL; one runtime timeline per session.
  • Software factory. Flows run agents, in hosted containers or on your own runners, when GitHub, GitLab, Bitbucket Cloud, Jira, a webhook or a CI job fires. Presets review pull requests, implement issues, triage tickets, scan for vulnerabilities and collect evidence packs. A human can steer a running agent from the console, phone or watch, and the work lands as pull requests you can review.

Who it is for:

  • Platform and security teams that need agents governed before they reach production systems.
  • Engineering teams running coding agents that want to see the cost and keep an audit trail.
  • Teams that want tickets and events turned into bounded agent work they can review.

Works with OpenClaw, Claude Code, Codex CLI, Cursor, Gemini CLI, Hermes, OpenCode, Devin, Copilot CLI, and any MCP-compatible agent.

Your first five minutes

# 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.

Watch it work

Onboarding, the MCP firewall, human approvals, and cutting session cost. Recorded against a real stack, no slideware.

Watch the full playlist →

What you get

Jobs teams otherwise buy from several vendors, in one Apache 2.0 stack:

CapabilityWhat it doesAlternatives
MCP FirewallGovern every tool call. Allow, deny, require approval, require justification. YAML + CEL.MintMCP, Lunar.dev MCPX, TrueFoundry
AI Model GatewayOpenAI-, Anthropic- and Gemini-compatible. Budgets, allowed-model lists, token accounting, attribution.Portkey, Helicone, LiteLLM, Kong AI
FlowsStart 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 runnersRun flow agents on your own machines over an outbound WebSocket, no inbound ports.Self-managed CI runners
Agent ControlTalk to long-running agents from the console, phone, or watch. Steer runs with operator notes.Terminal access
Cost & BudgetsSpend by model, agent, session, API key, flow, and user, including imported Copilot usage.FinOps dashboards, vendor billing exports
Human ApprovalsMobile, watch, Slack, Mattermost, email, webhook, or preloop approvals. Native Bash/Edit. Agents can ask_user.Custom Slack bots, Peta Desk
Runtime ObservabilityOne session timeline: tool calls, model calls, policy, approvals, spend, outcomes.AgentOps, Langfuse, LangSmith
Fleet MapPeople, devices, agents, models and observed work in one map.Spreadsheets
Evidence packsApache 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

The software factory

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.

20 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.

Policy-as-code

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).

More capabilities

Everything else: docs.preloop.ai.

Getting started

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.

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.

Open-source alternative to AWS Bedrock AgentCore

Same core jobs (runtime, gateway, identity, observability, policy), vendor-neutral and self-hostable. Full comparison: preloop.ai/vs/aws-agentcore.

PreloopAWS Bedrock AgentCore
Open source (Apache 2.0)YesNo
Self-hostable (VPC / on-prem)YesNo
Policy-as-code (YAML + CEL)YesLimited
MCP-native tool governanceYesPartial
Human approvals (mobile, Slack, webhook)YesLimited
Onboard existing local agents (preloop agents discover)YesNo

Also compare: LiteLLM, Portkey, Helicone, MintMCP, Lunar, Runlayer, Zenity.

Editions

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:

FeatureOpen SourceCloud / Enterprise
Audit collection, query API, and consoleYesYes
Users, teams, and RBAC on one accountNoYes
Budgets scoped to a user or a team, budget notification routingNoYes
Multi-approver routing, quorum, escalationsNoYes

A self-hosted OSS instance is one operator per account. Public signup, if left on, creates a separate account, not a teammate. Enterprise licensing: sales@preloop.ai.

Working in this repository

If you needRead
How the system fits togetherARCHITECTURE.md, then one chapter under docs/architecture/
Commands, DB/CRUD rules, Lit frontendAGENTS.md
PR processCONTRIBUTING.md
Operator and client guidesdocs.preloop.ai
Policy examplesbackend/presets/

Community

Discord for help, feedback, and the founder's build log.

Contributing

See CONTRIBUTING.md. Maintainers: follow the protected-branch release process.

License

Apache License 2.0. Copyright (c) 2026 Spacecode AI Inc.

Release assets carry signed Sigstore build provenance and checksums (verification). Windows CLI notes: windows-cli.md, code signing policy. Free code signing provided by SignPath.io, certificate by SignPath Foundation.

الأسئلة الشائعة

ما هو Preloop؟

Open-source AI agent control plane and software factory: govern every tool and model call.

كيف أثبّت Preloop؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http preloop 'https://preloop.ai/mcp/v1' --header 'Authorization: <Optional. Preloop access token as '\''Bearer <token>'\'' (from '\''preloop auth token'\''). OAuth-capable clients can omit it.>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Preloop إلى مفتاح API؟

نعم. يتطلب Authorization، وتضبطها في إعداداته.

هل Preloop مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص Apache-2.0.

من يصون Preloop؟

ينشره preloop. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.