Skip to content

Subscription limits

GET
/api/agent-limits
Code sample: Shell / cURL
curl --request GET \
--url http://127.0.0.1:8004/api/agent-limits \
--header 'Authorization: Bearer <token>'

How much of each subscription limit Claude Code, Codex, and Antigravity accounts on the server have used, and when each resets. Agents using an API key, or not logged in, aren’t listed.

Each logged-in agent’s limits

Media typeapplication/json
Array<object>
object
agent
required
string
plan

As the CLI reports it, e.g. max or prolite.

string | null
updated_at
required

Unix seconds of the last successful read.

number format: double
limits
required
Array<object>
object
label
required
string
percent
required
number format: double
resets_at

Unix seconds.

number | null format: double
severity
required
string
Allowed values: normal warning critical

Example

[
{
"limits": [
{
"severity": "normal"
}
]
}
]

Missing or wrong access token

Media typetext/plain
string

The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)