Claude Code + Ollama = Free Unlimited Coding AI — Transcript

Learn how to use Olama with Claude to run free, local coding AI models on your machine, optimizing for your computer specs.

Key Takeaways

  • Olama enables running large language models locally, avoiding expensive cloud plans.
  • Choosing the right model depends on your machine's specs, especially RAM and VRAM.
  • Local models can be less powerful than cloud models but offer privacy and cost benefits.
  • Breaking projects into smaller components improves AI coding efficiency.
  • Users can easily switch models and configure Claude for local development.

Summary

  • Explains the high cost of upgrading to the Mac plan with Claude and introduces Olama as a free alternative to run local large language models.
  • Shows step-by-step installation and setup of Olama on a local machine, including downloading and managing models.
  • Compares recommended models for Claude based on hardware specs like RAM and VRAM, helping users choose the best fit.
  • Demonstrates how to switch between different local models within Claude using terminal commands.
  • Discusses the trade-offs of using local open-source models versus cloud-based models like GPT-4.
  • Provides tips on improving coding AI efficiency by breaking down projects into smaller components using tools like Storybook.
  • Walks through generating code snippets and verifying outputs using local Claude models.
  • Mentions free tier usage limits and token allowances for local AI usage.
  • Highlights practical application development strategies to maximize local model performance.
  • Encourages users to explore and experiment with different models and configurations for optimal results.

Full Transcript — Download SRT & Markdown

