# We run Hermes Agent with paid MCP servers (image, video and 3D generation, paid APIs) and sometimes turn on YOLO mode or approvals off. How do we declare what each tool costs and cap spending per chat, does YOLO or a trusted server skip that cap, and what happens in cron jobs where nobody can approve?

**Short answer:** Since Hermes Agent v0.23.0 (released November 5, 2026), an MCP server entry can declare tool_costs, a spend_limit per chat and a cost_unit label, in config.yaml or in a portable plugin package. The approval prompt then shows each call's cost and the chat's running total, and a costed call that would take the chat past the limit asks first, with only Allow Once or Deny, even on a trust: full server and even under YOLO or approvals.mode: off. Where nobody can answer (cron jobs, hermes chat -q, a gateway with no approver), the call is refused without running and the model is told not to retry. The limits are softer than they look, though. The total counts the figure the server declared, not what the vendor charged; it lives in memory, so restarting Hermes resets every total; a new chat starts a new total; and spend_limit: 0 turns the limit off. Treat it as a per-conversation brake, and keep a hard cap at the vendor or wallet too.

## Checklist
1. Upgrade to Hermes Agent v0.23.0 or later; tool costs and spend limits arrived in that release.
2. For each paid MCP server, set tool_costs (a number, a [min, max] range or {credits, note}), spend_limit (per chat; 0 or absent means no limit) and cost_unit (defaults to credits) under mcp_servers.<name> in config.yaml.
3. Use the server's own tool names in tool_costs, not Hermes' mcp_<server>_ display prefix; an unknown key only gets a warning at connect time.
4. Check the declaration loads: a malformed tool_costs, spend_limit or cost_unit skips the whole server with an error naming the key, and hermes plugins validate lists the server costs a package declares.
5. If you override a package's server with a same-name entry (for example to set trust: full), its costs and limit still apply unless your entry sets those keys. Don't set spend_limit: 0 there unless you mean to turn the limit off.
6. Expect the cap to ask even under YOLO and on trusted servers, and to refuse in cron jobs and hermes chat -q. Design scheduled jobs so a refused paid call ends the job cleanly.
7. Don't treat the Hermes total as the bill: set a hard spending limit with the vendor or wallet as well, because the total resets on restart and per chat.

## How do you declare tool costs and a per-chat spend limit for MCP servers in Hermes Agent?
- The Hermes MCP guide's Tool costs and spend limits section shows the shape: under mcp_servers.<name>, tool_costs maps each tool to a cost (create_image: 20, a range such as animate: {credits: [5, 20], note: per animation}, or 0 for free), spend_limit sets a budget per chat, with 0 or absent meaning no limit, and cost_unit is the label prompts use, credits unless you change it. A portable plugin package declares the same table with the keys costs, spend_limit and cost_unit for its server.
- Once declared, the approval prompt names the cost (Costs about 20 credits, or Costs 5-20 credits per animation) and, after the first paid call, the chat's running total and its limit. Hermes keeps that total per chat and per server, counting the declared figure, the top of a range, for every costed call it approved and started. Declined or blocked calls add nothing, and a call whose server dies before receiving it still counts, which errs toward asking sooner.

## Does Hermes Agent's YOLO mode skip the spend limit on paid MCP tools?
- Below the limit, a trust: full server runs costed tools without asking, while a trust: untrusted server already asks before every write-capable call and now shows the cost. A costed call that would take the chat past spend_limit asks first on any trust tier, and every further costed call in that chat asks again. That prompt offers only Allow Once and Deny, and an earlier Allow for this session or Always answer for the tool doesn't silence it.
- YOLO (/yolo, --yolo, HERMES_YOLO_MODE) and approvals.mode: off skip the untrusted-server prompt but not the spend limit. The pull request that made that change records the maintainer's reasoning: a spend limit is a budget the user declared, not a safety prompt. Where nobody can answer, such as a cron job, hermes chat -q or a gateway with no approver, the over-limit call isn't sent; the model gets a tool error naming the spend and the limit and telling it not to retry and to tell the user the limit was reached.

