> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlegion.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set credit limits and prepare for live mode

> Budget agent runs per customer, diagnose a refused run and prepare a tested integration for live access.

## Decide what one task and one customer can spend

The organization has a credit pool for each mode. Its workspaces draw from that pool and operate within their own limits. Set `budget.run_credits` on the template for one run, and set a period or daily credit cap in `default_limits` for new workspaces. You can change a specific workspace's limits from your server using a key with `limits:write`.

The budget and caps are expressed in credits. Usage and receipts also expose `cost_micro` in millionths of a dollar. One credit equals 1,000 microdollars. A workspace reserves the run budget up front and releases the unused portion after the run. The organization's available balance can also move when credits are transferred into a workspace for later use.

| If you see… | Check… |
| - | - |
| A run waiting with `workspace_busy` | Other runs may be holding the credits it needs. It can start when those holds clear. |
| `cap_reached` | Read the reported limit, reset time when supplied, and `partner_message`. Check the workspace's caps and any agent-specific daily limit. |
| `credits_exhausted` | Check the organization's credit pool in the same mode as the request. |
| `run_budget_exhausted` | The run reached its own budget. Review the task and template budget before retrying. |

[Credits, reservations and usage fields](https://platform.openlegion.ai/docs/guides/money) · [Error reference](https://platform.openlegion.ai/docs/errors)

## Request live access

Start in test mode. Replace the demo session with real authentication before serving customers. An organization owner or admin can request live access from **Go live** in the Platform console once the following checks pass in test mode.

1. A public HTTPS connector passes **Test connection**.
2. A public HTTPS webhook endpoint acknowledges a test event.
3. Your own template has a promoted version.
4. That version sets a default daily or monthly spending limit.
5. A test key has been used, a test workspace exists and a run has finished.

Live access is reviewed. After approval, prepare a live deployment with its own server key, promoted template, connector and webhook endpoint. Configure the matching secrets on your host, verify delivery and fund the live pool before sending customer work. Keep test traffic on a separate deployment. The deployment guide covers both a linked Vercel project and other hosts. [Keys, team roles and the live deployment procedure](https://platform.openlegion.ai/docs/guides/keys-and-team)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.