Quick Start
1
Pull the image
2
Run the gateway
3
Verify it's running
Building from Source
The Dockerfile uses a multi-stage build optimized for binary size:Multi-architecture Builds
The Dockerfile supports both AMD64 and ARM64:TARGETARCH argument automatically selects the correct Zig target:
amd64→x86_64-linux-muslarm64→aarch64-linux-musl
Environment Variables
string
required
Your AI provider API key
string
default:"/nullclaw-data/workspace"
Workspace directory for agent operations
string
default:"/nullclaw-data"
Home directory for config and data
string
default:"3000"
Gateway HTTP port
Docker Compose
For production deployments, use docker-compose:Running Services
- Gateway only
- Agent only
- Both
Security Modes
NullClaw provides two Docker build targets:Safe Default (Non-root)
65534:65534 (nobody). This is the default.
Autonomous Mode (Root)
Configuration
The Docker image includes a default config at/nullclaw-data/.nullclaw/config.json:
Persistent Storage
Use named volumes to persist data across container restarts:~/.nullclaw/config.json- Configuration~/.nullclaw/memory.db- SQLite memory backend~/workspace/- Agent workspace files
Health Checks
The gateway exposes a/health endpoint:
Logging
View container logs:Resource Limits
NullClaw is designed for minimal resource usage:- Binary size: < 1 MB (ReleaseSmall)
- Memory footprint: < 5 MB peak RSS
- Zero dependencies beyond libc