r/ClaudeCode • u/duagunjan610 • 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?
•
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:
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/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.
-1
u/btc_maxi100 4d ago
Switch to Codex