Skip to main content

Installation Guide

This guide covers multiple ways to install and run profClaw.

Table of Contents


Requires Node 22+.
  1. Install the package globally:
  1. Run the setup wizard (configures AI provider, admin account, and registration mode):
  1. Start the server:
The server starts at http://localhost:3000. Verify it works:

One-Line Install

Auto-detects npm/pnpm or Docker and installs accordingly:
  1. Run the install script:
  1. Follow the prompts, then start the server as directed by the script output.
  2. Verify the server is up:

From Source (Development)

Prerequisites

  • Node.js 22+ — Download
  • pnpm — installed via corepack
  • Redis — for the job queue (optional in development)

Steps

  1. Clone and install dependencies:
  1. Configure your environment:
  1. Start the dev server:
The server starts at http://localhost:3000 with hot reload enabled. Verify it works:

Docker Installation

  1. Clone the repository:
  1. Create and configure your environment file:
  1. Start all services:
  1. Verify the server is up:
Other useful commands:

Available Profiles

Using Pre-built Image

  1. Pull the image:
  1. Run the container (requires Redis):
  1. Verify it works:

Production Deployment

Requirements

  • Redis — required for the job queue
  • Persistent storage — for the SQLite database
  • Reverse proxy — Nginx or Cloudflare for HTTPS

Docker Compose Production

  1. Set environment variables in .env:
  1. Deploy:
  1. Verify the deployment:
Docker Compose includes automatic health checks with restart on failure.

Cloudflare Tunnel

For secure exposure without port forwarding:
  1. Install cloudflared:
  1. Authenticate and create a tunnel:
  1. Create a config file (~/.cloudflared/config.yml):
  1. Start the tunnel:
  1. In the Cloudflare dashboard, create a DNS CNAME record pointing profclaw.yourdomain.com to <TUNNEL_ID>.cfargotunnel.com.

Environment Configuration

Required Variables

AI Providers

Configure at least one:

Integrations

See .env.example for the complete list.

First-Time Setup

After starting the server, create your admin account using the setup wizard.
The wizard configures:
  • AI provider (Anthropic, OpenAI, Ollama, or skip)
  • Admin account with recovery codes
  • Registration mode (invite-only or open)
  • GitHub OAuth (optional)

Option 2: Local CLI

Option 3: Web UI

Visit http://localhost:3000/setup and follow the on-screen wizard.

Low-Memory Devices (Raspberry Pi Zero, 512MB VPS)

On devices with 512MB RAM or less, npm install -g profclaw will get killed by the OOM killer before it finishes. Three options: The pico image is pre-built and skips npm install entirely. It runs the agent engine, tools, and one chat channel in roughly 140MB RAM with no UI and no Redis.
  1. Pull and run the pico image:
  1. Or build locally from Dockerfile.pico:
  1. Verify it works:

Option 2: Add swap before npm install

  1. Extend swap to 1GB so npm has enough memory:
  1. Install and start in pico mode:
  1. Verify it works:

Option 3: Cross-install from another machine

  1. Install on a machine with more RAM:
  1. Copy to the target device and run:

Hardware requirements by mode


Troubleshooting

Redis Connection Issues

Database Errors

AI Provider Errors

Check that your API keys are valid:

Port Already in Use

Docker Build Issues


Upgrading

Docker

Manual Installation


FAQ

npm install gets killed on low-memory devices The OOM killer terminates npm install when RAM runs out. Two fixes: add 1GB of swap before installing (see Option 2 in the low-memory guide), or skip npm install entirely by using the Docker pico image (see Option 1). Port 3000 is already in use Find what is listening on it:
Then kill that process by PID, or start profClaw on a different port by setting PORT=3001 in your .env. No AI provider configured Set at least one of these environment variables before starting the server:
See Environment Configuration for the full list. How do I use a local AI model?
  1. Install Ollama on your machine.
  2. Pull a model:
  1. Set OLLAMA_BASE_URL in your .env:
  1. Restart profClaw. The Ollama provider shows up automatically in the model list.
If you are running profClaw inside Docker, use http://host.docker.internal:11434 instead of localhost.

Getting Help