Quota & Pricing
This document explains how local CLI quotas and server rate limits work, and how they differ.
Two Separate Systems
1) CLI Local Quota (Per Machine)
The CLI enforces a local daily request limit and persists usage on the machine.
Limits (CLI):
- Unauthenticated: 10 requests/day
- Authenticated (API key): 40 requests/day
Where this lives:
- Stored locally by the CLI (per machine)
- Reset at UTC midnight
- You can check status with
vulnera quota
Commands:
vulnera auth status
vulnera quota
vulnera quota sync
Notes:
- The CLI quota is a local guardrail and can be synced with server state if the server is reachable.
- Offline mode uses local quota only.
2) Server Rate Limits (API)
The server enforces tiered rate limits and token costs per request. This is authoritative for hosted/self-hosted API usage.
Default tiers (from config/default.toml):
- API key: 100 req/min, 2000 req/hour, burst 20
- Authenticated (cookie): 60 req/min, 1000 req/hour, burst 10
- Anonymous: 10 req/min, 100 req/hour, burst 5
- Org bonus: +20% to tier limits
Token cost weights (per request, from config/default.toml):
get= 1 (read operations)post= 2 (write operations: POST, PUT, DELETE)analysis= 3llm= 6
These costs apply to the server-side rate limiter, not the CLI local tracker.
Practical Examples
CLI (Local)
vulnera analyze .→ consumes 1 local requestvulnera deps .→ consumes 1 local request + server usage
Server (API)
POST /api/v1/analyze/job→ costanalysis = 3POST /api/v1/llm/explain→ costllm = 6GET /api/v1/quota→ costget = 1
How to Check Usage
CLI (Local)
vulnera quota
Server (API)
curl http://localhost:3000/api/v1/quota \
-H "X-API-Key: <your_api_key>"
Self-hosted only. The
api.vulnera.studioSaaS is not currently operational. Adjust the host to match your deployment (e.g.,http://localhost:3000for local dev).
Configuration (Self-Hosted Server)
Server limits live in config/default.toml or your custom config file:
server.rate_limit.tiers.*for rate tiers (api_key, authenticated, anonymous)server.rate_limit.costs.*for request cost weights (get, post, analysis, llm)server.rate_limit.tiers.org_bonus_percentfor organization limit bonuses
Override with environment variables using the VULNERA__ prefix (e.g., VULNERA__SERVER__RATE_LIMIT__TIERS__API_KEY__REQUESTS_PER_MINUTE=200).
Guidance
- Use the CLI locally for offline modules (SAST, Secrets, API).
- Use server-backed analysis for dependency scanning and LLM features.
- Batch LLM enrichment to reduce total cost.
Troubleshooting
Local CLI says quota exceeded
- Wait for UTC reset or authenticate for 40/day
- Use
vulnera auth loginandvulnera quota
Server returns 429
- You’ve exceeded the configured server tier limits
- Reduce request volume or increase limits in server config