---
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](/backstop/docs/quickstart) |
| Install it, including air-gapped | [Installing Backstop](/backstop/docs/install) |
| See what it does before you install it | [The built-in dashboard](/backstop/docs/dashboard) |
| Run the live demo (instructor guide) | [The real-world demo](https://github.com/RavaniRoshan/backstop/blob/main/demos/real_world/demo.md) |
| Understand how it fits together | [Architecture](/backstop/docs/architecture) |

## How it works

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

## Reference

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

## Operations

- **[The built-in dashboard](/backstop/docs/dashboard)** — a dependency-free view of the
  process you are already running.
- **[Budget alerts](/backstop/docs/alerts)** — telling someone before the ceiling, not
  after.
- **[Benchmarks](/backstop/docs/benchmarks)** — how the overhead numbers are measured, and
  the conditions they were measured under.
- **[Benchmark results](/backstop/docs/benchmark-results-2026-10-20)** — the current
  committed snapshot.
- **[Threat model](/backstop/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.
