chainloop-dev/chainloop
Agentic SDLC infrastructure. Define guardrails. Collect signals. Enforce continuously. Signed records of what your AI coding agents and CI/CD pipelines did, checked against policies as code, with the loop closed in CI/CD. AI sessions, SBOMs, VEX, SARIF and SLSA provenance, built on Sigstore and in-toto. Apache 2.0.
What Chainloop is
Chainloop is an open-source tool that tracks everything that happens during software delivery — from the first AI prompt to the final release — and turns it into one trusted record. You define once, in code, what "good" means (e.g., every release must have a security bill of materials, no secrets in prompts, tests must pass). Chainloop then enforces those rules everywhere: in every AI coding session, every CI pipeline, every pull request.
Every AI session, build, scan, test report, and SBOM becomes a signed, timestamped record stored in your own storage (like an OCI registry, S3, or Azure Blob). Each record is linked to the commit and release it belongs to. If a rule is broken, the pipeline fails and the agent or developer sees exactly which rule failed and why.
How it works
Chainloop sits on top of the tools you already use (SBOM generators, scanners, test suites, CI runners, coding agents). It works in three steps:
Define guardrails. You write a workflow contract that says what every session or pipeline run must produce. You also write policies (in Rego or WASM) that say what each record must satisfy — for example, "only approved AI models are allowed" or "every release must have an SBOM."
Collect signals. The
chainloopCLI records what happens. For AI coding sessions,chainloop tracecaptures the session on the developer's machine and attaches it ongit push. For CI jobs,chainloop attestationdoes the same for SBOMs, scans, test reports, and provenance. Every record is a signed, timestamped attestation stored in your own registry or bucket.Enforce continuously. Chainloop checks every record against the contract and its policies. If everything passes, the work ships. If something fails, the pipeline fails, the violations are signed into the record, and the agent that opened the pull request reads the failure and fixes it. The loop repeats until all gates pass.
Key features
- One set of rules for people, pipelines, and agents. No separate "AI governance" track — the same contract gates a Claude Code session and a Jenkins job.
- Rules are code, not prompts. Policies written in Rego or WASM give the same answer every time, and you can test them locally before they gate anything.
- Evidence you can hand to anyone. Every record is a signed attestation in your own storage, verifiable with standard tools. Enforcement produces the compliance evidence automatically, so nobody collects it by hand before an audit.
- Start report-only, then gate. Set
gate: falseon a policy to report violations without blocking. Setgate: trueto block. You can roll out a rule across every team without breaking anyone's push on day one.
Verification loops for AI agents
Chainloop puts the verifier outside the agent. A human writes the intent once (contract + policies). An agent does the work and opens a pull request. The pipeline runs chainloop attestation push, which runs every policy on the signed record. The job prints each failing policy and why, and fails on a gated violation. The agent reads the failure, fixes the work, and pushes again — looping until every gate passes. Every attempt, pass or fail, is a signed record.
The verifier is trustworthy because:
- Deterministic — policies are code, not model output.
- Outside the agent — the gate runs in the pipeline, and the agent cannot turn it off from inside a session.
- On evidence the agent cannot edit — every run is a signed attestation in your storage, with policy results signed into it.
- With the intent attached —
chainloop traceattests the ticket, doc, or approved plan the agent worked from, next to the session.
Who it's for
- Platform engineering — one place for evidence from all tools, on top of existing CI/CD. New requirements go in progressively, from report-only to gated.
- Security — one vulnerability threshold across scanners, required secret scans, signed attestations, and control gates in CI/CD.
- Compliance and risk — evidence collected as a side effect of building, policy results kept as signed records, SBOMs centralized and used. Fits regulated industries under CRA, DORA, or FedRAMP.
- Engineering leaders — visibility and control over AI agents: which models write code in which repos, what it costs, and policies on sessions.
- Developers — one CLI step that shows what the contract still expects, and AI coding sessions attested on
git push. No need to learn in-toto, Sigstore, or SLSA.
What's in the box
- AI session collector (
chainloop trace) — records Claude Code, OpenCode, Codex, and Cursor sessions, redacts secrets, and attests the session ongit push. Can block a push with no recorded session. - CLI (
chainloop) — one integration point for every major CI runner and 45 evidence types. Crafts, signs, and pushes attestations, and runs policies. - Trusted store — content-addressable storage for evidence, backed by OCI registry, S3, Azure Blob, or inline. Your storage, your keys.
- Signing — in-toto attestations, keyless by default, or your own cosign/KMS keys, or SignServer. Timestamped.
- Provenance graph — the control plane links sessions, commits, builds, and releases into one lineage, with organizations, projects, and workflows.
- Governance as code — workflow contracts declare what each job must produce. Rego and WASM policies run on every record.
- Integrations — Dependency-Track, GUAC, Slack, Discord, webhooks, SMTP, and a plugin SDK.
Getting started
Install the CLI and log in (free for 14 days on Chainloop Cloud, or self-host for free and unlimited). Then either:
- Collect signals from CI/CD — three lines in any job produce a signed attestation.
- Trace AI coding sessions — one command per repo installs git hooks that attest sessions on
git push.
Both use the same CLI and produce the same kind of record.
Chainloop is open source (Apache 2.0), self-hostable, and has been in production on critical infrastructure at highly regulated enterprises since 2024.
Related
- Project
- Project
- Project
- Project
- Project