VOOZH about

URL: https://thenewstack.io/nanoclaw-containerized-ai-agents/

⇱ NanoClaw can stuff each AI agent into its own Docker container to deal with OpenClaw's security mess - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2026-03-07 10:00:49
NanoClaw can stuff each AI agent into its own Docker container to deal with OpenClaw's security mess
AI Agents / Containers / Security

NanoClaw can stuff each AI agent into its own Docker container to deal with OpenClaw’s security mess

NanoClaw isolates each AI agent in its own Docker container, offering a more secure alternative to OpenClaw. Here's how to set it up with Claude and Slack.
Mar 7th, 2026 10:00am by David Eastman
👁 Featued image for: NanoClaw can stuff each AI agent into its own Docker container to deal with OpenClaw’s security mess
Yovita Frederica Widjaja for Unsplash+

On the one hand, I feel a bit conflicted pointing out the recognised security issues with OpenClaw, even as serious AI thought leaders are naming their agents “Arnold” and shouting orders at them. I feel duty-bound to take their enthusiasm seriously, while also stressing that this whole area remains problematic.

Enter NanoClaw. And it’s more than just a very small claw.

Firstly, NanoClaw can isolate each agent in its own container. So the agentic loop starts with no knowledge of other agents, and only knows about the resources you tell it about.

The other intriguing thing is that the app isn’t a large configuration file talking to a monolith; it is just the code you need (and the appropriate Claude skills) — with Claude hacking itself as needed. Given that code is “cheap” now, and Claude editing is reliable, this does make sense. And it does keep the code size down.

WhatsApp? No thanks.

My first question was… how does a bot get access to WhatsApp? This is the preferred contact choice of most OpenClaw users (and NanoClaw). The problem here is that unless you have a business account, you surely don’t own enough stake in the platform to host an arbitrary new user. On closer inspection, it appears that the WhatsApp connection relies on a module called Baileys that scans WhatsApp Web’s WebSocket-based data, which Meta strongly discourages. In fact, accounts using unauthorised methods to connect to WhatsApp are actively monitored and restricted.

I’m hardly going to encourage using such a method, but fortunately, we don’t have to. I do pay for a Slack workspace, and while connecting to Slack is a little painful, it is at least fully accounted for.

Installing

I have Claude installed, of course, connected to a “Pro” account. With the instructions, I do the usual thing:

git clone https://github.com/qwibitai/nanoclaw.git

Then I ran Claude within the new directory with /setup:

👁 Image

I have Docker Desktop installed, as this part requires:

👁 Image

On a Mac, you will see the familiar Docker icon in the Menu Bar if you didn’t start it yourself.

Then we move to how you are connecting to Claude:

👁 Image

Usually, I have to remember to turn the API key off because it’s more expensive than a subscription. This is the first time I’ve seen the two options mentioned side by side—a good sign.

Then we get to the contentious bit:

👁 Image

As I’ve indicated, I don’t think WhatsApp is appropriate, so I’ll be using Slack.

Then we were given the great Slack sidequest:

👁 Image

I now have to find two tokens, but not with my sword and trusty shield, but with the Slack API. I only recommend this campaign for an experienced adventurer. Onwards.

Generating the tokens in Slack

Fortunately, there are some good instructions on the Slack skill, and Claude is patient. First, we need to generate the tokens and scopes.

On Slack, I found the appropriate dialog:

👁 Image

We need to turn on Socket Mode:

👁 Image

Then we need to subscribe to a set of bot events:

👁 Image

And add scopes for OAuth – these limit what the NanoClaw App can do in the account:

👁 Image

And finally, you get to install your new app and fetch the final token:

👁 Image

I have slain the dragon / found the treasure / defeated the Rocketeer. Well, not quite.

Claude crashed. But I quickly got back to where I was, and Claude appears to fix the errant Slack script, and accept my two tokens for its .env file:

👁 Image

Then it was a case of introducing NanoClaw into my Slack channel.

I suspected we were done with Slack itself, but we needed to give it access to my server folders. Remember, this is what we did with Claude Cowork to give it real power:

👁 Image

A nicer way to select the folders would be cool, but I added the folders I was happy for NanoClaw to see:

👁 Image

And then I was able to communicate with NanoClaw on my Slack channel, after getting the correct Claude auth token:

👁 Image

My initial attempt to confirm that NanoClaw could see my folders on my Mac failed:

👁 Image

This is both good and bad. It proved that the agent is sitting in a container and not part of a single app. And of course, I asked Claude to fix itself. I had been tailing the log, so I could relay all the problems back to Claude, which eventually mapped the folders in a way that the NanoClaw agent could understand:

👁 Image

Note how it refers to “the agent” as a separate entity. So I had a back-and-forth between the NanoClaw agent and Claude. I’m still very much the engineer here – but the separation of control is fine. The errors were the ones we all make, not understanding what Linux wants. No one understands what Linux wants.

Eventually, it fixed its internal database and restarted what it needed to for the container. And with the new mapping, I could see my Documents folder:

👁 Image

To check, I added a new file to check it really was mapped live to the directory. Eventually, it did reflect that the file was there.

“I like the fact that Claude thought of the agent sitting in the container as quite separate from itself, and overall this is certainly a much more sensible and secure setup if you really want to be a ‘power user’ who really just needs a secretary to yell at.”

Now this isn’t running on a Mac Mini under my cupboard, but on my laptop. So I won’t be asking for a research document based on a report in my inbox at 2 a.m. while out for a jog, but if I were into that sort of thing, NanoClaw can clearly provide this fairly safely.

While I did need to play engineer to get everything working, in reality, I was telling Claude my problems, and Claude fixed them. For that, I got a direct connection from my mobile Slack app to my server. I like the fact that Claude thought of the agent sitting in the container as quite separate from itself, and overall, this is certainly a much more sensible and secure setup if you really want to be a “power user” who really needs a secretary to yell at.

TRENDING STORIES
David has been a London-based professional software developer with Oracle Corp. and British Telecom, and a consultant helping teams work in a more agile fashion. He wrote a book on UI design and has been writing technical articles ever since....
Read more from David Eastman
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.