← All guides

How to set a spending limit for Cursor & Claude Code

If you are a solo builder on a Cursor or Claude plan, you probably don’t have an admin API to pull usage from. Here’s a simple playbook that doesn’t require handing your login cookies to anyone.

Know which meter you’re on

A budget that works without Enterprise APIs

  1. Write down: plan price, reset date, and today’s remaining % (from the vendor UI).
  2. Daily burn ≈ (used so far) ÷ (days elapsed). Days-to-empty ≈ remaining ÷ daily burn.
  3. If days-to-empty < days until reset, cut speculative agent threads now.
  4. Set calendar reminders to check mid-cycle and again around 80% used, so you don’t find out you’re empty in the middle of a deploy.
Habits that stretch a $20-class plan: prefer cheaper default models for routine edits; start a new chat per task so context doesn’t compound; don’t paste entire repos when three files will do. These are workflow tips—not vendor guarantees.

What not to do

If you do have OpenAI API spend

Use official spend alerts plus optional hard limits. Alerts notify; hard limits 429 traffic. Guide: OpenAI Spend limits. Companion page: alerts vs hard limits.

Want a hosted alarm across tools?

SpendLens (Night Shift Labs) is on a waitlist — in development. Planned: connect OpenAI/Anthropic admin keys and/or upload CLI aggregates; email/Slack before you overshoot. Free local tools like ccusage and CodeBurn are excellent, so use them. SpendLens is aimed at the warning, not the history.

Join the waitlist

Not affiliated with Cursor, Anthropic, or OpenAI. Planned Solo $9 / Pro $19 — not charging yet.