Skip to main content
Software Engineering Daily

NanoClaw and the Rise of Personal AI Agents

63 min episode · 3 min read
·
Gabriel Cohen,Kevin Ball

Episode

63 min

Read time

3 min

Topics

Startups, Leadership, Design & UX

AI-Generated Summary

Key Takeaways

  • Zero-trust agent security: Never place API keys, tokens, or credentials inside an agent's environment. NanoClaw proxies all outbound requests through a vault that injects credentials externally. This prevents prompt-injected agents from exfiltrating credentials even when processing unsanitized data like emails or pull requests — a direct architectural response to OpenClaw storing credentials in plain-text agent environments.
  • SQLite inbox/outbox isolation: Agent communication uses two separate SQLite databases — one the host writes to and the agent reads from, one the agent writes to and the host reads from. This prevents read/write conflicts and ensures the host process controls all routing. Artifacts pass through designated folder locations only, blocking agents from writing arbitrary paths the host might execute.
  • Container spin-up/spin-down scaling: A single 16-CPU, 64GB RAM machine runs approximately 200 concurrent agent containers. Smaller machines handle 8–10. Containers spin down after 30 minutes of idle activity, with the host process sweeping inboxes for scheduled messages with future timestamps and spinning containers back up only when needed, preserving resources across large multi-agent deployments.
  • Pre-task scripts to reduce token burn: Agents can write lightweight scripts that run before scheduled tasks to programmatically decide whether to wake the full agent. Instead of polling an email inbox every 5–10 minutes with a full LLM context, a deterministic script checks conditions first. This prevents the token overconsumption patterns that caused Anthropic to block accounts using persistent agent loops.
  • Skills as agent-applied code patches: NanoClaw's customization model treats integrations like Spotify or Telegram as "skills" — structured prompts containing file additions, append-only imports, and dependency install commands. A coding agent applies the skill to a fork without modifying core files beyond minimal integration points. This allows upstream changes to merge cleanly while each fork maintains unique capabilities without constant conflict resolution.

What It Covers

Gabriel Cohen, founder of NanoClaw, explains how his open-source project addresses the security failures of OpenClaw by isolating AI agents in Docker containers, keeping credentials outside agent environments, and enforcing human-in-the-loop approval gates. The conversation covers sandbox architecture, multi-agent communication, context window management, and a ShadCN-inspired fork-based customization model.

Key Questions Answered

  • Zero-trust agent security: Never place API keys, tokens, or credentials inside an agent's environment. NanoClaw proxies all outbound requests through a vault that injects credentials externally. This prevents prompt-injected agents from exfiltrating credentials even when processing unsanitized data like emails or pull requests — a direct architectural response to OpenClaw storing credentials in plain-text agent environments.
  • SQLite inbox/outbox isolation: Agent communication uses two separate SQLite databases — one the host writes to and the agent reads from, one the agent writes to and the host reads from. This prevents read/write conflicts and ensures the host process controls all routing. Artifacts pass through designated folder locations only, blocking agents from writing arbitrary paths the host might execute.
  • Container spin-up/spin-down scaling: A single 16-CPU, 64GB RAM machine runs approximately 200 concurrent agent containers. Smaller machines handle 8–10. Containers spin down after 30 minutes of idle activity, with the host process sweeping inboxes for scheduled messages with future timestamps and spinning containers back up only when needed, preserving resources across large multi-agent deployments.
  • Pre-task scripts to reduce token burn: Agents can write lightweight scripts that run before scheduled tasks to programmatically decide whether to wake the full agent. Instead of polling an email inbox every 5–10 minutes with a full LLM context, a deterministic script checks conditions first. This prevents the token overconsumption patterns that caused Anthropic to block accounts using persistent agent loops.
  • Skills as agent-applied code patches: NanoClaw's customization model treats integrations like Spotify or Telegram as "skills" — structured prompts containing file additions, append-only imports, and dependency install commands. A coding agent applies the skill to a fork without modifying core files beyond minimal integration points. This allows upstream changes to merge cleanly while each fork maintains unique capabilities without constant conflict resolution.
  • Use frontier coding agents as building blocks, not LLM APIs: Building agents from raw LLM API calls requires solving caching, compaction, session management, and tool definitions — months of work that Claude Code, Codex, and OpenCode already handle. Cohen recommends treating these coding agents as infrastructure primitives and building orchestration, workflows, and products on top. Optimize for value delivery first; address token cost economics only after validating the use case.

Notable Moment

Cohen describes setting up an agent named Andy for his wife via WhatsApp. Skeptical the agent would follow through, he asked Andy directly how it planned to monitor a clothing sale. The agent listed specific product URLs, explained its self-scheduled 9AM daily browser checks, and outlined its price-comparison logic — demonstrating genuine autonomous planning without any human prompting.

