Spend caps
What it does
xpumesh checks the hourly ceiling, per-launch cap and monthly cap before a launch. A missing price or cap means the launch is refused.
Why it matters
The same limits apply whether a person or an agent asks. A launch whose cap would take the month over its limit is refused.

How to use it
Check a launch request first. This command makes no writes and no provider calls:
xpumesh launch check 8xh100 --on-demand --max '$60/hr' --launch-cap 500When the request fits, use the same flags to launch:
xpumesh launch 8xh100 --on-demand --max '$60/hr' --launch-cap 500Limits today
- Local and hosted spend ledgers are separate; activity in one does not change the other ledger’s headroom.
- Local policy files are not tamper-proof against an agent running with the operator’s OS permissions.
- Built and tested offline against recorded provider responses. Live-provider testing is not done yet.
Source
xpumesh docs/safety-model.mdxpumesh docs/architecture.mdxpumesh crates/core/src/spend/gate.rsxpumesh crates/core/src/launch/monthly.rs
Other features
- Safe for agents: Agents use xpumesh tools without receiving cloud keys or raising caps.
- Ranked offers and fallback: Compare known offers, keep unknown results separate and try allowed candidates in order.
- Leases and teardown: Inspect a lease, release it explicitly and get deletion evidence after provider confirmation.
- One-line agent setup: Add the local MCP server to supported clients and check the configuration.
- Key custody: Self-hosted launches resolve provider keys from Vault; callers pass profile references.
- All features
- Where it’s going