> For the complete documentation index, see [llms.txt](https://docs.harmony.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.harmony.io/ai-agents/software-management/ai-usage-limits.md). Agents can also search and read this documentation through its [MCP server](https://docs.harmony.io/~gitbook/mcp).

# AI Usage Limits

Raise a person's Claude or Cursor spend limit when they need more usage, with approval, and put the previous limit back when the month or billing cycle ends.

The **AI Usage Limits** agent raises a person's Claude or Cursor spend limit when they run out of usage. It works out the new limit from a rule you set, asks for approval, applies the increase, and resolves the ticket. If you make increases temporary, it puts the previous limit back once the month or billing cycle ends.

### What it does

* Reads the person's current monthly limit and what they have spent so far
* Works out the new limit from the app's rule, never above the highest limit you allow. If the person asked for a higher amount, that amount is used instead, still capped at the highest limit
* Asks for approval - the person's manager by default
* Reads the limit again before applying it, and leaves it alone if it changed while the request waited
* Raises the limit and tells the person on the ticket
* Optionally puts the previous limit back when the month (Claude) or billing cycle (Cursor) ends
* For Claude, also answers the **Request more usage** requests members raise in claude.ai

A person whose limit is $0 is raised to the highest limit, or to the amount the rule adds, rather than multiplied from zero.

The agent hands the ticket to your IT team when:

* The person isn't a member of the app, or the app shows no spend limit for them
* They are already at the highest limit
* Nobody answers the approval in time
* The limit changed while the request waited for approval

### Triggers

* **Event** - Runs when someone's request for more Claude or Cursor usage is routed to the agent
* **Schedule (hourly)** - Picks up new **Request more usage** requests from claude.ai, opens a ticket for each one, and handles it like any other request
* **Schedule (daily)** - When increases are temporary, puts each person's previous limit back once the month or billing cycle the increase was for has ended

The agent raises the limit of the person who asked. It does not raise a limit on someone else's behalf, and it does not change an organization-wide limit.

### Before you start: permissions

The agent changes spend limits through each app's admin API, so each connection needs a key that can write them.

| App        | Plan                                            | Key                                                                                                                                                       | Created by                                                                               |
| ---------- | ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| **Claude** | Claude Enterprise, with usage credits turned on | An Enterprise key (`sk-ant-api01-...`) with the `read:spend_limits` and `write:spend_limits` scopes, connected with the **Enterprise Analytics** key type | The organization's **primary owner**, in claude.ai > **Organization settings** > **API** |
| **Cursor** | Cursor Enterprise                               | A Team Admin API key (`crsr_...`) with the `admin:*` scope                                                                                                | A Cursor team admin, in **cursor.com/dashboard** > **API Keys**                          |

{% hint style="warning" %}
**Already connected?** Claude fixes a key's scopes when the key is created, and Harmony doesn't let you change the key of an existing connection. If your current Claude or Cursor key lacks the scopes above, create a new key that has them, add it as a new connection in **Settings** > **Integrations**, and pick that connection in the agent's settings. For Claude, give the new key `read:analytics` as well so usage keeps syncing, then disconnect the old connection.
{% endhint %}

See [Claude](https://github.com/harmonyso/public-docs/tree/main/integrations/claude.md) and [Cursor](https://github.com/harmonyso/public-docs/tree/main/integrations/cursor.md) for the full connection steps.

### Configuration

#### Connections

Turn on the Claude or Cursor connection the agent should use - one connection per app. For each, click **Edit** to set:

* **How** - how the limit grows: **Multiply it** (default ×2), **Add a percentage**, or **Add an amount**
* **Raise by** - the multiplier, percentage or amount
* **Highest limit** - the agent never sets a limit above this. Defaults: 500 for Claude, in your organization's billing currency, and $200 for Cursor

For Claude you can also turn on **Answer requests made in claude.ai** so the agent picks up members' **Request more usage** requests every hour. Choose where those tickets are created, and turn on **Email the member too** to have Anthropic email the member about the outcome as well.

#### Approval

**Require approval** is on by default, with the person's manager as approver. Under **Who approves**, set approvers, rounds and how long to wait before the ticket is handed to IT (3 days by default).

#### Increases

**Temporary** is on by default: an increase lasts until the end of the month for Claude, or the billing cycle for Cursor, and the agent then puts the previous limit back. Turn it off to keep increases.

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Working with AI Agents</strong></td><td>Learn how to run and monitor agents</td><td><a href="https://docs.harmony.io/ai-agents/getting-started/working-with-ai-agents.md">Working with AI Agents</a></td></tr><tr><td><strong>Configuring AI Agents</strong></td><td>Configure approvals and notifications</td><td><a href="https://docs.harmony.io/ai-agents/getting-started/configuring-ai-agents.md">Configuring AI Agents</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.harmony.io/ai-agents/software-management/ai-usage-limits.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
