# Introduction

> Limitry is the limits, credits and budgets layer for the software you build. One call before each costly request tells your code yes or no.

Limitry decides one thing for your code: may this happen? Give each of your users a limit, a budget or credits, like $2 of AI a month. For that $2, Limitry holds what each AI reply will probably cost, then charges what it actually cost. Two replies at once can’t overspend. Credits, API rate limits, exports and AI agents work the same way. Before each costly request, your code asks Limitry and gets a yes or a no back.

Limitry works inside the software you build, whether that’s a SaaS product, an internal system or custom software. Your code asks it before each costly request, then calls your providers directly.

A few words you’ll see throughout these docs:

* A **subject** is whoever acts in your software: one of your users, teams, API keys or AI agents. You choose the kinds and the ids.
* A **limit** is a rule, such as “a $2 AI budget a month for each of your users” or “60 requests a minute for each API key”.
* A **check** is the question your code asks. Limitry returns yes or no, with what’s left and when it resets.
* **Test and live** are the two sides of every workspace. You build in test, with a test key, and copy your limits to live when they work.

## What are you building?

Each of these guides takes one job from the first limit to the code around the costly request:

* [Limit AI spend per user](/docs/guides/limit-ai-spend/): each of your free users gets a $2 AI budget a month, charged at what each reply cost.
* [Sell prepaid credits](/docs/guides/prepaid-credits/): customers buy credits, and their whole team spends from one balance.
* [Budgets at several levels](/docs/guides/several-levels/): each tenant gets 1,000 credits a month, each team 100 and each user 10, all checked in one call.
* [Rate-limit your API’s customers](/docs/guides/api-rate-limits/): each customer’s key gets 60 requests in any minute and 1,000 in any hour.
* [Give AI agents a budget](/docs/guides/agent-budgets/): each of your agents may spend $5 a day on models and paid tools.
* [Cap jobs running at once](/docs/guides/jobs-at-once/): each workspace runs at most 3 exports at the same time.

## Where to start

* [Quickstart](/docs/quickstart/): a first limit and a first check, in about five minutes.
* [Add Limitry with your agent](/docs/agent-quickstart/): let Claude Code, Codex or another coding agent find the costly requests in your code and propose limits.
* [How Limitry works](/docs/how-it-works/): how Limitry decides, what happens under load, and what happens if Limitry is down.

Most of what you can do in the app, you can also do through the [API](/docs/authentication/), the [CLI](/docs/cli/) and the [MCP server](/docs/mcp/).
