Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with Nanoclaw Installation

Run a customizable AI assistant with NanoClaw, a lightweight, open-source AI agent platform that runs Claude agents in isolated containers. NanoClaw connects AI agents to messaging platforms and provides features such as persistent memory, scheduled tasks, web access, and customizable skills. It's designed to keep AI agents isolated from the host environment and from one another, and each agent group can have its own memory, workspace, skills, and container. NanoClaw uses Anthropic's Claude, so you'll need a Claude subscription or an Anthropic API key, and usage may incur separate charges. Prompts and any content your agents work with are sent to Anthropic, and messages sent through connected platforms such as Telegram or WhatsApp also pass through those services. With a Self-Managed VPS, you're responsible for configuring, maintaining, updating, and securing your server, your NanoClaw installation, and any actions you allow your agents to take.

Key Benefits of NanoClaw

NanoClaw combines AI agents, messaging integrations, automation, and container isolation into a lightweight and customizable platform.

  • Isolated AI Agents: Run agents in separate containers with their own workspaces and controlled access to mounted files.
  • Multiple Messaging Channels: Connect agents to supported platforms such as WhatsApp, Telegram, Slack, Discord, and other available channels through skills.
  • Separate Agent Memory: Give each agent group its own memory and conversation context for more focused interactions.
  • Scheduled Tasks: Create recurring tasks that enable agents to perform work and send results back through connected channels.
  • Web Access: Allow agents to search for and retrieve information from the web as part of their tasks.
  • Customizable Skills: Add skills to extend NanoClaw with additional channels, tools, and capabilities.
  • Agent Collaboration: Run multiple specialized agents that can work together to complete more complex tasks.
  • Flexible Customization: Modify your NanoClaw setup and skills to tailor agents to your specific workflows.

What Can You Do with NanoClaw?

NanoClaw provides tools for interacting with AI agents, automating tasks, and connecting agents to messaging platforms. You can:

  • Chat with AI Agents: Send messages to your agents through supported messaging channels.
  • Create Separate Agent Groups: Set up agents with their own memory, workspace, skills, and container environments.
  • Connect Messaging Channels: Add supported channels such as WhatsApp, Telegram, Slack, Discord, and other available integrations.
  • Maintain Agent Memory: Store information and context specific to an agent group for ongoing conversations.
  • Schedule Automated Tasks: Create recurring jobs that run an agent and deliver results through a connected channel.
  • Search the Web: Allow agents to search for and retrieve online information while completing tasks.
  • Work with Files: Give agents access to specifically mounted directories where they can read, modify, or create files.
  • Create Custom Skills: Add skills that extend NanoClaw with new channels, tools, or workflows.
  • Run Multiple Agents: Use multiple specialized agents to handle different tasks or collaborate on more complex projects.
  • Customize Agent Behavior: Modify code, skills, memory, and workspace settings to tailor agents to your specific requirements.
  • Manage Agents Through the Main Channel: Use the main control channel to manage agent groups and scheduled tasks.

NanoClaw on a HostGator Self-Managed VPS provides an environment for running customizable AI agents with isolated workspaces, messaging integrations, scheduled tasks, web access, and reusable skills. You can create agents for different workflows while keeping their files, memory, and execution environments isolated according to your configuration.

System Requirements

Before deploying, ensure your server meets the following minimum hardware requirements. For a stable production deployment, we recommend using higher specifications than the minimum requirements.

Resource Minimum Recommended
RAM 4 GB 8 GB

How to Purchase a Self-Managed VPS with Nanoclaw

Pre-configured Setup

Self-Managed VPS - Pre-configured Setup
Not sure which VPS setup is right for you? That's exactly what Pre-configured Setup is for. You'll find this option near the top of the HostGator Self-Managed VPS purchase page, and it takes the guesswork out of getting started. Just tell us what you're building—a WordPress Site, an AI Agent/Claude Code project, a Dev/Staging environment, or an eCommerce Store—and we'll automatically select the right plan, operating system, and template to match.
  • Great option if you're new to VPS or want a fast, easy setup
  • Get the recommended configuration for your project right away
  • No need to figure out the technical details yourself
  • Full flexibility to adjust settings later on
Try Pre-configured Setup and have your HostGator Self-Managed VPS ready to go in minutes!

