# Cost ceilings

> AgentForge reads tokens and cost per agent from the local session records of the agent CLIs. A mission can carry runtime, dispatch-count, dollar and token ceilings, with separate daily and per-agent ceilings. When a ceiling is exceeded AgentForge pauses the mission: no new cards are assigned, agent terminals stay open and an agent turn already in progress is not interrupted.

- Canonical: https://www.zekfy.com/agentforge/features/cost-ceilings/
- Türkçe: https://www.zekfy.com/tr/agentforge/ozellikler/cost-ceilings/
- Last updated: 2026-12-04
- Capability: A mission pauses at its ceiling

## Ceilings: mission, day and agent

AgentForge applies ceilings at three levels. The [mission](https://www.zekfy.com/glossary/#mission) ceiling, the daily ceiling and the per-agent ceiling are set in dollars and tokens, with a default warning threshold at 80 percent of the ceiling. When a ceiling is exceeded AgentForge pauses the mission: no new cards are assigned, agent terminals stay open and an agent turn already in progress is not interrupted. Without a measurement, spend is not assumed to be zero and the ceiling is not silently disabled: after three consecutive failed measurements the mission is paused.

Budget events are written to the event log and, when configured, delivered to a Telegram, Discord, Slack or custom webhook channel.

## Guardrails and templates

A mission can carry a runtime limit, a total dispatch limit, a parked-card threshold, a dollar ceiling and a token ceiling. When one of the thresholds is exceeded AgentForge pauses the mission: no new cards are assigned and agent terminals stay open. A WIP limit sets how many cards can be in progress at once, and a round limit sets how many times a card can enter review.

A set of roles and limits is saved as a mission template under .forge/missions/ and applied to a later mission with one click.

## Features

The 3 features that make up this capability. Each is also listed in the overview of all features.

### Mission guardrails

A mission is given a runtime limit, a total dispatch count, a parked-card threshold and dollar and token ceilings. When one of the thresholds is exceeded AgentForge pauses the mission: no new cards are assigned and agent terminals stay open.

Listed under [Cost and control](https://www.zekfy.com/agentforge/features/#mission-guardrails)

### Daily and per-agent budgets

In addition to the mission ceiling, daily and per-agent ceilings are set in dollars and tokens; the default warning threshold is 80 percent, and the mission is paused when a ceiling is exceeded. Without a measurement, spend is not assumed to be zero: after three consecutive failed measurements the mission is paused.

Listed under [Cost and control](https://www.zekfy.com/agentforge/features/#daily-agent-budget)

### Switching account at a limit

The switch-account-at-a-limit setting is off by default; when it is on, a task agent that shows a limit message restarts with the next available account of the same engine and continues the card with a context capsule. The previous conversation is not guaranteed to continue as it was, and using more than one account is subject to the provider's terms of use.

Listed under [Missions, teams and roles](https://www.zekfy.com/agentforge/features/#account-auto-switch)

## Questions about Cost ceilings

### What happens to running agents when a cost ceiling is exceeded?

When a ceiling is exceeded AgentForge pauses the mission: the terminals of running agents stay open and an agent turn already in progress is not interrupted, but no new cards are assigned. Dispatch continues when the limit is raised or the user resumes. A warning is raised on the way to the ceiling, at 80 percent by default.

See also: [Swarm](https://www.zekfy.com/agentforge/features/swarm/), [Guardrail](https://www.zekfy.com/glossary/#guardrail)

### Why does Metrics show "cannot be measured" for an agent?

[Metrics](https://www.zekfy.com/agentforge/features/metrics/) shows "cannot be measured" instead of zero, with the reason, when it cannot match a usage record to a pane reliably. This happens when several panes of the same CLI are open in the same folder, when no record exists, or when the record format is not recognized. Usage is measured per agent, and matching a record to a pane involves no guessing; cost is an estimate, tokens multiplied by a per-model price.

See also: [Troubleshooting](https://www.zekfy.com/docs/troubleshooting/), [Agent integration over MCP: Claude Code, Codex and Gemini](https://www.zekfy.com/docs/agent-integration-mcp/)

## Related guides

- [First mission: from a command to a verified result](https://www.zekfy.com/docs/first-mission/): A step-by-step first mission in AgentForge: team setup, the Main Brain command, plan, dispatch, approvals, review, the evidence gate and closing report.
- [Troubleshooting](https://www.zekfy.com/docs/troubleshooting/): Common situations in AgentForge and what to do: MCP tools, profile arguments, shortcuts, agent browser error codes, token use and web mode start-up.

## Related feature pages

- [Metrics](https://www.zekfy.com/agentforge/features/metrics/): What each agent costs and produces
- [Swarm](https://www.zekfy.com/agentforge/features/swarm/): A team with a coordinator and reviewers

- Previous feature: [Approvals and hands-free mode](https://www.zekfy.com/agentforge/features/approvals/)
- Next feature: [Worktree isolation](https://www.zekfy.com/agentforge/features/worktree-isolation/)
- [All features](https://www.zekfy.com/agentforge/features/)
