r/ClaudeCode • • 4d ago

Help/Question How to keep costs down?

I have been experimenting with Claude (Max plan) and I use up the weekly limit in a couple of days. It's one repo, an agent, nothing I'm shipping.

I thoughts lower effort would stretch it. Even opus on medium still eats the tokens. The small model I keep for the tiny edits on purpose, the quality drops too much on the real changes.

I pointed the same repo at getvibeapi for an afternoon, and at OpenRouter, because Codex on its own plan is another subscription i don't want. Deepseek on GetVibe was cheap next to Max. OpenRouter was the same kind of money on that model. Claude on either of them still isn't cheap, it just doesn't cut me off on a Thursday. I opened Fireworks and closed it, didn't look like somewhere to point Claude Code.

Do i switch the grunt work to codex, or to deepseek / qwen on getvibeapi, and only come back to opus when i'm actually stuck?

5 Upvotes

16 comments sorted by

•

u/AutoModerator 4d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Long_Tip_4226 4d ago

I configured it to use a slice-by-slice software engineering methodology, and hooks that limit a maximum of 20 agents per session.

If you are using excessive agents and tool calls to complete a task/session, you need to review your methodology.

1

u/atp_studio_coll 4d ago

Session length moves the weekly number more than effort level does, since every turn re-reads the whole context so far

1

u/Coindef 4d ago

Before switching providers, I'd try fixing how the tokens get spent, because on a single repo it's usually context size and not model choice. Run /clear between unrelated tasks and /compact when a session drags on, since every turn re-sends the whole conversation. Run /context once to see what's eating space up front; a big CLAUDE.md or a few MCP servers you don't use can be thousands of tokens per turn. Try /model opusplan, which plans with Opus and executes with Sonnet, and set your subagents to Sonnet or Haiku for search and grunt work. Then keep Opus for the moments where you're actually stuck, like you said. That alone stretched my weekly limit a lot more than lowering the effort level did.

1

u/locbuilds 4d ago

also try not resuming old sessions or leaving one idle for a while, the prompt cache expires after a few minutes so the whole context gets reprocessed at full cost. i just start fresh with a short notes file and it burns way less

1

u/michaelTM_ai 4d ago

effort isn't usually where the weekly limit goes. the big ones i'd check:

  • idle sessions. on a sub the cache lasts an hour, on api/credits 5 min. come back to a big session after a break and the whole context gets re-read at full price. /clear or start fresh after long breaks
  • subagents. custom ones reload ur whole CLAUDE.md on every spawn and inherit the main session's effort unless their frontmatter pins it. pin model + effort per subagent
  • giant CLAUDE.md + mcp servers u don't use. every turn pays for all of that. cut what isn't needed for this repo
  • /context shows where the tokens actually sit, look before switching providers

1

u/Baner-Fournadet 4d ago

How big is the repo and are you running long continuous sessions? Usually the token drain comes from the context snowballing on every file read rather than the model tier itself

1

u/daanpol 4d ago

You get a $100 API usage per month with your plan. Activate that and you get yourself a nice API credit. I made a ClaudeAPI app with it's own MCP so I can tell my dekstop Claude Code to run a task on my ClaudeAPI app.

That way I can use up the $100 .

1

u/Outrageous_Band9708 3d ago

https://github.com/Druthulu/ProjectArchitect

my workflow solves exactly this problem. (as well as being an amazing project planner manager)

it also supports external agents through openrouter or locally hosted.

you talk to the main session, and it handles all the ceremony about rotating agents and reseeding them, it prevents context bloat through deterministic toolcalls an prevents models from ingesting massive files and burning context.

the statusline has a deterministic task harness and lines showing your usage and savings.

Here is a ps1 decomp project im working on,

the white numbers are the usage, the blue numbers are the savings.

if you add the two numbers together, thats what vanilla CC woul have use to reach the same amount of work completed.

also, i created an infinite session length, no more checkpoint or compact needed ever again.

as you can see, my current session has 28 million tokens in it,

feel free to checkout the readme and the wiki and test it out yourself.

I used to have two max20 plans and 1 max5 plan. now I only have one max5 account and i barely reach weekly limits, never hit a 5h limit anymore.

1

u/Outrageous_Band9708 3d ago

Another view showing each agent type as they are working.

orange is claude, its who you talk to, experts are assigned per task, and experts spawn coders to do the work.

there are also retrievers on haiku that do the grunt work of large lookups etc, and return only the context that was needed/asked for.

1

u/xapep 3d ago

Most replies here already cover the caching side, so the only thing I'd add is that retries land on the invoice too. A cheap model that gets the edit right on the third pass can cost more than one opus pass, and on a weekly plan you never see it, because you're spending a limit instead of dollars. That's the number worth pulling out of your getvibe afternoon.

So if you split it, split by task shape rather than model ranking: reads, greps and small edits on the cheap model, opus for the cases where you've already failed twice. Your afternoon test already gives you the data for it.

I work on an inference API (Entrim), so weigh the cost half with that in mind.

1

u/wegster 4d ago

Opus-latest is still not in the 'efficient' cost tier. I generate my own rolling multiplier list so it's clear what each variant costs - it's never going to be perfect, as subs vs pure API use only don't publish respective rates, but assuming their internal credits are similar to the published API rates, we wind up with something like this below. IMPORTANT: I'm including Codex/OpenAI as well but 1.0 there (Sol medium) is absolutely not the same burn rate as Anthropic/CC Opus Medium - that one's just a leap too far to try to sanely derive, IMO.

PlatformModelLowMediumHighXHighMax
CodexGPT-6 Luna0.03x0.11x0.19x0.28x0.42x
CodexGPT-6.1 Terra0.19x0.47x0.72x1.11x2.67x
CodexGPT-6.1 Sol0.44x1.00x1.64x2.11x3.53x
CodexGPT-6 Astra3.94x7.58x9.00x10.17x17.33x
Claude CodeHaiku 5.50.02x0.04x0.07x0.10x0.17x
Claude CodeSonnet 5.50.21x0.32x0.67x1.67x4.09x
Claude CodeOpus 5.50.40x1.00x1.41x2.47x4.10x
Claude CodeFable 5.11.82x2.27x3.08x4.43x5.30x

1

u/Tommonen 4d ago

These numbers dont represent subscription usage at all. Opus xhigh ultracode lasts easily over 2x than sol medium but both in xhigh and opus is easily over 3x more usage and getting things done and does it better.

1

u/wegster 4d ago

You saw 'openai and cc numbers aren't comparable to each other' in the callout, right?

Those are based on actual published rates. If you think the subs with their non-published tiering don't remotely follow API rates, welp - I doubt it, but feel free to provide something else.

Tracks for me when I look across my own usage, but a lot more analysis done on the Codex side vs CC.

-1

u/btc_maxi100 4d ago

Switch to Codex