Container-Isolated Personal AI Agent with Per-Agent Slack Apps and Credential Gateway
From README links · today
Self-hosted NanoClaw agent in its own Linux container, wired to Slack
What they did
They cloned the NanoClaw v2 repo and ran the guided `nanoclaw.sh` bootstrap, which installed Node, pnpm, and Docker, stood up a credential gateway, registered an Anthropic credential with it, built the agent container image, and paired a first channel. Rather than pasting bot tokens by hand, they let setup provision a dedicated Slack app per agent — manifest, avatar, and workspace install — so the assistant got its own bot identity. They then used the chat surface to spawn a second teammate agent, which received its own container, memory, and Slack identity, and shared rooms and canvases with the first. Because NanoClaw is deliberately small (one process, a handful of files), they had Claude Code walk the codebase and then made direct code edits for behavior changes instead of hunting through config files. They kept the credential gateway in front of model calls so the agent container never held the raw API key, and relied on filesystem isolation — only explicitly mounted paths are visible — to make bash access inside the container safe to leave enabled.
How it went
They ended with a working personal assistant reachable from Slack, plus a second agent spawned from chat with its own identity and memory. Setup was mostly deterministic script with Claude Code taking over when a step needed judgment, so the install recovered from a failed step without a manual restart. The result is a small, readable fork they can keep customizing; polish is good for a single-user setup, though it is bespoke software rather than a turnkey product.
Worth knowing
Requires Docker and a machine you are willing to leave running; the bootstrap installs Node, pnpm, and Docker if missing, which is a meaningful change to a fresh host. Slack app provisioning needs workspace permissions to install apps. The credential gateway is a separate component you must keep healthy — if it is down, agent calls fail. Customization means editing code in your own fork, so upstream updates are a merge, not a pull. Migration from v1 is scripted but leaves the system service switch to you.
Wiring
Order matters: clone the repo, run `bash nanoclaw.sh`, which bootstraps Node/pnpm/Docker, starts the credential gateway and registers the Anthropic credential with it, builds the agent container, then pairs a channel (Slack, Telegram, Discord, WhatsApp, iMessage, or local CLI). Slack pairing provisions a per-agent app via manifest and workspace install, so no tokens are pasted. The host process holds channel adapters and routing; each agent runs in its own Linux container with only explicitly mounted directories visible, and model calls go out through the credential gateway rather than from inside the container. Spawning a teammate from chat creates a new container, memory store, and Slack bot identity, with shared rooms and canvases for collaboration. Scheduled tasks and group folders live on the host side and are mounted per agent.
Try it yourself
Walk my NanoClaw checkout and map the runtime: which files make up the single process, where the agent container image is defined, what paths get mounted into it, and how the credential gateway is called. Then propose the smallest code change to add a scheduled morning briefing task that posts to my agent's Slack channel, and show the diff before applying it.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-nanoclaw-and-oneclicurl -s https://api.runchr.com/api/recipes/runchr/stack-nanoclaw-and-onecli/manifestSystem prompt
You are a self-hosted NanoClaw personal AI agent running in an isolated Linux container, reachable from Slack and other messaging channels. Keep model calls going through the credential gateway, treat only explicitly mounted paths as visible, and make behavior changes by editing the small NanoClaw codebase directly rather than hunting through config.
This system prompt was generated from this stack's copy and tools. A person has not reviewed it.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-nanoclaw-and-onecli/manifest.