This 100% minimal AI Agent can do anything… just watch artwork

This 100% minimal AI Agent can do anything… just watch

David Ondrej

November 19, 2026

0:00

David Ondrej

Pi might be the single most underrated AI tool out there. Now, what even is Pi Agent? This is a harness that is powering many of the most popular projects out there, including OpenClaw. And Pi is the agent that all of the power users are currently running, because it is super customizable. So in this video, I'll explain why the Pi Agent is so important, how to actually set it up, and how to make it more powerful than any other agent out there. First off, let's talk about the core idea behind Pi Agent. The main idea was to create the most minimal version of an AI agent possible. And it means that it literally only has four built-in tools. Read, write, edit, and bash, which means there is zero bloat. The system problem is super minimal, there is zero extra nonsense, nothing. This lets you customize your Pi Agent for any use case, and to make it truly yours. Now, as I mentioned earlier, OpenClaw, which is the most popular AI agent in the world, is literally built on top of Pi, yet most people have never even heard of the Pi Agent. Now, while the public is completely oblivious to Pi, the real players know what's going on. OpenClaw is for the masses, right? It's for everybody. It's easy to use, easy to get started, but Pi is for those who want to be on the cutting edge. Toby Lutke, the CEO and founder of Shopify, who's also worth $10 billion, is using Pi as his main assistant, and he used it to make Shopify 53% faster overnight, and is his main coding agent, his main personal agent. Marc Andreessen, the inventor of the Mosaic web browser, one of the most important people in terms of all technology, one of the most successful investors in the VC space, called it a top 10 software breakthrough in history. So Pi agent is a big deal. Seriously, you should block out sometime to master Pi.dev. If you actually sit down for 10 minutes and follow the steps I'm about to show you in this video, you'll be ahead of 99.9% of people in AI. However, you should be careful, because Pi always runs in YOLO mode, meaning there is no permission prompts, no checks, no guardrails, it just does whatever it wants to do. As Mario Zechner, the founder of Pi Agent puts it, if it can write and run code, security prompts are pointless. So none of this prompt defensibility is built into Pi, it is just pure power to the agent. And this means that the Pi Agent is not for beginners. It's for those who wanna be on the cutting edge of AI and who really are serious about building their own personal agent that is suited for them, and that is best made for whatever work they wanna do. Now, radical minimalism is the philosophy behind the Pi Agent. For example, the entire system prompt is less than 1,000 tokens. If you don't understand how insane that is, just look at, for example, Hermes Agent. It has over like 12,000 tokens, default system prompts, because of all the different tools and the self-building skills. One case, super minimal, super lean. And this is the beauty of Pi. It only has four tools. And this is all the agent needs to do anything you can imagine. That's what makes it customizable and that's what attracts the most powerful builders, entrepreneurs, billionaires, programmers to use Pi as their default AI agent. Now, let's talk about the first tool, the read tool, right? It's simple, but beautiful. This tool lets the agent open and read any file on your computer on a specific folder, if you're running it in a specific folder. And this is how the agent learns. You can read a log, check a config, inspect any text file, all through the terminal. So the read tool is yet another tool it can run in the terminal. And without the read tool, the agent would be blind. It wouldn't know what's on your machine, it wouldn't know what's installed or what's broken in your code. It simply would operate blind. The second tool is the write tool. Pretty self-explanatory. Let's the agent create new files on disk. And this is how the agent gets work done. For example, create a REST API with authentication. And it writes every file, route, middleware, config, all of it. Now you might be thinking, okay David, but given how simple PyAgent is, can it even do anything? Well, let me show you some examples of what people are building with it, right? So this guy wasn't happy with the UI of the desktop apps, so he used PyAgent to just start designing custom UIs for a lot of the different apps he was using. And again, this is an entire custom app powered by Py with its terminal UI. Now to better understand why so many people are building on top of Py, let me show you the back end, because Py basically gives you the toolkit to build on top of AI agents. You can use it as a complete agent, for sure, and that's how I'm using it myself, but if you want to build applications that are agent first, you can use Py as the toolkit. So first, it gives you the terminal UI library, which is named py-tui. Gives you markdown display, multi-line editor, loading spinners, flicker-free screen updates, something that ClaudeCode still doesn't have to this day. And yeah, this is basically the visual layer that makes everything look good in the terminal. Next, the Py coding agent. This is what most people use when they run Py in the terminal, the coding agent. And again, I'm going to show you how to set that up later in the video, as well as how it compares to ClaudeCode and OpenCode. Then we have the Py agent core. This is the brain, allows you to define custom tools, the agent calls the LLM, executes the tools, feeds results back, and repeats until this is done. This is just pure agent logic with no opinions about what tools you use. And the fourth thing that Py gives you is the Py-AI, which is the unified interface for any LLM, whether that's Envropic, OpenAI, Google, or anything else, all through a single API. So these are the four reasons why so many people are building their apps on top of Py. Let me show you another example. This guy literally built his own full deep research agent under five minutes, built on top of Py. And keep in mind, stuff like this is what Perplexity is charging $200 a month for. Okay, the third tool inside of Py agent is the edit tool. And this allows Py to make changes to existing files. Now, without the edit tool, Py could only create new files. And of course, it needs a way to edit them. That's why this tool exists. For example, fix the login bug on line 42, and it touches that line, maybe a couple lines before or after, but it doesn't refactor the whole file. It doesn't need to rewrite hundreds of lines of code. It only edits what it needs to edit. Now, tool number four is the bash tool, and this is the most powerful tool of all. It lets Pi run terminal commands, installing packages, running tests, starting servers, checking git status, anything that you would type in the terminal. So while the three other tools handle files, bash handles everything else. And this is why Pi agent is so insanely strong with just four tools. Now, you might be thinking, okay David, but why not OpenClaw? Some of you might already have OpenClaw set up, why would you be trying Pi agent? Well, first of all, is the radical minimalism philosophy. OpenClaw wraps a massive product layer on top, right? So if you're a complete beginner, maybe that's good. But if you want to customize it and make it really your own, or build top of it, it has a bunch of bloat. Also with Pi, you have full transparency and control. Everything is exposed, nothing is hidden behind abstraction layers. With Pi, you control the whole package, the whole agent, and there is no hidden stuff, no hidden problems that are hard to change, none of that. Using Pi lets you build your own agent, not someone else's. If you use OpenClaw, you're taking on all of Peter Steinberger's preferences, which might be good, but it might not be good. Real quick, if you want to master AI coding in three weeks, then make sure to join the new society. We just dropped a brand new training, where in three weeks, anybody, literally complete beginner, can go from starting out, which I'm gonna show you how that looks like, to mastering AI coding, to the point where you're actually able to build anything in a matter of three weeks or less. So here are the new modules, and let me just show you the outline for week one. This is all the things you learn just in week one. And I really do mean that this is the simplest way to learn AI coding. So if you want to acquire the skill of being able to build absolutely anything you can imagine, and turning that into custom software, make sure to join the new society. In fact, for the next six days, it is for a decreased price of $37 a month. This is the lowest it's ever been in the history of new society. It's going up to $77 a month six days from now. So again, if you want to master AI coding in three weeks or less, make sure to join the new society. It's going to be linked below the video. And now, let me show you how to set up your very own Pi agent. So the official website is pi.dev, and it's very minimal like the entire Pi agent, and you literally have this one-click command. So go to pi.dev, P-I dot dev, and here, just copy this command, open your terminal, paste it in, and hit enter. This will install Pi globally on your entire machine. To check if you successfully installed Pi, just type in pi-v, and you should see a specific version. However, there's an issue. If you type in Pi, you can see that it starts the agent for me, but for you, it will not start the agent, because you haven't set the provider and you haven't set the API key. And these are the two hardest things about Pi. You have to realize, this is a trade-off, right? OpenClaw makes it simpler, but it also comes with a lot of bloat. So, anytime you have an ease of use, it also includes a lot of unnecessary tokens. That's why if you use OpenClaw, every single time you message it, you're sending 12,000 to 16,000 tokens, and you're paying for that. If you're using Opus 4.6, that's not cheap. So, you're paying Sam Altman or Dario Amadei, or these big companies every time, just because OpenClaw is bloated. With Pi, that's not the case. It's very minimal, very optimized. However, the setup is a bit more complex. So, I'm going to show you how to do that. So, if you can stick with me for the next 60 seconds, you're going to be fine. So, when you just installed Pi, right? You check the version, okay, it's showing good. We need to do two things. We need to set the default provider, so that you don't have to run it, because otherwise, you need to do something like this, right? Every single time, set custom parameters, anytime you want to run Pi agent, which is much less convenient than just typing two letters Pi. So, I want to make it as simple for you as possible, where you have my setup, right? My setup is beautiful. When I type in Pi, it loads all the skills, I can just say, hey, and it's instantly loaded up and knows what's happening. And I have Opus 4.6 selected, and it's running with open router. I can easily switch models, and I don't have to export my API key at every single terminal session. So, this is a beautiful setup, beautifully convenient, super easy, amazing. I'm going to show you how to get that. So, when you install Pi out of the box, it forces you to do this every single time. In every single terminal session, you have to export your API key, and then you have to do two parameters. The provider, set it to OpenRouter, and then the model, set it to model, because it doesn't remember that. So, I'm going to show you how to make Pi remember these preferences. And in fact, I turned all of this into a single prompt, which I'm going to link below the video as well. And this is a GitHub gist that you can just copy and give it to your cloud coder or any other agent that you already have installed, so it does these steps for you. Or you can just follow along and do these steps, right? So first, you need to create the Pi config directory, and here's the copy paste terminal command. Then you need to store your OpenRouter API key in the auth.json file. So let me show you how to get your OpenRouter API key. First, go to openrouter.ai, and I'm going to link that below the video. Then top right, you need to either log in or create an account. Super easy, it's completely free, takes like 20 seconds. Next, go to Settings, and on the left, you can see it on the left, click on Credits right here, and you need to charge up some credits. Now, you don't need to do $167 like me. I'm spending thousands of dollars a month on OpenRouter because this is what's powering all of my AI agents. Just charge up like five bucks. Charge up 10 bucks, and the beauty of API pricing is that you only pay for the tokens you use. So I would recommend you charge up a couple of dollars here, but then, once you do that, go to the top left and click on API Keys. Here is where we're gonna get our key. So on the top right, you can see this big blue button, Create. Click on that and type in Pi Agent YouTube Subscribe. If you're watching this, and if you want to see more videos on advanced AI tools like the Pi Agent, make sure to subscribe. Me and my team spent a lot of time researching, scrolling Twitter, testing these different tools to figure out what is worth using and what isn't, right? So for every video you see, there's probably like five to ten different AI tools that we decided to scrap, because they were actually trash. So if you want to see more about this type of stuff, where most people only talk about open claw, about the most mainstream AI agents, they don't tell you about the real cutting edge of AI. So if you want more of this stuff in your YouTube feed, so you become smarter yourself, and if you want to support me in a completely free way, make sure to subscribe. Again, it's completely free and it's below the video. And I think right now only 25% of people are subscribed. So it would actually mean a lot if we can get that at least to 30%.

Read the other 19 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/1000802939606