Skip to main content

Quick Start

Get NullClaw running in under 5 minutes. This guide covers building from source, initial setup, and running your first agent command.
Prerequisite: You must use Zig 0.15.2 (exact version).0.16.0-dev and other Zig versions are currently unsupported and may fail to build.Verify before building: zig version should print 0.15.2.

Prerequisites

Required

  • Zig 0.15.2 (exact version)
  • Git for cloning the repository
  • libc (standard C library)

Optional

  • SQLite (if building with SQLite memory backend - enabled by default)
  • Docker (for sandboxed tool execution)
  • OpenSSL/LibreSSL (for TLS support in channels)

Install Zig 0.15.2

Build NullClaw

1

Clone the repository

2

Build the binary

Build with size optimization for the smallest binary:
Build output:
The binary will be created at zig-out/bin/nullclaw.
Binary size: The ReleaseSmall build produces a ~678 KB binary on most platforms.For development builds (with debug symbols), use:
3

Verify the build

Check the binary size and test basic functionality:
Expected output:
4

Optional: Install globally

For convenient access from anywhere:
If you skip global installation, prefix all commands with zig-out/bin/, for example:

Initial Setup

1

Run the onboarding wizard

NullClaw includes an interactive setup wizard to configure your AI provider and preferences:
Or quick setup with API key:
The wizard will:
  1. Ask for your AI provider (OpenRouter, OpenAI, Anthropic, etc.)
  2. Request your API key (stored encrypted)
  3. Configure default model preferences
  4. Set up security and workspace settings
  5. Optionally configure messaging channels (Telegram, Discord, etc.)
2

Verify configuration

Check that the configuration was created successfully:
Expected output:

Run Your First Agent

1

Single message mode

Send a single message to the agent:
Expected output:
2

Interactive chat mode

Enter interactive mode for a conversation:
You’ll see a prompt where you can type messages:
3

Try built-in tools

NullClaw has access to various tools. Try asking it to:
Expected output:
Then recall it:
Expected output:

Start the Gateway (Optional)

For 24/7 operation with messaging channels, run the gateway:
Expected output:
The gateway binds to 127.0.0.1:3000 by default and requires pairing for security. Use --port to change the port:

Start Specific Channels

After gateway is running, start configured channels:

Run as a Service

For production deployment, install NullClaw as a system service:

System Diagnostics

Run comprehensive system checks:
Expected output:

Benchmark Your Installation

Measure startup time and memory usage:
Expected metrics:

Next Steps

Configuration Guide

Learn about advanced configuration options and provider setup

Available Tools

Explore the built-in tools NullClaw can use

Security Model

Understand sandboxing, pairing, and access controls

Channel Setup

Configure Telegram, Discord, Slack, and other messaging platforms

Troubleshooting

Build Errors

Error: error: incompatible zig versionSolution: Ensure you’re using exactly Zig 0.15.2:
Error: error: unable to find library 'sqlite3'Solution: Install SQLite development headers:
Error: permission denied: zig-out/bin/nullclawSolution: Make the binary executable:

Runtime Issues

Error: error: provider authentication failedSolution: Check your API key:
Error: error: config file not foundSolution: Run the onboarding wizard:

For more help, see the full documentation or open an issue on GitHub.