Reference
Limits
Caps on steps, tokens, loops, files and requests, and which ones you can raise.
These limits stop a run that loops on a bad condition or keeps calling tools.
Per run
| Limit | Value | Change it |
|---|---|---|
| Step visits | 20 | Per run, with maxSteps in the SDK or max_steps in the API |
| Tokens | 200,000 | RUN_TOKEN_BUDGET when self-hosting |
| While iterations | 5 | On the While step |
A step visit is counted every time a step runs, so each pass around a loop counts again.
Per workflow
| Limit | Value |
|---|---|
| Uploaded files | 50 |
| Size per file | 1,000,000 characters |
Per account
| Limit | Value | Change it |
|---|---|---|
| MCP servers | 20 | |
| Generate, run and MCP calls | 20 per minute | AI_LIMIT_PER_MINUTE when self-hosting |
When a limit is reached
The run stops at the step where it hit the limit, and its record says why. Nothing after that step runs.