---
title: "Documentation"
description: "Backstop puts budgets, a circuit breaker and concurrency limits on AI agents, in the process that calls them."
---

The library is also a set of ideas worth understanding, whether or not you
install it: what a hard limit actually is, what a circuit breaker is for, why a
queue is better than a rejection, and how much a guardrail is allowed to cost.

## Start here

| If you want to | Read |
|---|---|
| Stop a runaway agent in the next ten minutes | [Quickstart](/docs/quickstart) |
| Install it, including air-gapped | [Installing Backstop](/docs/install) |
| See what it does before you install it | [The built-in dashboard](/docs/dashboard) |
| Understand how it fits together | [Architecture](/docs/architecture) |

## How it works

- **[Architecture](/docs/architecture)** — the transport, the gate and the ledger,
  and why the request path looks the way it does.
- **[Dollar budgets](/docs/usd-budgets)** — a ceiling in money, priced from the
  model you actually call.
- **[The spend ledger](/docs/ledger)** — one priced, attributed record per
  completed request, and the charge-back export built on it.
- **[Runaway-spend detection](/docs/detection)** — four detectors that notice a
  spend pattern before it becomes an invoice.
- **[Concurrency and scale limits](/docs/concurrency)** — how many requests can be
  in flight, and what happens when there are more than that.

## Reference

- **[Compatibility matrix](/docs/compatibility)** — which SDK versions are
  supported, and what is not.
- **[SDK matrix](/docs/sdk-matrix)** — what CI actually proves, version by
  version.
- **[Framework adapters](/docs/frameworks)** — LangChain, LlamaIndex, CrewAI and
  the rest.

## Operations

- **[The built-in dashboard](/docs/dashboard)** — a dependency-free view of the
  process you are already running.
- **[Budget alerts](/docs/alerts)** — telling someone before the ceiling, not
  after.
- **[Benchmarks](/docs/benchmarks)** — how the overhead numbers are measured, and
  the conditions they were measured under.
- **[Benchmark results](/docs/benchmark-results-2026-10-20)** — the current
  committed snapshot.
- **[Threat model](/docs/threat-model)** — what Backstop trusts, what it does
  not, and where its limits are.

## The short version

```bash
pip install backstop-ai
backstop verify
```

`verify` runs a real wrap against a local mock transport, blocks a runaway
loop, and prints what it measured. No API key, no network, about thirty
seconds.
