r/ClaudeCode • u/Sad_Tumbleweed2524 • 3d ago
Help/Question Considering self-hosted LLMs as an alternative to Claude
I've been using Claude for about a year and a half, mostly on the highest subscription tier, and I'm still a paying subscriber.
I'm a network and systems engineer, and Claude has become an essential part of my daily workflow. I'm extremely satisfied with its performance.
However, after seeing the recent reports of account bans and suspensions, particularly the apparent lack of effective support in many of these cases, I've started reconsidering my dependence on the service.
Anthropic is a massive company. Losing my subscription probably means nothing to them, but losing access to Claude could seriously disrupt my work. That's an imbalance I'm becoming increasingly uncomfortable with.
I'm not interested in arguing about whether these bans are justified or not. My concern is business continuity. I don't want my ability to work to depend on a decision made by a company that I might not even be able to reach if something goes wrong.
I'm now considering experimenting with self-hosted LLMs. I'd rather rent a GPU server than invest in my own hardware, but I'm curious about how financially viable this would be and what level of performance I could realistically achieve compared to Claude, especially for complex and diverse technical tasks.
I'm in no rush to leave Claude, but I'd rather explore alternatives now, while I still have access, than be forced to find one overnight.
I'd appreciate hearing from anyone who has taken a similar route, particularly regarding hosting costs, model capabilities, and whether the experience is good enough for heavy daily professional use.
•
u/AutoModerator 3d 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.
55
u/ARKyal03 3d ago
Not viable as of today. Open-weight models aren't as good as Opus. Although Kimi exists, it's extremely resource-intensive to host. We're just not there yet.
If you're considering investing a significant amount of money in something like a DGX Spark, a Mac Studio, or a set of NVIDIA GPUs, you might want to consider running smaller models, such as some of the Qwen models, or even MiniMax with four RTX 5090s lol.
6
u/Sad_Tumbleweed2524 3d ago
I think some people are looking at this as a subscription problem when I'm trying to discuss something much bigger.
In just a few years, AI went from being an interesting technology to something hundreds of millions of people use. We reorganized our workflows, built businesses around it, raised our productivity expectations, and changed what we consider a reasonable amount of work to accomplish in a day.
Nobody forced us to do any of that. Competition did. The moment someone could deliver in two hours what previously took two days, everyone else had to reconsider how they worked.
That's the peculiar thing about AI adoption. Your decision to use it may be voluntary, but the decision of millions of others to use it gradually makes yours less so.
Meanwhile, the companies providing these services have acquired an extraordinary amount of power without assuming any corresponding responsibility toward the people whose livelihoods increasingly depend on them.
They can change their prices, reduce their limits, rewrite their policies, restrict entire countries, or terminate accounts. A company can lose a thousand subscribers without anyone in its boardroom noticing. For some of those subscribers, however, losing access could have serious professional consequences.
And no, this isn't about Claude specifically. Replacing Claude with OpenAI today and OpenAI with Google tomorrow doesn't change the nature of that relationship.
What concerns me is that we're still at the beginning of this transformation. Imagine how much bargaining power users will have five or ten years from now, when entire industries have been reorganized around AI and working without it becomes economically impractical.
Companies don't need to make it impossible for us to leave. They only need the cost of leaving to become greater than the cost of accepting whatever conditions they impose.
We are discussing whether $200 a month is good value. Perhaps we should also be discussing what happens when we can no longer afford to say no.
9
u/jastice 3d ago
Build your workflows and especially the data storage separately from the model provider's tools. If you lose access to your preferred provider, simply swap the model or harness. The results may be different, maybe a little worse, but you will be able to continue working with minimal disruption.
Data storage layer: For anything non-massive, I simply check it into git. Easy to replicate across multiple hosted services ass well as your own infrastructure, including locally. I use the same workflow, skills, data with multiple models and harnesses - Claude, Codex, Gemini are all top tier currently, so there is little risk of being locked out totally. Fallback to open models remains available.
I'd be curious where you see the lockout risk, given that models themselves are mostly interchangeable?
8
u/BunnySprinkles69 3d ago
Openrouter
6
u/mother_a_god 3d ago
We are so spoiled by frontier models. The open weight models are 9 months behind, which means they are very capable, and with a good harness can do good work, but opus 5.5 (and astra) are so capable, anythng less seems frustrating at first.
2
u/Roxbros 3d ago
It really depends what you are doing. Nothing open weight can compete with the frontiers. However things like Kimi k3 pro is pretty close. My advice to you would be to use something like openrouter with opencode, this can replace the Claude code interface and you can see how different api models work around your workflow. Give it a week or so try Kimi, try qwen 3.8 flash etc you may find you don’t need a huge frontier model for the work you actually do.
Hell I bet you could ask Claude based on the last few weeks work what open weight model it would recommend you use.
Let’s say you have your 200 usd subscription. See how much gpu server rental you can get for that based on the hours you need it. And ask Claude to tell you the best model to use in that compute size to cover your wor
5
u/JacksReditAccount 3d ago
Check out the YouTube channel ‘no place like localhost’ he does a ton of stuff with local models and talks about his hardware setup.
2
u/dghah 3d ago
If your comparison is financial or ROI based than this is a flat out "no" right now. HOwever if you are serious about your other concerns like a hedge against being locked out of a frontier system -AND- you have money to spend then the path you are talking about is viable and getting better every day
The blunt truth is that a good local LLM rig will cost you the equiv or more of a decade or even several decades of subscription to an anthropic frontier model so if you are only concerned about ROI than it does not make sense.
However ..
I'm a cloud/HPC/network/infra engineer who mostly works in ansible, terraform,bash and python.
I've also been nailed repeatedly by the anthropic biosafety classifiers because my day job involves installing, working on or fixing scientific software on large HPC clusters. There was a period a few months ago where Anthropic would kick me out of a session due to the biosafety classifier seeing the words "computational chemistry" in a repo or even seeing the URL for a cryoEM microscopy analysis suite called cryoSPARC -- just the existance of a cryoSPARC URL in an ansible playbook variable definition tripped the biosafety alarm. This is one of the reasons I'm looking at localLLM as a fallback.
All that said though -- opus-5-5 is my daily driver with fable used as an adversarial reviewer when needed.
I also have an expensive local LLM setup:
- M4Pro mac mini 64GB unified memory
- M5Ultra mac studio 256GB unified memory
- M5Ultra mac studio 512GB unified memory
The 2 studios are clustered via RDMA over thunderbolt-5 as well. All three are on a 10gig ethernet fabric. All in all I've put a bunch of money into this setup. I've also built a real set of workload benchmarks and agent tests that simulate my real day job workload that i constantly run against new models and as regression tests when something else upgrades.
The workload tests ranges from building super complicated AWS IAM policies that must fit wtithin the 3000 char policy limit up through ansible development and agentic code fixes in response to following a written code audit report. For every 100 hours of compute/inference i get out of this setup I probably spend 120 hours running benchmarks and re-running tasks to look for regressions after config or upgrade changes
To be honest the 256GB studio can get near opus-quality on 4 of my 5 main types of infra and cloud engineerig work but it does it anywhere from 10-20x slower than opus-5-5 and there are a few types of tasks all local models on all my hardware up to the 512GB studio tend to 100% fail at.
I still use anthropic models to score my local benchmarks and opus-5-5 even runs my harness config, server config and benchark process for me.
My advice
- Keep anthropic
- Start small with your local LLM investments/renting/testig
- Let anthropic models guide your local testing and eval plan and process
- Build and test with benchmarks that are realistic for you; all the "token/sec" numbers posted here are just guidance relative to how you and you alone need to use a local model
2
u/wurst_katastrophe 3d ago
Using GLM-5.3 flash and deepseek 4.1 flash, very capable models, remind me of Opus 4.8.
2
u/RandomCSThrowaway01 3d ago edited 3d ago
GLM5.3 Flash is imho a minimum for full level agentic coding and it requires at a minimum $10000 256GB Mac Studio M5. 512GB variant (or 2x 256GB) can run you V4.1 Flash at alright speeds or a full GLM 5.3 (and soon 5.4).
For now the best coding model you can host at home with a regular setup is Qwen 3.8 Next through Strata or equivalent. It takes 64GB RAM + 16GB VRAM to run at decent speeds and at least DeepSWE was showing scores comparable to Sonnet 5 (but it's benchmaxxed, in my experience it's not nearly as good). It's worth experimenting with since it's cheap and highly capable given it runs on a typical desktop and might be worth including as a permanent addition to your home setup.
https://www.hetzner.com/dedicated-rootserver/matrix-gpu/
GEX430 has 4x RTX Pro 6000 Blackwell for a nice and comfy 3600€ a month. That's 384GB VRAM aka you can fit GLM 5.3 at Q4. Whether it's good enough... well...
Either way - the first thing you should do is spend $50, put it on OpenRouter, install OpenCode and point it at it. Then you can choose any model you want and see how well it runs your workloads.
In general exploring alternatives like Mistral 4 Large, Qwen 4 Max, GLM 5.4 (should be open weights in few weeks) is worth it. They are highly capable models and prices can be quite attractive (overall comparable with Anthropic subscription in some cases). But self hosting is a problem. Whereas renting GPUs is even more of a problem because bills go into thousands for anything useful.
Revolut has replaced its subscriptions with self-hosted GLM5.3 + 256k context and they are saying it saves them time and money. I can believe it (except they pay API rates which are around 20x higher than subscription), it's a decent model (Anthropic itself was advertising it as almost as good as Mythos). But upfront costs are at least $20000 to have workable speeds. And it's not Opus 5.5, not even close.
2
u/CCodeSI 3d ago
For business continuity specifically, self-hosting answers a harder question than the one you're asking. The risk you describe is one vendor being able to switch off your workflow. You can remove that risk without matching Opus on your own GPUs:
And a fire drill: once a month, do a day's work on the fallback. You find out what breaks while it's a choice rather than an emergency.
2
u/Ecstatic_Mode_5142 3d ago
I’m in an identical situation to you. Do you what I did? I asked Claude.
It talked me through setting up an alternative using a rented 4090 or 5090 on vast.ai and tools like ComfyUI, models from Hugging Face.
I need image generation as well as LLM, so there’s that.
It was an interesting exercise, but overall the rental doesn’t quite make economic sense at about 80 cents per hour for an instance.
Have you considered building your own harnesses (using Claude) and running it on an API like DeepSeek? That works better for me.
Next phase I’m considering is buying a desktop with a 5060ti running 16GB and self hosting models. Using my own harnesses. It won’t be as fast as the Deepseek API or as cutting edge as Claude, but the ownership and costs are fully my own.
1
u/2dogs1bone 3d ago
You could use Azure Foundry or AWS Bedrock to privately host your models... I did some analysis and it's quite expensive depending on your use case. That being said, you'd be autonomous and not relying on a subscription at all.
1
u/fadzlan 3d ago
This is a good starting point : https://www.digitalocean.com/resources/articles/open-source-llm-hosting
1
u/soyuz-1 3d ago
not financially viable at all. if you really don't want to use frontier subscriptions then you can do this, but the price is pretty steep compared to getting the same done on a Claude subscription
1
u/hi_im_leffe 3d ago
Like others said open models aren't as good, but my company just dropped 30k on a Mac studio to bring certain things in house. I think ultimately this is where most companies are going to go.
It's only a matter of time until open LLMs get as good as anthropic and oAi models are and really you probably won't need more than that or you can use both in tandem like we're planning to. I don't trust them either and having our entire workflows shifted to Claude and potentially getting completely fucked isn't a good business decision.
1
u/GnistAI 3d ago
I suggest using a provider that sells inference instead of hardware. Much more reliable and affordable. Example would be berget.ai (inference endpoint) over runpod.io (rent hardware). Neither will get you past Sonnet quality of AI agents.
If your problem is actually vendor locking then OpenAI as a tested alternative makes sense. That way you have an escape hatch.
Personally, privacy is the main value of running your own. Or at least you can pick your own privacy oriented provider like berget.ai. Looking forward to testing them out.
1
u/AllenLeftTheBLDNG 3d ago
Unfortunately the prices now are insane... I'd recommend building a very basic rig for Strata, but that's like 3k+$ for 100 tps on one thread...
1
u/mpanase 3d ago
nah
become claude-dependant at your own risk
unless you have a few million to burn, no alternative
1
u/Trakeen 3d ago
You don’t need to use anthropics infra to use their models; a lot of enterprises don’t want that anyway. If we hit safety filters i get on a call with our ms account team and get that fixed
Local models aren’t a replacement. Maybe the very large ones like deepseek but i doubt you’d save money with that approach
1
u/QZRChedders 3d ago
Unfortunately you hit the exact reason people call it a bubble. You’re getting more compute for your money than you should.
We’ve used a local model on the CTOs spare rack and it did work, but it took 16 minutes to do something opus could do in 1. So there’s a way to go yet both for efficiency and performance
1
u/MangoDevourer-77 3d ago
xD
1
u/buff_samurai 3d ago
15-20k$ and you start scratching the surface
1
u/Consistent_Bid774 3d ago
Local models are good for offline analysis but coding and recursive tasks need huge models and servers so it’s better to keep a subscription and develop app using it and deploy and run analysis using local models and for real time analysis some cheap model from china
1
u/AstronomerEarly8776 3d ago
It's expensive and Claude is on a league on it's own. My friend spent close to $10k on a Mac but still kept his Claude subscription.
1
u/Aft3rcuri0sity 3d ago
Lol😂
1
u/SiliconSentry 3d ago
I tried on my 48gb m4 Mac, it was screaming a lot, opus 5.5 launched, came back to subscription, now everything feels better.
1
u/Mister_Goudchet 3d ago
I'm right there with you bud. the only thing we can hope for is those mini AI boxes advance greatly in the next few years because in the current state they're just a patch for if you lose access, not a complete replacement . I try to make claude make me my own use tools so if this happens I can atleast keep production going. best bet is try other AI models Gemini is trying hard to get to claude level I hear Grok is doing good
1
u/barcodemerge 3d ago
You could save a bundle by using local brain. No LLM required.
1
u/NoCat2443 3d ago
just setup claude to use openrouter models and you are good, make it use bigger models for thinking and smaller for coding ... it works great but its not on same quality level as opus 5.5, good enough to finish 90% of the work with a bit more back and forth.
1
u/thinkdj 3d ago
So while it lasts, good to continue on the subscription, I guess.
1
u/Responsible_Buy_7999 3d ago
If you’re on the enterprise plan they can just fix this for you.
1
u/ChemicalExcellent463 3d ago
self-hosted qwen works for us on narrow tasks, but we don't let it write or review code, not good enough yet. we train LoRAs for things like profile extraction, where it beats general frontier models. what tasks are you relying on claude for day to day?
1
u/OliviaX05 3d ago
One thing that helped me when I started poking at local models: spend a week noting what you actually use Claude for day to day, then pick your single most common job and trial the local setup on just that. For me that was summarizing long logs — small, repeatable, easy to judge. Run the same prompts through both and compare the outputs side by side; you learn fast whether the gap matters for that job, and you've spent a few dollars of rental instead of buying hardware for a use case you haven't proven yet.
1
u/igormuba 3d ago
The only advantage is model stability. You know you won't get a worse/more quantized model that the one you hosted.
In general it will be more expensive and lower quality than Claude because with a sub you are using their investors money to host great models for you at a loss for them, the downside is that when they are strangled for compute they will serve dumber models to you
Now that Anthropic is publicly listed and traded it may (eventually) get as bad as OpenAI where they always serve dumb models
1
u/Songodan 3d ago
I’m an AI user for work, we have unlimited tokens with basically everything. I’m guessing we have deals work anthropic, openAI, google, and Microsoft. I’m in the semi manufacturing part in the US, not hard to figure out who
So our company is in an exploration phase still, telling us to do everything we can with it. So I’ve used diff kinds to build billions of tokens worth each
I then tried local work qwen, albiet the machine was only 64gb ddr4 with 11gb 1080ti, but it took about 400x longer to do anything including just saying hello back, and the other tasks were simple, like adjust this docker compose to add these tcp ports
The machine was also running like it was transcoding 10 4k videos to av1, struggling so hard
I suppose if you had a better machine it might be better, but that’s my experience
1
u/rahul91105 3d ago
I would like to ask a question though, are there aspects of your work, which you think can come under possible ban? Ie are you providing services related to grey areas (pen testing/ cybersecurity).
If not, then just keep these accounts for official use.
Otherwise, expect other frontier labs to do the same eventually and start investing in alternative workflows which use open weight models. In that case, you should use providers with compliance built in (otherwise unknown routers/ token providers can sell your data).
If you’re truly doing illegal stuff and don’t want your data/ip to be stolen by shady token providers, you would have to invest in self hosted (but at that point you are sol, as it’s very expensive to host capable models and you won’t have a viable business if you do).
1
u/villainouscoke 3d ago
Throw some money into openrouter and try out multiple different open models on your particular use cases. I use Qwen 3.8 27b, flash next and deepseek 4.1 locally and deepseek api as well as Claude. Depending on the task a lot of work can be handled by smaller models and very specific runbooks developed my me and opus and Sol
I love having hardware and am a huge home lab nerd - I run 2x sparks and a 4x 9700 gpu rig for different models doing different things and am also a network and systems engineer. They’re good. They’re not opus. I do think a lot of what is needed will be highly dependent on specific use cases. Find an open model that you like and build for that use case. Hopefully models will only get better and smaller and faster.
As others have said if you need opus that will be hard to replicate locally. Best of luck - truly
1
u/Polite_Jello_377 3d ago
They aren’t
1
u/Intelligent-Net1034 2d ago
If you have 1.7 TB to spare.. sure
1
u/Bed-After 3d ago edited 3d ago
The biggest problem you're going to encounter is the fact that anthropic heavily subsidizes your usage when you're using the paid plans. $200 a month gets you enormously more than $200 in retail usage credits (the exact amount varies a lot, so it's difficult to give you a firm number here). If you have it self-hosted on a rented server, you're going to be paying the actual retail token cost for every single input and output.
Fable 5.2 is $8/$40 per million input/output tokens, and Opus is $4/$20. A lot of people who go the self hosted route go with DeepSeek V4 Pro, because it's only $1.30/$2.40. When you're paying retail rates for usage, especially as a power user, that discount matters a lot.
I personally would spend a month with Grok or Gemini. Grok 4.7 is better than Sonnet but weaker than Opus depending on the task, and I haven't tested Hydrogen enough to give a comparison and haven't used the more powerful Neon at all, but a lot of people have given decent reviews of Neon. I'm not saying either of those models are going to be as good as Fable, but even a subsidized weaker model will be cheaper than full price Fable.
0
u/reach4thelaser5 🔆 Max 20 3d ago
The only way this is financially viable, is if you're doing bad things and you need privacy. The best local LLM's need ridiculous hardware, and even then you'll be using something equivalent to Opus 4.5 (You are always going to be 18-24 months behind the latest frontier models).
You can expect to pay 3-5x the cost of a Max20 sub per month, to be using models that are as good as the Claude/OpenAI models of a year or two ago.
The only way this makes sense is if you're up to bad things.
I'm concerned about the bans I see on this subreddit as well. It would be a major upheaval if Claude banned me, I don't think hosted/local is the way though.