Use Pi instead of OpenClaw

175 views Pinned
Nick Antonaccio
Nick AntonaccioAdmin
Apr 10, 2026 at 09:12
#1

I gave up on Claude Code a while back because it's intimately tied to the Anthropic LLMs, and those models are way overpriced for what they do.

Openrouter provides some special 'Exacto' versions of many of the best open source models, but they still didn't do a very good job in Claude Code.

I switched one agentic end-user project from Claude Code to Goose, and it instantly did better work than Claude Code did with the open source models (and all in all I was able to get the project more easily completed with Goose).

OpenClaw made an obviously a huge splash in the world of AI agents recently, but it's not really so focused on software development (it's intended to function more like a general personal assistant).

I've come to prefer Pi, which is the the extremely lightweight core that OpenClaw was built on. It has four simple main tools: Read, Write, Edit, and Bash, which give it a lot of power, while helping it stay minimal. It's optimized enable LLMs to write and edit code, it sends far fewer tokens to the LLM, and it users fewer other system resources.

Pi doesn't have all the connections to messaging apps built in, like Openclaw does, it doesn't have the big skills ecosystem that OpenClaw has, and there are other features such as the permission system which were added to OpenClaw, that are not in Pi, but Pi is lightweight and very capable. It's basically meant to be a command line tool which can do fantastic development work, and complete complex long tasks, for very little money, especially paired with Gemini 3.1 Flash Lite Preview (that is the best bang for the buck hosted LLM I've found yet).

It just takes a few minutes to give it a try, and to really start using it. Install it with:

npm install -g @mariozechner/pi-coding-agent

Set your API in an environment variable:

export OPENROUTER_API_KEY=

Run 'pi'

type /model to set your model.

After that you can just ask it how to use it, and how to do anything.

See more about it at:

https://pi.dev

Nick Antonaccio
Nick AntonaccioAdmin
Apr 13, 2026 at 02:47
#2

Pi is a great way to get people new to tech into using the command line, SSH, VPS, Linux, etc., and at the same time to get them using an agentic system to write and deploy code using anything from hosted frontier models to locally hosted LLMs.

It's quick to install, dead simple/intuitive to learn how to use, and very powerful.

I installed it on several VPS servers last night and used it to perform a bunch of general cleanup: used hard drive space and RAM activity, old forgotten/unused docker containers, one-off throw-away scripts that faded from use and never got shut down, etc. - all many times faster than I could have using traditional tools - well, pi used the traditional tools, I just told it the high level tasks to accomplish.

swampstream
swampstream
Apr 27, 2026 at 00:15
#3

So you say something literal to Pi, "clean my harddrive of tmp files" and the attached LLM will inference some result like a commandline piece of code: "del /S .jpg" of "del .tmp", but how do you make sure it doesn't hallucinate some weird command? And what do you do when there is an error or a mistake?

Nick Antonaccio
Nick AntonaccioAdmin
Apr 27, 2026 at 05:21 (edited, 5 revisions)
#4

Yes, using any local agent gives an LLM access to your local file system. Think of it like giving access to your computer to a knowledgeable friend who knows how to perform nearly any task, but who can make mistakes. You need to give that friend very carefully crafted instructions (prompts) about the exact task you want completed, and you need to ensure the proper guardrails are in place to keep your friend from doing things that could wipe out important data. And you want to make sure you only give access to your computer to the smartest, most trustworthy friends :) (choose your LLMs carefully).

If you tell your friend to erase your hard drive, and they don't have any reason to not do that, and/or you don't have any protections in place to keep them from doing that, then yes, your friend could perform that irreversible, unintended action. There are plenty of stories about people erasing their databases, hard drives, email accounts, etc. using Openclaw and other agents - and Pi has even fewer limitations to keep you from performing potentially destructive operations.

But frontier LLMs are now very smart, and most agent harnesses have in place default guardrails such as sandboxed workspace folders, which may be the only folder(s) where the agent is allowed to read/write files, and they may have default limitations placed on their ability to interact with resources on the Internet, or with particular OS functionalities, etc.

All of those setting are generally configurable during the agent setup routine, and/or in manual configuration steps, to potentially enable any level of control for the agent system. You can also choose to, for example, provide credentials for private accounts and give your agent/LLM system access to data and third party processes, using tools & skills that you enable (Openclaw, for example, now can interact with Google Meet sessions). Be extremely careful with those sorts of interactions - I basically don't use agents to do any of that sort of work.

All agents come with a different set of tools preconfigured, and a different set of default permissions enabled. Pi has perhaps the fewest guardrails of all the well know agent systems, which is something I'm comfortable with, based on the sorts of work I do with it (mostly development work in a single folder on a wipeable dev machine), and I trust my own experience working with LLMs and computing systems in general.

