This NanoClaw setup guide for self-hosted AI agents gets you from a cloned repository to an assistant you can message. NanoClaw runs on your machine and puts agent sessions in containers; the installer handles dependencies, provider setup, and your first messaging channel. You still need to choose what the agent can access and verify that the finished setup behaves as expected.
The procedure below follows the project’s published installer description as of December 5, 2026. It has not been independently tested for this article. Installer prompts and dependencies can change, so compare them with the repository before running anything.
Before you run the installer
Use macOS, Linux, or Windows with WSL2. You’ll need terminal access, Git, and credentials for the provider you select. The installer can install missing dependencies, including Node.js, pnpm, Docker, and OneCLI. It asks whether Claude or Codex should power the first agent. Have the appropriate provider account or API credential ready, and review the provider’s billing terms before connecting it.
A NanoClaw account is optional. Setup’s default path offers an account-backed prebuilt agent image for the Claude runtime. You can decline the portal and build the image locally instead. A local build still downloads a base image and packages, so it requires network access.
Run the setup on a machine where you can approve software installation and container use. Read the repository’s setup documentation and inspect the script before executing it: the installer changes the machine, and a container does not make the host-side installation risk-free. If you want to customize the code later, consider forking the repository before cloning it; for an initial evaluation, the main repository is sufficient.
NanoClaw setup guide for self-hosted AI agents: installation
The official install sequence clones the repository, enters the checkout, and runs the script. The commands below use the project’s example directory name. On Windows, run them from the WSL2 environment rather than a regular Windows shell.

- Clone the project with `git clone https://github.com/nanocoai/nanoclaw.git nanoclaw-v2`.
- Enter the checkout with `cd nanoclaw-v2`.
- Run the installer with `bash nanoclaw.sh` and follow its provider, image, and channel prompts.
The script walks you through the first agent and its messaging connection. For the account-backed image offer, setup asks “Enable Echo’s hardened agent image? Open the perks dashboard in your browser?” The default is yes. Answer no if you want to skip the account and build locally; declining sign-in also leads to a local build.
For the channel, follow the instructions shown by your installed version and the messaging service. The exact authorization and pairing flow depends on the service. Avoid pasting tokens into a chat or committing them to your fork. If a prompt differs from this walkthrough, stop and check the repository documentation rather than guessing what the installer will do.
What runs locally, and where data goes
NanoClaw uses a Node.js host process to coordinate agent sessions in isolated Linux containers. The project says containers can see what is explicitly mounted into them, and OneCLI’s Agent Vault routes credentials by default. Treat both as useful controls, not as permission to mount an entire home directory or give the agent unrestricted access to valuable data.
Self-hosted also does not automatically mean offline. Messages go to the model provider and connected chat apps. A hosted model can incur usage charges even though NanoClaw itself is open source. An Ollama model can run locally without a hosted-model bill, but configuring it is separate from selecting the first provider during setup.
The repository describes setup and uninstall diagnostics sent under a random per-install ID, even without an account. They include setup choices, timing, failures, and environment details; an error can include a name entered during setup. Set `NANOCLAWNODIAGNOSTICS=1` in the environment before running the installer if you want to disable those diagnostics. Review the repository’s privacy details for the version you install.

Opening the optional portal can share a device label based on the hostname and checkout folder name, even before sign-in. Signing in shares additional account and host details. Slack-related options have their own disclosures, including information used to create an app or an agent avatar. Read those disclosures before enabling the integration, especially on a shared machine.
Verify the first message without granting broad access
Once pairing is complete, send a harmless request through the chosen channel, such as asking the assistant to summarize a short paragraph included in the message. Confirm that a response arrives in the intended conversation. This checks the channel-to-agent path; it does not prove that every tool, mount, or security boundary is configured correctly.
Next, inspect the setup’s container and mount configuration using the documentation for your installed version. Identify which local directories the agent can read or change. Start with a disposable workspace rather than a production repository or a directory containing personal files. If you later give an agent access to a codebase, review its diff and run the project’s tests independently before accepting changes.
Also check what happens when the host process or container runtime stops. A self-hosted assistant depends on your machine being available, and a successful first message does not establish that it will restart automatically. Consult the project’s deployment instructions before relying on it for unattended work.
When setup or pairing fails
Separate installation failures from provider and channel failures. If the script stops while installing dependencies, read the failed step and inspect the installer output before rerunning it. On Windows, confirm you are working inside WSL2 and that the container runtime is accessible from that environment. Avoid copying an error log into a public issue until you have removed credentials and identifying details.
If the installer completes but the assistant cannot answer, check provider authentication and billing first, then check the channel’s authorization and pairing status. Use the project documentation for the exact version you installed; an old tutorial may describe a different setup flow. Record the NanoClaw revision, operating system, runtime versions, and the failed step when asking for help.
Before expanding access, repeat the small message check after any provider or channel change. Keep a record of the mounts and permissions you approved, so you can remove access deliberately when the experiment ends.