To use Nanoclaw on HostGator, you first need to buy a Self-Managed VPS plan. Here is how to do it:

  1. Open https://www.hostgator.com/vps-hosting in your browser.
  2. Pick the plan you want and click Choose Plan.

    Self-Managed VPS - Choose Plan
     

  3. Pick a Data Center location.

    Self-Managed VPS - Data Center Locations
     

  4. On the Cart page, you can set up your server the way you want:
    1. Hardware:
      1. Pre-selected:

        You can change to a different Self-Managed VPS plan here.

        Self-Managed VPS - Pre-selected Hardware
         

      2. Configure:

        Click Configure if you want to build your own custom package.

        Self-Managed VPS - Configure
         

    2. Software:
      1. Click the Application tab.
      2. Choose Nanoclaw.

        Self-Managed VPS - Nanoclaw Software
         

      3. In the pop-up, click Confirm.

        Self-Managed VPS - Nanoclaw - Confirm
         

  5. Support & Security:

    You can add Premium Support, an optional paid add-on that gives you a dedicated specialist team for server tuning and migrations, plus priority chat and phone access. The current price is shown in your cart before you complete checkout.

    Self-Managed VPS - Premium Support
     

  6. AI Credits:

    You can add a HostGator AI Credits package, an optional paid add-on that lets you connect your application to supported LLM providers, including Claude, GPT, Gemini, and Grok, using one API key and a single bill. Supported models may change over time. The current price is shown in your cart before you complete checkout.

    Self-Managed VPS - AI Credits
     

  7. In Advanced options, you can set these up if you want:
    • Extra IPs: Add more IP addresses for an extra cost. The price depends on how many you add, and the current price is shown in your cart before you complete checkout.
    • Hostname: Give your server a custom name. This is optional.
    • SSH Key: If you want to log in without a password, add your SSH public key here. This is optional.

      Self-Managed VPS - Advanced Options
       

  8. Choose a billing term, check your Order Summary, then click Continue to Checkout.

    Self-Managed VPS - Initial Continue to Check Out
     

  9. Review your HostGator cart. Some add-ons may be included by default. Review each item, remove any you don't want, then click Continue to Checkout again.

    Self-Managed VPS - Continue to Checkout
     

  10. On the Checkout page, do the following:

    If you are new to HostGator:

    1. Fill in your billing information and contact details. If you don't want marketing emails, uncheck the box at the bottom.

      Self-Managed VPS - Billing Information
       

    2. Create a password for your account.

      Self-Managed VPS - Account Password
       

    3. Choose how you want to pay—credit card or PayPal—and enter your payment details.

      Self-Managed VPS - Payment Method Options
       

    If you already have an account, your HostGator login details will show up once you log in to your Customer Portal. If you are not logged in, click Log In.

    Self-Managed VPS - HostGator Login
     

  11. Review your payment method and order total. If you have a promo code, click Add Promo Code and enter your code. If you need to make changes, click Edit or Add Payment Method. When everything looks correct, click Submit Payment to complete your purchase. By clicking Submit Payment, you agree to the Auto Renewal Terms, Terms of Service, Cancellation Policy, and Privacy Notice.

    Self-Managed VPS - Submit Payment
     

After checkout, your Self-Managed VPS will begin setting up. Once it's ready, you can find it under the Hosting tab in your Customer Portal.

If you have questions about purchasing the Self-Managed VPS hosting, please contact us for assistance.

Configuring Nanoclaw