00:00
Speaker A
Upgrading to the Mac plan with Claude is quite expensive. And that is why in this video, I'm going to show you how you can use Olama with Claude to run local models inside of your local machine. We're going to explore all the recommended models and compare which model is the best based on your computer specs, to building applications using Claude with local coding large language model. And furthermore, we're going to walk through step by step on how to set this up on your local machine, how you can be able to configure this, switch to different models, and find out which model is best for you. So with that being said, if you're interested, let's get into it.
00:11
Speaker A
recommended models and compare which model is the best based on your computer specs to building applications using claw code with local coding large language model. And furthermore, we're going to walk through step by step on how to set this up on your local
00:23
Speaker A
All right, so to get started, first things first, we're going to navigate to Olama, which is a place where we can download and be able to use any large language model here, open source, onto our local machine. So what we're going to do here is we're going to click on download. And based on your operating system here, I'm just going to choose Mac because I'm using Mac, but feel free to choose whichever operating system you're using for your local machine. But I'm just going to copy this command right here and paste it into my terminal and install this onto my local machine.
00:31
Speaker A
All right, so to get started, first thing first, we're going to navigate to Olama, which is a place where we can download and be able to use any large language model here, open source, onto our local machine. So what we're going
00:40
Speaker A
Awesome. So once we have Olama here installed onto our local machine, the next thing we're going to do here is try to run it and see if it's actually successfully installed. So if I were to do the Lama hyphen version, I can be able to see the current version that I'm using. So what I can also do here is I can also do Lama list to be able to see all the list of models that I have currently on my local machine. So if I were to run this, you can see currently I don't have any models. So in our case, let's take a look at how to install one for our Claude. So what we're going to do here is we're going to go to models right here instead of llama. And right here you can see that these are the list of models that we installed.
00:49
Speaker A
I'm just going to copy this command right here and paste it into my terminal and install this onto my local machine.
00:54
Speaker A
But specifically, we're going to install one for Claude. So all I had to do here is just click on the landing page. So if we were to scroll down to the landing page here, you can see there's a coding section and for that there's a Claude. So if I were to click on this, it will basically show you the recommended models for Claude. For example, Q13 coder and GPT OSS. So what I can do here is that let's say if I were to CD to my project called bookkeeping applications and all I had to do here is just do launch Claude and simply you can see that it gives you recommended models that you can choose from. For example, GPT 4.7 flash for 25 GB of VRAM but currently my machine is using MacBook Pro. So mine is only 16 GB RAM for the VRAM. So what I will go with is probably just the Q13 8 billion parameters which is only 11 GB for the VRAM. So in this case, I'm just going to choose that option for now. And of course, you can also choose some other options based on your machine. And you can actually be able to learn more about the specs by clicking on the models in Olama and learn more about which model is best fit for you. So, for example, like GPT OSS, there's like the 65 GB RAM that you can choose from. So, whichever option is best for you, you can go with that. Right? So, what we can do now is I'm just going to choose this option right here, Q13, 8 billion parameters. And I'm just going to say yes, download this. And it's going to pull the manifest and try to set this up on your local machine. But obviously, if you don't want to download this way, you want to download this manually with the model that you like. For example, like GPT OSS 20 billion parameters, what you can do is that you just open your terminal and just do Lama pull for this model and it will simply just download it, right? And then once you done download that, you're just going to do Olama list and it will basically show all the models that you have in your local machines. But in our case here, back to the installation for the Q13 coder. Here you can see that it's asking us if you want to access the workspace.
01:05
Speaker A
able to see the current version that I'm using. So what I can also do here is I can also do Lama uh list be able to see all the list of models that I have currently on my local machine. So if I
01:14
Speaker A
So quick safety check is the current project created or one trusted like you own the code well-known open source project. So I will say yes, I trust this project and right here you can see we have our Claude model here is switched to the Q13 3B parameters here. So if I were to say hi, let me just run this command right here and let's see what it generates and here you can see this is what it generates. It says hello, how can I assist you today? Okay. And if you're curious about how you can be able to get the status line right here, you can check out this video right here, which I talk about how you can get your adding your status line bar, which shows the current context window that you have with your current conversation with any large language model instead of Claude. So feel free to check that video out to learn more. And of course, let's say we have multiple models here in our local machine. How can we be able to switch it between those models in our Claude? For example, all you have to do here is just Lama launch Claude and you just do hyphen config. And here you can be able to have the option to select which model you want. So I'm just going to choose one here that I have already installed which you can see here we can choose JM4 and also we have our Q1 2.5 coder right so these are all the options that we have. All right. So that's pretty much how we can be able to, you know, use Olama here connected with Claude using any large local large language model here for your Claude coding sessions, right? But now what I want to do is basically talk about how we can use it because let's be honest all those open source models here are no better than the Opus 4. So how can we be able to make sure that when we use our local models with Claude with the best performance with the best efficiency and that come with how we're going to develop our application. For example, if you're going to build the entire front end by just saying, "Oh, hey, build this front end application." Well, that's going to be a lot of components, that's going to be a lot of pages thrown into the context. But what if we catch people to use like Storybook to be able to actually break those components down into its own standalone component and then just perfect it, right? We only perfect one component at a time. So that means the less context where AI had to figure it out.
01:21
Speaker A
models right here instead of llama. And right here you can see that these are the list of models that we installed.
01:26
Speaker A
So in this case, that would be perfect for, you know, local using local model here to do that. So if you wanted to learn more about Storybook, you can actually be able to navigate to Storybook. It is actually npm very simple way simply just run this command here onto your project and you can see that all the components, all the pages, right, broken down into this own single page and all we have to do here just perfect one single component, one single page. So we have those building blocks when we try to, you know, use like Opus or any other like big large language model here to, uh, building, you know, blocks together, right? So for example, if I were to just run the npm run storybook and here it's going to start my Storybook which you can see here. First of all, I'm just going to navigate to this Storybook that I created which contains like all my email templates, the air pages that we have, right? As well as the base tables, so different tables that we have in our applications. So in this case, what I want to do now is basically showing you exactly, okay, let's say if I wanted to use the local models here, right? Take it one step at a time. This is actually one single component and literally what we can do is basically take it one component at a time. For example, this email verification page, right? Where user just click on it, it will basically verify themselves. And what we can do here is that I'm just going to copy this link and come back to Claude, for example.
01:34
Speaker A
section and for that there's a claw code. So if I were to click on this it will basically shows you the recommended models for claw code. For example q13 coder and gbt oss. So what I can do here
01:45
Speaker A
Let's say if I'm using JM4 with...
01:55
Speaker A
can choose from. For example go 4.7 flash for 25 GB of VRAM but currently my machine is using MacBook Pro. So mine is only 16 GB RAM for the VRAM. So what I will go with is probably just the Q13 8
02:09
Speaker A
billion parameters which is only 11 GB for the VRAM. So in this case I'm just going to choose that option for now. And of course, you can also choose some other options based on your machine. And you can actually be able to learn more
02:17
Speaker A
about the specs by clicking on the models in Olama and learn more about which model is best fit for you. So, for example, like GBT OS, there's like the 65 GB RAM that you can choose from. So, whichever option is best for you, you
02:29
Speaker A
can go with that. Right? So, what we can do now is I'm just going to choose this option right here, Q13, a billion parameters. And I'm just going to say yes, download this. And it's going to pull the manifest and try to set this up
02:39
Speaker A
on your local machine. But obviously if you don't want to download this way, you want to download this uh manually with the model that you like. For example, like GBT OS 20 billion parameters, what you can do is that you just open your
02:50
Speaker A
terminal and just do lama pool for this models and it will simply just download it, right? And then once you done download that, you're just going to do Olama list and it will basically shows all the models that you have in your
02:59
Speaker A
coder machines. But in our case here, back to the installation for the Q13 coder. Here you can see that it's asking us if you want to access the workspace.
03:06
Speaker A
So quick safety check is the current project created or one trusted like you own the code wellknown open source project. So I will say yes I trust this project and right here you can see we have our claw code model here is switch
03:17
Speaker A
to the Q13 3B parameters here. So if I were to say hi let me just run this command right here and let's see what it generates and here you can see this is what it generates. It says hello how can
03:27
Speaker A
I assist you today? Okay. And if you're curious about how you can be able to get the status line right here, you can check out this video right here, which I talk about how you can get your adding
03:34
Speaker A
your status line bar, which shows the current context window that you have with your current conversation with any large language model instead of claw code. So feel free to check that video out to learn more. And of course, let's
03:44
Speaker A
say we have multiple models here in our local machine. How can we be able to switch it between those models in our claw code? For example, all you have to do here just lama launch cloud and you just do hyphen config. And here you can
03:56
Speaker A
be able to have the option to select which model you want. So I'm just going to choose one here that I have already installed which you can see here we can choose JM4 and also we have our Q1 2.5
04:06
Speaker A
coder right so these are all the options that we have. All right. So that's pretty much how we can be able to you know use Olama here connected with claw code using any large local large language model here for your claw code
04:16
Speaker A
uh coding sessions right but now what I want to do is basically talk about how we can use it because let's be honest all those open source models here are no better than the opus 4. So how can be
04:26
Speaker A
able to make sure that when we use our local models with claw code with the best performance with the best efficiency and that come with how we're going to develop our application. For example, if you're going to build the
04:36
Speaker A
entire front end by just saying, "Oh, hey, build this front end applications." Well, that's going to be a lot of components, that's going to be a lot of pages thrown into the context. But what if we catch people to use like storybook
04:46
Speaker A
to be able to actually break those components down into its own standalone component and then just perfect it, right? We only perfecting one component at a time. So that means the less context where AI had to figure it out.
04:57
Speaker A
So in this case, that would be perfect for, you know, local using local model here to do that. So if you wanted to learn more about storybook, you can actually be able to navigate to storybook. It is actually npm very
05:06
Speaker A
simple way simply just run this command here onto your project and you can see that all the components all the pages right broken down into this own single page and all we have to do here just perfect one single component one single
05:17
Speaker A
page. So we have those building blocks when we try to you know use like opus or any other like big large language model here to uh building you know blocks together right. So for example, if I were to just run the mpm run storybook
05:29
Speaker A
and here it's going to start my story book which you can see here. First of all, I'm just going to navigate to this story book that I created which contains like all my email templates, the air pages that we have, right? As well as
05:39
Speaker A
the base tables, so different tables that we have in our applications. So in this case, what I want to do now is basically showing you exactly okay, let's say if I wanted to use the local models here, right? Take it one step at
05:50
Speaker A
a time. This is actually one single component and literally what we can do is basically take it one component at a time. for example, this email uh verification page, right? Where user just click on it. It will basically
06:00
Speaker A
verify themsel. And what we can do here is that I'm just going to copy this link and come back to claw code for example.
06:06
Speaker A
Let's say if I'm using JM4 uh with 9B parameters and I'm just going to paste this one right here. Or even better, we can even use the front of design skill from claw scale. And if you haven't checked out my claw skill uh video on
06:18
Speaker A
how to use it inside of claw code, then feel free to check it out. But what you can do here is that you can use the front end design skill uh which was you know part of the clock features. And
06:28
Speaker A
then this what we're going to do first I'm just going to turn on the plan mode and basically paste the link and then use the front of design skill for slash command. And now what I'm going to do
06:35
Speaker A
here is I'm just going to say based on the current email verification email template I want you to trigger the front end of design skill here to redesign the entire email have a cleaner look of our email template for this particular
06:50
Speaker A
email. uh verification. So I want you to do that and please help me to uh complete this. And before you generate the code, I want you to create a terminal wireframe to show me exactly what is it going to look for the email
07:03
Speaker A
template before we do the implementation. Please do that. Thanks. And that's basically my prompt. And uh I'm just going to run this and try to see what it does here. All right. Then here you can see that we have our
07:13
Speaker A
results which here you can see that we have our terminal wireframe. Now I don't think this is really accurate but here you can see we have our button here the logo right and also text company so it makes our uh email template much more
07:25
Speaker A
shorter and much more uh concise but now if I were to look at the code that is going to generate in plan mode you can see that this the entire code right we have our title but what's missing here
07:35
Speaker A
is sometimes the accuracy for logo model here uh is isn't really accurate right you can see that it generates a HTML page u but it doesn't show so you can see that this is logo but what we put in
07:45
Speaker A
the logo is verify, right? It's not uh we shouldn't put verify as local, right?
07:49
Speaker A
So that's something that we shouldn't do in the HTML, but basically you can see that's basically what you get with the local models. Sometimes they might not be as accurate as, you know, the claw opus models or, you know, sonic models,
07:59
Speaker A
right? So that's a trade-off that you have to be aware when you're trying to switch to the local models. So then it got me thinking, well, what are some models in Olama here has the highest accuracy using clock code. So here you
08:10
Speaker A
can see we have the answer for depth rail Q13 which has like 30B parameters which I don't think is good enough because this 30B parameters which is really high for VRAM but here we have our GLM 4.7. So I thought to myself,
08:22
Speaker A
well why not give it a try, right? So I'm just going to copy that and simply just run this command on my local machine so it can be able to communicates to the GLM. But I don't think this model lives in my local
08:30
Speaker A
machine. I think it's communicates to a third party cloud providers that has the GLM 4.7. So I basically run that command and try to connect it on my local machine. So, I'm just going to click on connect. And once my device is
08:40
Speaker A
connected, so now what I'm going to do here is I'm just going to do Olama launch cloud with config. And I'm just going to choose the 4.7 cloud right here. And I'm going to say yes, launch with cloud code. And here you can see we
08:53
Speaker A
have our GM 4.7 in the cloud. Right. So I'm just going to say hi. And you can see that we have a much faster response from the GLM4.7 cloud here. In this case, I'm just going to trigger the
09:03
Speaker A
front end design scale and basically do the same thing for email verification by generating the terminal wireframe before it's going to renovate the email. So, I'm just going to run this and let's take a look at what it does here. And
09:13
Speaker A
just to confirm, yes, based on your documentations, the GM4.7 cloud does run in the cloud, not on your local machine.
09:20
Speaker A
So, it doesn't really consumes a lot of uh VRAM power. It kind of defeats the purpose of like having it to run your local machine, right? But if you want to get a higher results, you kind of have
09:29
Speaker A
to go through this way. Okay. So then eventually you can see that it generates the answer. So now after it has a full picture of the brand and the current email templates here is what it creates for the minimalistic premium design. And
09:39
Speaker A
here you can see I'm not sure what this is. Maybe like a logo or something. But then we have our verifier email. One tap to activate your accounts expire in 24 hours. So it's asking us if we wanted to
09:49
Speaker A
implement it. I'm just going to tap this. Say yes. Let's do this. And I'm really curious to see how the go 4.7 here is going to generate uh for this one. So, highly recommend if you're if you can't find the right local models
10:00
Speaker A
here for the answer that you want to generate, maybe try something with the GM cloud here. So, we can see that right now it's going to ask us permissions if we want to generate this. So, I'm just going to say yes, allow all edits during
10:10
Speaker A
the sessions. So, it's going to make those changes on my behalf. So, in this case, let's take a look after it has successfully generated this. All right.
10:17
Speaker A
So, now you can see this is what it looks like after it has successfully generate everything. Now obviously the first tries don't be perfect but at least you can see that the style here the structure uh if we were to look at
10:26
Speaker A
the password resets right the welcome page is actually looking at the same structure other than the background has changed but you can see that yes we have a logo still in the middle right still at the top uh and also we have the uh
10:39
Speaker A
email footers right where the email footers are still the same uh it does analyze the current structure and just basically add it on top of the current structure that's all right so right here you can see other than the emoji right
10:50
Speaker A
which Here you can see we have our email emoji here or email icon which is shifted to the left but literally you can use that to basically ask it to modify it. Overall, you can see it's much more cleaner designs compared to
11:02
Speaker A
what we have in the last one, right? So, I can literally just take a picture of this, right? Take a screenshot and say things like uh based on the current design and I would like to, you know, have the background to be consistent
11:13
Speaker A
throughout all the templates, right? Um so, make sure to, you know, revert the background color change uh for the email. And also, the other thing is that if you take a look at this image, there's the email icon is shifted to
11:23
Speaker A
left. Can you make it in the center, please? And that's basically my prompt. So, in this case, I'm just going to submit this and basically going to let GM4.7 cloud tier to fix this. But then you might be wondering, is GM4.7 here
11:34
Speaker A
free? Uh, yes, there is a free tier and a pay tier, right? So, the free tier designed to have a light use and you roughly get 250,000 input tokens per hour before the usage is paused. So, usually 250,000 input tokens per hour is
11:48
Speaker A
probably just one conversation context, right? If you take a look at the context window here, usually one context session inside of cloud code is usually 200,000 for the contact window. So, it should be enough. And of course, in my next video,
12:00
Speaker A
I'll make sure to do a full review of the GLM latest model and basically see how we can be able to integrate our clock with GM, but also still uses all the features that Clocko offers. So, if you're interested to see a full review
12:13
Speaker A
of GM, the latest model like GM5 in my claw code sessions to see if it's capable of doing a lot of those daily tasks like building applications or you know adding further features onto it or using all those claw skills or other uh
12:27
Speaker A
functionality that clo offers then make sure to comment down below and I'll make sure to try to make a video out of it and show you guys how can you use go inside of claw code without any limitations using the tiers that it
12:38
Speaker A
offers here. Okay, so make sure to comment below uh like this video and I'll make sure to make that in the upcoming videos. But let's continue through the video. JM4.7 cloud to see what the result look like. All right, so
12:48
Speaker A
back to the fix here. So now both fix has successfully applied. And now let's say if I were to come back to the email verification, you can see that we do have everything. So I told it to basically revert back to the previous uh
12:58
Speaker A
background which is now gray, right? Same color as what we have here. But at least you can see that the icon here is now centered and the overall the verification email here is much more uh minimal on exactly what user had to do.
13:10
Speaker A
So pretty much that's how we can be able to use the Olama model here to get a high results using claw code completely for free. Okay, so pretty much that's all for this video and of course in my
13:18
Speaker A
next video I'll make sure to compare all the models inside of GM to see if it's really come up to par with the Claude Opus 4.5 inside of Claw Code and try to see if it's able to use all the
13:28
Speaker A
functionality that Claw Code offers and see if it delivers a similar value compared to Claude Opus 4.5. So make sure to like my this video and comment down below if you're interested and I'll make sure to plan that in the future
13:40
Speaker A
video. All right, so pretty much that's it for this video. And if you do find out in this video, please make sure to like this video, consider subscribe for more content like this. But with that being said, I'll see you in the next
13:49
Speaker A
video.
Topics:Claude AIOlamalocal large language modelscoding AIMac planQ13 coderGPT OSSStorybookAI model setupopen source AI

Frequently Asked Questions

How can I run Claude AI models locally without paying for the Mac plan?

You can use Olama to download and run open-source large language models locally on your machine, avoiding the expensive Mac plan upgrade.

Which Claude model should I choose based on my computer specs?

Choose a model that fits your machine's RAM and VRAM. For example, on a MacBook Pro with 16GB RAM, the Q13 8 billion parameter model requiring 11GB VRAM is recommended.

Can I switch between multiple local models in Claude?

Yes, you can switch models by using the command 'lama launch Claude -config' and selecting the desired model installed on your local machine.

Get More with the Söz AI App

Transcribe recordings, audio files, and YouTube videos — with AI summaries, speaker detection, and unlimited transcriptions.

Or transcribe another YouTube video here →