## What doesn't a Hermes Agent spend limit on paid MCP tools cover?
- It's a budget for one conversation, not the vendor's bill. The total counts what the server declared, so a declaration that's wrong or out of date gives a wrong total. It lives in memory: restarting Hermes resets every total, starting a new chat (/new in the CLI, a new Desktop chat) starts a new one, and each cron run has its own. On messaging platforms the total belongs to the chat, so it survives /new there, and it follows a conversation through context compression or /branch.
- So an agent that keeps starting fresh chats or cron runs, or a gateway that restarts, can spend the limit again each time. For money you can't afford to lose, put a hard cap where the charge happens: a spending limit or prepaid balance with the paid API, or a policy check the agent's payment step has to clear and can't change, with a record of each decision outside the chat.

## Ask Rightshold (free, no key)
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code (one-click setup: https://www.rightshold.com/start?ref=seo), then ask: "Our Hermes agent pays a 3D-generation API from its own credential. Set a spending policy on that credential: at most 2.00 USD per call and 25.00 USD per day, only at api.example-3d.com."

```json
{
  "tool": "set_spend_policy",
  "arguments": {
    "credential_id": "YOUR_AGENT_CREDENTIAL_ID",
    "currency": "USD",
    "per_tx_max_minor": 200,
    "daily_max_minor": 2500,
    "allowed_domains": [
      "api.example-3d.com"
    ]
  }
}
```
- Needs your owner account key. The policy replaces the previous one, and every version stays on the ledger. A delegated budget or intent-bound key is refused by set_spend_policy, so the agent can't raise its own cap.
- authorize_spend checks one proposed payment against the policy and the running daily total and returns a signed allow or deny, and the total doesn't reset when Hermes restarts or a new chat starts. It records decisions only and never moves money.
- Rightshold isn't connected to Hermes Agent, so the cap only works if the agent's payment step calls authorize_spend and obeys the answer.

_Rightshold isn't affiliated with Nous Research or Hermes Agent and can't see or control Hermes, its MCP servers or any vendor account. Hermes behavior is as the v0.23.0 release notes (November 5, 2026), the MCP guide, MCP config reference and security pages and pull requests 142470 and 143787 described it when read on November 27, 2026; it can change between releases. Not financial advice._

## Sources
- [Hermes Agent v0.23.0 release notes (price tags and spend limits for paid tools), November 5, 2026](https://github.com/NousResearch/hermes-agent/releases/tag/v0.23.0)
- [Hermes Agent docs: MCP guide, Tool costs and spend limits](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp)
- [Hermes Agent docs: MCP config reference](https://hermes-agent.nousresearch.com/docs/reference/mcp-config-reference)
- [Hermes Agent docs: Security (YOLO mode and approvals.mode)](https://hermes-agent.nousresearch.com/docs/user-guide/security)
- [Hermes Agent pull request 142470: MCP servers can declare tool costs and a per-chat spend limit](https://github.com/NousResearch/hermes-agent/pull/142470)
- [Hermes Agent pull request 143787: YOLO and approvals.mode off no longer prompt for untrusted MCP write calls; spend limits still ask](https://github.com/NousResearch/hermes-agent/pull/143787)

## Related
- [Setting a separate budget for each AI agent calling paid APIs](https://www.rightshold.com/answers/how-to-set-a-separate-budget-for-each-ai-agent-calling-paid-apis)
- [Enforcing AI agent payment caps at the execution boundary, not in the prompt](https://www.rightshold.com/answers/how-to-enforce-ai-agent-payment-caps-at-the-execution-boundary-not-in-the-prompt)
- [Can an AI agent raise its own spending limit?](https://www.rightshold.com/answers/can-an-ai-agent-raise-its-own-spending-limit-and-how-do-you-stop-it)
- [Alerting before an AI agent hits its spend cap](https://www.rightshold.com/answers/how-to-alert-when-an-ai-agent-approaches-its-spend-cap-before-the-hard-deny)

_Not legal advice. Updated 2026-11-27. JSON: https://www.rightshold.com/answers/how-do-hermes-agent-spend-limits-on-paid-mcp-tools-work-and-does-yolo-mode-skip-them.json_