---
title: "Running NanoClaw in a Docker Shell Sandbox"
description: "Docker Sandboxes' new `shell` sandbox type provides a minimal Ubuntu microVM with Node.js, Python and git, letting you run agents that aren't built in, such as NanoClaw, a Claude-powered WhatsApp assistant."
url: "https://swe.quest/articles/running-nanoclaw-in-a-docker-shell-sandbox-65e1f079a45a7d5a"
canonical: "https://www.docker.com/blog/run-nanoclaw-in-docker-shell-sandboxes/"
source: "Docker"
published: "2026-02-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 3
tags: ["sandboxing","ai-agents","containers"]
---

# Running NanoClaw in a Docker Shell Sandbox

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-02-16, 3 min read, How-to. Original: [https://www.docker.com/blog/run-nanoclaw-in-docker-shell-sandboxes/](https://www.docker.com/blog/run-nanoclaw-in-docker-shell-sandboxes/)

## Summary

Docker Sandboxes' new \`shell\` sandbox type provides a minimal Ubuntu microVM with Node.js, Python and git, letting you run agents that aren't built in, such as NanoClaw, a Claude-powered WhatsApp assistant. The workspace mount is the only host directory visible, and API keys stay outside the sandbox: Claude Code's \`apiKeyHelper\` returns a sentinel value that Docker's network proxy swaps for the real Anthropic key on outgoing requests. The walkthrough covers creating and connecting to the sandbox, installing Claude Code, cloning NanoClaw, running its \`/setup\` flow and managing sandbox lifecycle. The same create, install, configure-proxy-credentials, run pattern applies to any Linux-based AI agent or bot.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)

## Prerequisites

- Docker CLI basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- Node.js and npm ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Docker Sandboxes, NanoClaw, Claude Code, WhatsApp, Docker Desktop, microVM

## Related posts

- [Run OpenClaw Securely in Docker Sandboxes](https://swe.quest/articles/run-openclaw-securely-in-docker-sandboxes-b17a5a67ad4dfd4c.md): Docker · 2026-02-23 · Medium · 4 min read · Sandboxing & isolation, AI agents, Containers, LLMs
  OpenClaw, an open-source AI coding agent, can run inside Docker Sandboxes (isolated microVMs) against local models served by Docker Model Runner, with no API keys or cloud costs.
- [Your Agent Runs in a Docker Sandbox. Now It Can Join a Team.](https://swe.quest/articles/your-agent-runs-in-a-docker-sandbox-now-it-can-join-a-team-d13b98c33768ccd3.md): Docker · 2026-10-21 · Medium · 6 min read · AI agents, Sandboxing & isolation, Containers
  The BAND AI kit for Docker Sandboxes (docker.io/bandhq/band-python-kit) lets an agent running in an isolated Docker Sandbox microVM join BAND rooms, where it collaborates with humans and with other agents via @mentions, persistent identities and shared message history.
- [Give sandboxed agents live web access with the Firecrawl kit for Docker Sandboxes](https://swe.quest/articles/give-sandboxed-agents-live-web-access-with-the-firecrawl-kit-for-docker-21fc8f1a09b5890f.md): Docker · 2026-11-16 · Medium · 7 min read · Sandboxing & isolation, AI agents, Containers, Security
  The Firecrawl kit is a mixin for Docker Sandboxes that gives isolated coding agents web search, scraping and crawling through a single allowlisted host, api.firecrawl.dev, returning pages as markdown.
- [Running AI agents in GitHub Actions with Docker Sandboxes](https://swe.quest/articles/running-ai-agents-in-github-actions-with-docker-sandboxes-9cf9181798d75585.md): Docker · 2026-08-21 · Medium · 7 min read · AI agents, Sandboxing & isolation, CI/CD, Virtualization, AI for coding
  GitHub Agentic Workflows (gh-aw 0.82.9) supports Docker Sandboxes (sbx) as an agent runtime, so a CI coding agent gets root, sudo and unrestricted shell inside a disposable microVM with its own kernel and private Docker daemon.
- [Why AI Agents Need Isolation](https://swe.quest/articles/why-ai-agents-need-isolation-2e7b1a6342af3236.md): Docker · 2026-07-01 · Easy · 9 min read · Sandboxing & isolation, AI agents, Virtualization, Containers, AI for coding
  AI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