Once installation wraps up, follow the steps below to get your application configured.

  1. Log in to your Customer Portal.
  2. From the left-hand menu, navigate to Hosting and select My Plans.

    Customer Portal - Hosting tab - View Details
     

  3. Locate the server you want to manage, then click View Details in the bottom-left corner to expand the section and access additional server information.

    Customer Portal - Hosting tab - View Details
     

  4. Click the Reset Password button.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  5. In the pop-up window, type your new root password, then click Reset Password again to confirm and save the changes.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  1. SSH into your server: Launch your terminal and sign in as the root user:
    ssh root@your_server_ip

    Example Output:

    
    Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-124-generic x86_64)
    ********************************************************************************
    
      Nanoclaw AI Agent installed but NOT started -- initial setup required.
    
    --------------------------------------------------------------------------------
      FIRST-TIME SETUP
    --------------------------------------------------------------------------------
    
      Step 1 -- on the HOST (as root), enter the nanoclaw user session:
        machinectl shell nanoclaw@
    
      The remaining steps run INSIDE the machinectl shell:
      Step 2 -- run the setup script:
        cd ~/nanoclaw
        bash nanoclaw.sh
    
      During setup, Nanoclaw generates a long-lived OAuth token and prints:
        export CLAUDE_CODE_OAUTH_TOKEN=<token>
    
      Step 3 -- copy and run that export command in the same shell once setup finishes:
        export CLAUDE_CODE_OAUTH_TOKEN=<token-shown-above>
    
    --------------------------------------------------------------------------------
      RETURNING USERS (2nd login onwards)
    --------------------------------------------------------------------------------
    
      Nanoclaw auto-starts on every boot (linger is enabled).
    
      To use Claude Code (INSIDE machinectl shell nanoclaw@):
        machinectl shell nanoclaw@   <-- run on the HOST
        claude                       <-- run inside machinectl shell
        /exit                        <-- to exit Claude Code
    
    --------------------------------------------------------------------------------
      TROUBLESHOOTING  (all commands run INSIDE machinectl shell nanoclaw@)
    --------------------------------------------------------------------------------
    
      Enter user session first (on the HOST):
        machinectl shell nanoclaw@
    
      Check service status:
        systemctl --user list-unit-files | grep nanoclaw
        systemctl --user status 'nanoclaw-v2-*' --no-pager -l
    
      View live logs:
        journalctl --user -u 'nanoclaw-v2-*' -f
    
      Restart service:
        systemctl --user restart 'nanoclaw-v2-*'
    
      Re-run setup (e.g. "FATAL: No channels connected"):
        cd ~/nanoclaw && bash nanoclaw.sh
    
    --------------------------------------------------------------------------------
      Files & Documents
    --------------------------------------------------------------------------------
    
      App     : /home/nanoclaw/nanoclaw
      Env     : /home/nanoclaw/nanoclaw/.env
      README  : /home/nanoclaw/README.md | /root/README.md
    
      Nanoclaw AI Agent : https://nanoclaw.dev/
    
    ********************************************************************************
    To delete this MOTD: rm -rf /etc/update-motd.d/99-nanoclaw
    
        
  2. Switch into the nanoclaw user session:
    machinectl shell nanoclaw@
    
    root@server-123456:~# machinectl shell nanoclaw@
    Connected to the local host. Press ^] three times within 1s to exit session.
    nanoclaw@server-123456:~$
        
  3. Run the setup script from inside the nanoclaw shell. First, go to the NanoClaw folder:
    cd ~/nanoclaw
    Then run the setup script:
    bash nanoclaw.sh
    
    ◆  How would you like to begin?
    │  ● Standard setup
    │  ○ Advanced (override default)
        
    • Standard setup: The quickest, guided route (uses defaults plus prompts).
    • Advanced (override default): Hands-on configuration for custom ports, environments, or specialized needs.
  4. Wait while the sandbox and vault are created, and respond to the OneCLI prompt:
    
    │  Your assistant lives in its own sandbox. It can only see what you explicitly share.
    ...
    ◆  Found an existing OneCLI at http://172.17.0.1:10254. What would you like to do?
    │  ● Use the existing instance (recommended)
    │  ○ Install a fresh instance for NanoClaw
        
    • Use the existing instance: Keeps things compatible across all your apps (recommended).
    • Install a fresh instance: Sets up a separate, isolated vault (when needed).
  5. Link your Claude account:
    
    ◆  How would you like to connect to Claude?
    │  ● Sign in with my Claude subscription (recommended if you have Pro or Max)
    │  ○ Paste an OAuth token I already have (sk-ant-oat…)
    │  ○ Paste an Anthropic API key (pay-per-use via console.anthropic.com)
    │  ○ Skip — I'll connect later (not recommended)
        
    • Sign in with my Claude subscription: The simplest option if you have a Claude Pro or Max subscription.
    • Paste an OAuth token: Useful if you already have a token from another device or account.
    • Paste an Anthropic API key: Pay-as-you-go billing (through the Anthropic Console).
    • Skip — I'll connect later: Not advised, since it leaves setup incomplete.

    Example outputs for each selection:

    • Sign in with my Claude subscription
      
      Open the browser to sign in…
      Launching: https://claude.ai/oauth?session=abc123
      When sign-in completes:
      ✓ OAuth grant confirmed
      ✓ Linked to Claude subscription as [email protected]
              
    • Paste an OAuth token I already have (sk-ant-oat…)
      
      Paste the OAuth token:
      sk-ant-oat-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      ✓ Token accepted. Linked to Claude account.
              
    • Paste an Anthropic API key
      
      Paste your Anthropic API key:
      sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      ✓ API key accepted. Claude Code API rate limits/billing apply.
              
    • Skip — I'll connect later
      
      ◆  Skip Claude sign-in? The agent won't be able to run until you connect, and we won't be able to help debug setup errors.
      │  ○ Yes / ● No
              
      • If they select Yes (skip):
        
        ⚠ Warning: Skipped Claude sign-in.
        NanoClaw cannot run until Claude is connected!
        Setup will finish, but Claude features unavailable.
                    
  6. Once Claude is connected, choose a display name for your assistant:
    
    ◇  Access rules set. (0s)
    ◇  NanoClaw is running. (4s)
    ◆  What should your assistant call you?
    │  nanoclaw
        
  7. Let the sandbox warm up. If the ping test doesn't succeed, follow the troubleshooting guidance. You might be asked to sign into the Claude CLI, followed by setting your timezone:
    
      Assistant wired up. (1s)
      ...
    ◇  Your assistant didn't reply in time. (30s)
    ◇  Skipping the first chat ─────────────
    │  No reply from your assistant within 30 seconds. Check `logs/nanoclaw.log` for clues, then try `pnpm run chat hi`.
    ...
    ◆  Claude CLI isn't signed in. Sign in now? (a browser will open)
    │  ● Yes / ○ No
    
    ◇  Timezone set. (0s)
    ◆  Your system reports UTC as the timezone. Is that right, or are you somewhere else?
    │  ● Keep UTC (remote server / happy with UTC)
    │  ○ I'm somewhere else
        
  8. Link messaging/chat platforms (Telegram, Discord, etc.):
    
    ◆  Want to chat with your assistant from your phone?
    │  ● Yes, connect Telegram (recommended)
    │  ○ Yes, connect Discord
    │  ○ Yes, connect WhatsApp
    │  ○ Yes, connect Signal (needs signal-cli installed)
    │  ○ Yes, connect iMessage (experimental) (remote Photon only)
    │  ○ Yes, connect Slack (experimental) (needs public URL)
    │  ○ Yes, connect Microsoft Teams (complex setup)
    │  ○ Other… (install via /add- after setup)
    │  ○ Skip for now (I'll just use the terminal)
        

    Example outputs and official setup/token documentation links for each selection:

    • Connect Telegram

      For instructions on creating a Telegram bot and getting an HTTP API access token, check out the Telegram BotFather Setup Guide.

      
      Opening Telegram linking flow…
      Send the following code to @nanoclaw_bot in Telegram:
         /start dcaf-1234
      ✓ Telegram account linked.
              
    • Connect Discord

      For steps on creating a Discord bot and getting your Application Token, see the Discord Developer Getting Started Guide.

      
      Open Discord and message @nanoclaw#1234 the code: dcaf-5678
      ✓ Discord account linked.
              
    • Connect WhatsApp

      For guidance on setting up a WhatsApp Business platform connection and generating a permanent token, check the Meta WhatsApp Cloud API Setup Guide.

      
      A QR code has been generated. Scan it in WhatsApp to connect.
      ✓ WhatsApp linked to your nanoclaw agent.
              
    • Connect Signal
      
      Signal integration requires signal-cli.
      See the docs: https://nanoclaw.dev/docs/signal
              
    • Connect iMessage
      
      iMessage is only supported on remote Photon deployments.
              
    • Connect Slack

      For details on configuring bot permissions and generating a Bot User OAuth Token, see the Slack API Authentication Guide.

      
      Paste your Slack public Webhook URL to complete the link:
              
    • Connect Microsoft Teams
      
      Teams integration is advanced—see full setup guide: https://nanoclaw.dev/docs/teams
              
    • Other…
      
      To add other platforms, use the /add-<name> command after setup.
              
    • Skip for now
      
      No messaging integration selected.
      You can chat via terminal only for now; add integrations any time later.
              
  9. Wrap up and try out your assistant:
    
      You're ready! Chat with `pnpm run chat hi`.
        
    • To chat directly from the terminal:
      pnpm run chat hi
    • If you set up a chat integration, feel free to message your assistant from your linked device too.

Additional Information and Examples

You can run cat /root/README.md to see more information and useful commands:

Example Output:


root@server-123456:~# cat /root/README.md
# Nanoclaw

## Description

NanoClaw is a secure, open-source personal AI agent that connects to messaging apps like WhatsApp and Telegram and runs in isolated containers. Built on the Claude Agent SDK, it supports agent swarms, scheduled tasks, per-group memory, and web access all within a minimal codebase of around 15 files that you can fully read and customize.

This image installs:

- Docker (required container runtime)
- Node.js
- Claude Code CLI
- OneCLI credential gateway
- Nanoclaw application source and dependencies

> **Important:** Nanoclaw is **installed but intentionally not auto-started**.
> Initial setup must be completed first. If started before setup, Nanoclaw exits with:
>
> - `FATAL: No channels connected`

---

## Minimum Requirements

| Resource | Minimum | Recommended |
|----------|---------|-------------|
| RAM      | 4 GB    | 4 GB        |

> **Important:** Claude Code requires at least 4 GB of RAM. Running setup with less will OOM-kill Claude before setup can complete.

---

## Services

| Service | Port | Purpose |
|---------|------|---------|
| OpenSSH | 22   | SSH |

All other ports are blocked by UFW except the explicitly allowed ports.

---

## What Gets Installed

| Component | Version | Notes |
|----------|---------|------|
| Node.js | 22.x | Installed via NodeSource |
| Claude Code | latest | Global CLI (`@anthropic-ai/claude-code`) |
| OneCLI | latest | Credential gateway |
| Docker | latest | Required container runtime |
| Nanoclaw | latest | Cloned from `nanocoai/nanoclaw` |

Nanoclaw is installed to:

```text
/home/nanoclaw/nanoclaw

Loading...