railway usage limit commands support agent and workspace targets
Introduced 2026-07-08 · score 0.92
HOW TO USE IT
To inspect usage limits, run `railway usage limit status` for both types or add `--target agent|workspace` for one. To change a limit, specify `--target`; agent limits require `--hard` and accept cents, while workspace limits use whole dollars.
railway usage limit statusrailway usage limit status --target <agent|workspace>railway usage limit set --target agent --soft <DOLLARS> --hard <DOLLARS>WHY THIS HELPS
Inspect or change usage limits for an agent or workspace from a coding repository.
REQUIREMENTS AND LIMITATIONS
- Version: v5.26.0
- --target (required): Required for `set`; `agent` selects Railway Agent usage and `workspace` selects compute usage.
- --soft <DOLLARS>: Optional email alert. Agent accepts up to two decimal places; workspace accepts 0 or whole dollars from $5 to $500,000.
- --hard <DOLLARS> (required): Required for agent limits; agent accepts up to two decimal places and `0` blocks additional agent usage. Workspace accepts 0 or whole dollars from $10 to $500,000.
- Agent hard limit is required when setting agent limits.
- Agent `--hard 0` is allowed and blocks agent usage.
- Workspace limits preserve whole-dollar validation.
FIRST-PARTY EVIDENCE
- https://github.com/railwayapp/cli/releases/tag/v5.26.0
- https://github.com/railwayapp/cli/pull/1004
- https://docs.railway.com/cli/usage
Check the installed version and the source before using it. Entry JSON