Build Anything with Local Agents, Here’s How artwork

Build Anything with Local Agents, Here’s How

David Ondrej

December 4, 2026

0:00

David Ondrej

With OLAMA and Cray AI, you can make literally anything. I'll teach you how to build and run your AI agents locally, so you never have to pay for an API while keeping all of your chats private, and you can even use unrestricted models. So if you want to be ahead of 99% of people, watch until the end. The first thing we need is OLAMA. This will let us run open source models on our computer. So go to olama.com and click on download. Then select whatever operating system you have. I'm on Mac, so I'm gonna do that. Once you download OLAMA, right click and unzip it. Then you'll get the application, so run that. And you should see this icon right here, which means that OLAMA is running. Now let's install Crew AI. To do that, there are actually two different ways. First one is going into VS Code, and let's create a new file. We can name it agents.py. And when you're in VS Code, you can open a new terminal, and you can run it from here. If you don't have Conda, just follow what I'm doing and type it in here. So you do pip install crew AI. But if you do have Conda, create a new Python environment, Conda create dash n, and I'm gonna name it local agents. And I'm gonna use Python 3.11, enter.

And this is gonna take like five seconds. Now, if I do Conda, activate local agents. As you can see right here, the new environment is active. Again, if you don't have Conda, it doesn't matter. You can just do pip install crew AI in here, right inside of VS Code. But I'm gonna do it inside of my new Python environment. So pip install crew AI, enter. As simple as that. And this should take like 20 seconds or something. By the way, when you're in VS Code, the way you see what environment you have active is right here. Bottom right, click on the version, the Python version, and you see your environments. Now, I don't see mine because I just created it. So I'm gonna restart VS Code. And now I should see the local agents environment. Click on this and beautiful. And this is my new empty environment. Well, actually it's not empty because I just installed crew AI inside. So now that we have crew AI, we can actually start doing some basic coding. Again, if you're not a programmer, just follow along what I'm doing. You don't have to understand every single step. From crew AI, we actually need to import four different things. And this will make sense in a bit. So agent, task, crew, and process. Next we of course need to somehow import olama. And the simplest way to do this is to use lang chain. So I'm going to do from lang chain import olama. And actually this will not work because you have to do lang chain dot llms. It will still work, but they recommend doing lang chain dot, I mean, lang chain underscore community. So this is the proper way to do this. And if you want to check whether you have lang chain community installed, you can just do that easily with pip install, right? So do pip install dash capital U, lang chain, and this is a dash not underscore community.

Now, we need to choose which language model we actually want to use, right? Because olama offers dozens of different open source models. So as you can see, there's llama2, gemma from Google, mistrol, code llama, dolphin, which is uncensored. And I'm actually going to use mixtrol, which is the mixture of experts model. For cheap, low-tier hardware, 7 billion models will be the maximum you can run. For medium-tier hardware, I'm talking computers around $2,000 to $3,000 range. You can do $13 billion. If you have a high-tier computer, I'm talking $5,000 or more, you could do $47 billion or $70 billion even. Another thing you should consider is if you have very slow internet, 26 gigabytes for mixtrol might take a while. But if you do, I don't know, llamas to 7B, that's just 3.8 gigabytes, so keep that in mind as well. How I need to activate it is to go into the terminal, and now we can do olama run mixtrol. And if you don't have this, it will download, but the good thing is that you only do this once. I run it, and since I already have it downloaded, you can see, I can type a message. List out the 10 most influential people in history. Two religious figures, then scientists, another religious figure. Yeah, I mean, this is just cringe, but whatever. For this, maybe the dolphin would be better. Anyways, we don't wanna run the model in here manually. We want our agents to use the model. So let's go back into VS Code and let's link it up. So I'm gonna create a new variable, call it mixtrl, and I'm gonna use OlaMa to get the model. So this is very simple. You just do model equals mixtrl.

Read the other 11 minutes of this episode here.

$15 gets you this episode and 99 more. Credits never expire. After checkout, one link brings you back here to read it.

Not what you expected? Full refund within 14 days.

Thousands of transcripts fetched by people building searchable podcast archives

Fetch transcripts with code

The same credits work from a script or an AI agent. The demo key returns a sample episode in full, no card needed:

request
curl -H "x-api-key: pt_demo" \
  https://spoken.md/transcripts/1000651996090

Markdown with the speakers named, for your notes, your knowledge base, or anything that makes HTTP calls.

From $0.10 per transcript. No subscription. Credits never expire. Prices exclude VAT, added at checkout for EU customers. Not what you expected? Email us within 14 days with 20 or fewer credits used and we refund the pack in full.

Using your own key:

request
curl -H "x-api-key: YOUR_KEY" \
  https://spoken.md/transcripts/1000805610737