正在加载视频...

视频加载失败

You can now run Claude Code locally for FREE. → Using open-source models → Locally and fully private → Full agent + tool workflows Here's the FULL step-by-step tutorial to get it all set up in less than 10 minutes:

1,322,094 次观看 • 9 个月前 •via X (Twitter)

39 条评论

Alvaro Cintas 的头像
Alvaro Cintas9 个月前

✍️Best practices: - Make sure to have the latest versions of Ollama and Claude Code - Set the context length in Ollama settings of at least 32K - Use glm-4.7, gpt-oss, qwen3-coder for >= 16gb vram (smaller models might not be too useful for complex tasks) - Expect slower responses than the cloud API - Keep Ollama running in the background before launching Claude Code

James 的头像
James9 个月前

This isn’t Claude sir, it’s an Anthropic-compatible interface wired to Ollama 🍿🥃

Alvaro Cintas 的头像
Alvaro Cintas9 个月前

Claude Code = the tool (still Anthropic's). Claude Opus/Sonnet = the model. The tutorial swaps the model, not the tool. You're literally running Claude Code, just with a different LLM backend via Ollama's Anthropic-compatible API

James 的头像
James9 个月前

Running the Claude Code binary doesn’t mean you’re running Claude. You’re running a client that expects Claude, pointed at a different model. That’s not the same thing sir.

Totti 的头像
Totti9 个月前

@dr_cintas you are right. situation is clear. this is an android phone in an iphone box.

James 的头像
James9 个月前

@dr_cintas Good article, great hack. The title is a bit clickbaity, but technically it’s solid.

kaue 的头像
kaue9 个月前

that's is cool ah but I ain't letting ollama touch my code brother 😅😅 opus is king

Jonathan Franzone 的头像
Jonathan Franzone9 个月前

But isn’t using the Claude models one of the biggest benefits of Claude Code?

ZOHEB THE DEV 的头像
ZOHEB THE DEV9 个月前

@ollama Which open-source models have people found to be the best for coding?

TometY 🇬🇧 的头像
TometY 🇬🇧9 个月前

Glad I followed you 😃. This is exactly what I need but for #claudebot by @steipete. -Any advice/vid please?

Alvaro Cintas 的头像
Alvaro Cintas9 个月前

@steipete Maybe it’s in the works 👀

TometY 🇬🇧 的头像
TometY 🇬🇧9 个月前

@steipete Wow you made my day! -definitely worth the wait and thanks in advance 😎

Aarav AI 的头像
Aarav AI9 个月前

That was easy! I went with qwen3-coder

Matthew A. Mattson, Esq. 的头像
Matthew A. Mattson, Esq.9 个月前

Great share! This makes it so easy to run local models using Claude Code. AI is making our lives so easy.

Elk. Müh. Mustafa Kuşçu 的头像
Elk. Müh. Mustafa Kuşçu9 个月前

How successful is that with tool calling?

Alpha 的头像
Alpha9 个月前

We tried, but anyway you need a paid subscription. Without that it won't allow you to login in Claude code or CLI. @AnthropicAI and @ollama integration are good but still need $17 monthly subscription. A kind of Freemium, where @claudeai rate limits, @ollama helps.

Kieranpm 的头像
Kieranpm9 个月前

@gizmothegizzer know we were talking about this then other week, thought you might find it interesting!

Simplifying AI 的头像
Simplifying AI9 个月前

Nice one!

Alvaro Cintas 的头像
Alvaro Cintas9 个月前

Posted here as well 👀

Argona 的头像
Argona9 个月前

it's just insane running to check out the guide

Hedayat 的头像
Hedayat9 个月前

Local agents are underrated. No API latency. No usage anxiety. Full control over tools + memory. This is how serious builders experiment

Vish 的头像
Vish8 个月前

this is huge for developers in regions where API costs add up fast. running locally with Ollama means teams in the Gulf, South Asia, and Africa can experiment with agent workflows without burning through credits. tested this setup with qwen3-coder on a MacBook and it handles most file editing and refactoring tasks surprisingly well. the latency tradeoff is worth it when you're iterating on personal projects or learning the tool.

razaf naris 的头像
razaf naris9 个月前

A more easy way

Jason - looking for work 的头像
Jason - looking for work9 个月前

That's the feature I needed to use it.

sharpgx10.wallet 的头像
sharpgx10.wallet9 个月前

now you just need to do a clawdbot tutorial to make it work locally as well

Nicoo 的头像
Nicoo9 个月前

Even with 32 gb ram mine was so slow and rich 22gb of ram usage and never answer to a simple « hello how are you » 😅 I tried with gpt-oss and qwen3-coder

Nurnabi 🦄 的头像
Nurnabi 🦄9 个月前

That's cool. We design UIs that iterate fast.

clenio 的头像
clenio7 个月前

Very nice, thanks!

ejae dev 的头像
ejae dev9 个月前

tried this setup last week. performance is obviously slower than api but for experimentation and learning how the tool workflows actually work its perfect. also nice knowing nothing leaves your machine when youre prototyping with sensitive codebases

WOLFUN 的头像
WOLFUN9 个月前

Nice! Local Claude Code could be a game changer for private agent workflows.

Tuhin mahmud 🇧🇩 的头像
Tuhin mahmud 🇧🇩9 个月前

what is use case of this? 20b model for coding?

Prakshal Jain 的头像
Prakshal Jain9 个月前

Or you can just use this script

Kangkang|AI Engineer 的头像
Kangkang|AI Engineer9 个月前

That's awesome! Running Claude Code locally is a game-changer for privacy.

gua_s ( 🕳️ , 🫖 ) 的头像
gua_s ( 🕳️ , 🫖 )9 个月前

so what if the url is xai-grok and a api-key

notforhire 的头像
notforhire9 个月前

u can use cc switch as easier to build it

StonkensGenius 的头像
StonkensGenius9 个月前

@grok kan du förklara allt?

godly alpha 的头像
godly alpha9 个月前

at this point, use clawdbot.

RawAi 的头像
RawAi9 个月前

I try same and got : API Error: 404 404 page not found

Dipanshu Kushwaha 的头像
Dipanshu Kushwaha9 个月前

Amazing

相关视频