How to Use Claude Code with Ollama - Locally for FREE

AI Bites
4,244 views •

We all are familiar with Claude Code and we love its agentic capabilities. But it does come with a subscription which is not cheap. At the least, we have to pay as we go. On the positive side, its super agentic in capability. The open source models on the other hand are not agentic out of the box. They can be readily run on our won hardware, locally, for free. Putting them together with Claude Code could put them on steroids and give them agentic capabilities -- All for free. So in this video, lets see how to go about it. ⌚️ ⌚️ ⌚️ TIMESTAMPS ⌚️ ⌚️ ⌚️ 0:00 - Intro 0:54 - Setting up Ollama 2:15 - Choosing an Ollama model 4:42 - Setting up Claude Code 5:44 - Setting up Environment Variables 6:40 - Adjusting Ollama context 7:18 - Running Claude Code 8:26 - Possible Problems with setting up AI BITES KEY LINKS Website: https://www.ai-bites.net YouTube: https://www.youtube.com/@AIBites Twitter: https://twitter.com/ai_bites​ Patreon: https://www.patreon.com/ai_bites​ Github: https://github.com/ai-bites​

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close