Know someone who'd find this useful?

Episode Transcript

AI agents have shown remarkable potential to function as persistent digital assistants that are capable of monitoring data, managing communications, and taking action autonomously over long periods. OpenClaw was one of the first serious attempts to fulfill that vision, connecting Frontier coding agents to messaging platforms like Slack and WhatsApp and letting them run continuously in the background. However, OpenClaw largely set aside questions of security to pursue that vision, leaving credentials exposed in the agent's environment and giving agents broad access to data and services far beyond what any given task required. Nanoclaw is an open source project that takes a zero trust approach to agent orchestration. Rather than relying on instructions to constrain agent behavior, it isolates each agent in its own Docker container, keeps credentials entirely outside the agent's environment, and enforces human in the loop approval for sensitive actions. Gabriel Cohen is the founder of NanoClaw, and he joins Kevin Ball to discuss the security architecture behind NanoClaw, how the agent sandbox and proxy model work in practice, how agents communicate with each other and with the host orchestration process, how the project approaches context window management and long lived agent sessions, and more. Kevin Ball or Kay Ball is the vice president of engineering at Mento and an independent coach for engineers and engineering leaders. He cofounded and served as CTO for two companies, founded the San Diego JavaScript meetup, and organizes the AI in Action discussion group through Latent Space. Check out the show notes to follow Kay Ball on Twitter or LinkedIn, or visit his website, kball.llc. Gabriel, welcome to the show. Thank you. Great to be here. Yeah. I'm excited to dig in with you. This is a topic I was very excited to get the opportunity to discuss. But before we do, let's start with you a little bit. Can you share just a quick overview of your background and how you came to build Nanoclaw? Absolutely. I studied physics and computer science at Tel Aviv University. And, actually, during university, I started to work at wix.com as a student. I worked there as a software developer, started in front end, moved over to full stack, and then led a team of developers there. Spent a total of about seven years. Actually stopped programming for a few years and took a break and worked in public relations and promoted tech companies. And then jumped back in about a year and a half ago or a year and two months ago. Right around when Cloud Code came out, I felt like there's this huge opportunity. You gotta dive back in, started building things, and that's when I got to Nanoclaw. So for those who may not be familiar, I think a lot more folks have heard of OpenClaw at this point. But what is NanoClaw? Let's just give the quick TLDR. So NanoClaw is an open source project, and it is a safe, secure alternative to OpenClaw. So OpenCloud is this wild …

Get the full transcript (11,609 words) + summary by email — free

One-time email with the complete transcript and AI summary of this episode. No account needed.

One email, no spam. We’ll also show you what SignalCast does.

Browse all Software Engineering Daily transcripts →

You just read a 3-minute summary of a 60-minute episode.

Get Software Engineering Daily summarized like this every Monday — plus up to 2 more podcasts, free.

Pick Your Podcasts — Free

Keep Reading

Books, tools, and gear mentioned in this episode

SignalCast may earn commission on purchases via these links.

Tools

  • NanoClaw addresses the security failures of OpenClaw by isolating AI agents in Docker containers, keeping credentials outside agent environments, and enforcing human-in-the-loop approval gates.
  • his open-source project addresses the security failures of OpenClaw by isolating AI agents in Docker containers, keeping credentials outside agent environments
  • Gabriel Cohen, founder of NanoClaw, explains how his open-source project addresses the security failures of OpenClaw by isolating AI agents in Docker containers, keeping credentials outside agent environments, and enforcing human-in-the-loop approval gates.
  • Agent communication uses two separate SQLite databases — one the host writes to and the agent reads from, one the agent writes to and the host reads from.
  • Claude CodeRecommended

    by Anthropic

    Building agents from raw LLM API calls requires solving caching, compaction, session management, and tool definitions — months of work that Claude Code, Codex, and OpenCode already handle.
  • The conversation covers sandbox architecture, multi-agent communication, context window management, and a ShadCN-inspired fork-based customization model.
  • [{"name": "Notion", "url": "https://notion.com/sed"}]
  • [{"name": "BitDrift", "url": "https://bitdrift.io/sign-up"}]

More from Software Engineering Daily

We summarize every new episode. Want them in your inbox?

Similar Episodes

Related episodes from other podcasts

Explore Related Topics

This podcast is featured in Best Cybersecurity Podcasts (2026) — ranked and reviewed with AI summaries.

Read this week's Startups & Product Podcast Insights — cross-podcast analysis updated weekly.

You're clearly into Software Engineering Daily.

Every Monday, we deliver AI summaries of the latest episodes from Software Engineering Daily and 192+ other podcasts. Free for one show.

Start My Monday Digest

No credit card · Unsubscribe anytime