I would never install an LLM in an environment with compliance requirements. I also don't provide credentials to accounts like email, and I tend to run agents in clean environments such as VPS accounts which can be wiped and re-installed instantly as needed, and which don't have access to private data.

I transfer the results of work which agents complete - the developed software and other artifacts created by an agentic process in an isolated environment - to other systems that the agent doesn't have access to. And of course, production code only gets released after testing in an isolated development environment that can be broken and iterated upon - just like in any sort of traditional software development workflow.

Nullclaw, as one example of an agentic system, starts out with access enabled to only a single folder, it has no Internet access, and very few permissions to do anything on the OS, which makes it virtually useless, until you configure required permissions.

Pi is the generally the opposite. It lets you do almost anything out of the box, so you can shoot yourself in the foot with it really easily, if you're not aware of how to be careful using it.

Security is the biggest concern with using any sort of agent. Most people know absolutely none of the fundamentals about security on the Internet. Be sure to learn as much as you can - it can be a long road!

The biggest thing that agents do for me is enable automated software development iterations. For example, instead of getting code from ChatGPT, running it, pasting debug errors back into the ChatGPT conversation, and repeating that process, a local agent can actually run the generated code, read the output errors, stop and start the application server, and edit the code - all autonomously, until the application is running error free, and with the intended functionality.

That sort of iterative automation is particularly useful when you're running locally hosted LLMs that aren't quite as capable of delivering perfect running code first-shot, like you can expect from frontier models such as Claude and GPT.

The ability for an LLM to test, run, and reason about fixing it's own imperfect code in an iterative loop, on a machine that it has control of, using a command line that it can see the I/O of, on a system where it can stop/start processes, read network data, etc., is a setup that enables automation which makes up for less than perfect code generation by LLMs.

Giving an LLM the ability to iterate autonomously can yield tremendous productivity gains in that part of the software development process, and it can be useful for many other sorts of mundane time-consuming work. There are lots of other sorts of projects which can be made many times more productive when intelligent autonomous iteration is enabled. I would not suggest giving your LLM/agent access to your emails and other private accounts, just to save time responding to people (especially if you're using commercial hosted LLM models). That's the sort of irresponsible application of agentic systems which gives them a bad rap.

Be careful and start slowly with a system that imposes a lot of guard rails by default, dive in carefully in an environment that can be destroyed, don't give your LLM any credentials (especially if you're using commercially hosted LLMs that may add them to their training data, or otherwise leak private information!), back up regularly as part of any automated process (some agent systems are built to use Git, which can be helpful - I have my own techniques), and learn how to be safe, from experience. Don't tell your agent to rm -r your root directory ;)

Nick Antonaccio
Nick AntonaccioAdmin
Apr 27, 2026 at 05:11
#5

Here are install instructions and scripts I've used to get Pi running together with Qwen3.6:35a3 and Gemma4:26a4 in LM Studio, on both Windows and Ubuntu:

https://com-pute.com/nick/install_pi_agent_windows_and_linux.txt

The setup above is exactly the configuration I used to build both little demo forum apps below, entirely with locally hosted LLMs and the Pi agent:

http://1y1z.com:5993 (built on a laptop with a mobile RTX3080 GPU with 16Gb VRAM in Ubuntu 22.04)

http://1y1z.com:5994 (built on a laptop with a Strix Halo processor with 128Gb RAM in Windows 11)

Nick Antonaccio
Nick AntonaccioAdmin
Apr 29, 2026 at 06:31 (edited, 1 revision)
#6

Here are a couple quick one-off vibe coded games that I made with Pi installed on a little $87 Windows 11 netbook, using Deepseek 4 Pro (via the Openrouter API). Both apps together cost less than 3 cents and took just a few minutes to build:

https://com-pute.com/nick/netwars-space_shooter--deepseek-4.html

https://com-pute.com/nick/3d_game--deepseek-4.html

My prompt for the space game was: 'create a 3D space shooter reminiscent of the old Netwars game'. Deepseek did a pretty darn great job - worth at least a few pennies ;)

Give it a try:

Get an API key from https://openrouter.ai

Install Node.js LTS from https://nodejs.org

Open a new PowerShell window and install Pi:

npm install -g @mariozechner/pi-coding-agent

If you get a permission error, run this in PowerShell as administrator, then run the Pi install again:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Ask Pi to build you something. Talk to it if you have questions.

Nick Antonaccio
Nick AntonaccioAdmin
May 06, 2026 at 14:33
#7

This is a great video tutorial about Pi:

https://www.youtube.com/watch?v=BZ0w0JhPQ9o

Nick Antonaccio
Nick AntonaccioAdmin
May 06, 2026 at 14:57 (edited, 1 revision)
#8

This is a separate post about using Pi with Git, which is absolutely necessary for development teams who work together on a single codebase:

https://aibynick.com/thread/30

Please login to post a reply.

© 2026 AI By Nick.