Skip to content

Introduction

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.

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

  • Quickstart: a first limit and a first check, in about five minutes.
  • Add Limitry with your agent: let Claude Code, Codex or another coding agent find the costly requests in your code and propose limits.
  • How Limitry 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, the CLI and the MCP server.