Null Overhead. Null Compromise. 100% Zig.

NullClaw Lobster

The smallest fully autonomous AI assistant infrastructure. A static Zig binary that fits on any $5 board, boots in milliseconds, and requires nothing but libc.

678 KB
Binary Size
<2 ms
Startup Time
~1 MB
Peak RSS
100%
Zig Built

01.The NullClaw Philosophy

Modern AI infrastructure has become bloated. Heavy runtimes, massive dependency trees, and enormous memory requirements have made deploying autonomous assistants difficult and expensive. NullClaw rejects this approach.

Lean by Default

Written entirely in Zig, NullClaw compiles into a tiny static binary. We eliminated allocator overhead, garbage collection delays, and runtime dependencies. The result is pure, unadulterated performance that runs on anything with a CPU.

Secure by Design

Security is not an afterthought. NullClaw enforces pairing, strict multi-layer sandboxing (Landlock, Firejail, Bubblewrap, Docker), explicit command allowlists, scoped workspaces, and encrypted secrets at rest.

Fully Swappable

NullClaw’s core architecture relies on interface abstractions. Every subsystem—providers, channels, tools, memory, tunnels, and observability—can be swapped or extended without modifying the core logic.

02.Feature Complete

Despite its minuscule footprint, NullClaw delivers the complete stack required to orchestrate advanced autonomous assistants. We have built 2,843 tests to ensure perfect reliability.

Extensive Compatibility

NullClaw prevents vendor lock-in. It supports over 22 API providers including OpenRouter, Anthropic, OpenAI, Ollama, Venice, Groq, Mistral, xAI, DeepSeek, and more. Any OpenAI-compatible endpoint can be implemented effortlessly via straightforward configuration.

Omnichannel Routing

Your assistants should operate where you do. We provide 11 built-in communication channels including CLI, Telegram, Discord, Slack, iMessage, Matrix, WhatsApp, Webhooks, IRC, and specialized integrations for hardware like MaixCam.

Hybrid Memory Engine

We engineered a self-contained SQLite memory backend with zero external dependencies. It executes hybrid search, combining vector cosine similarity with FTS5 keyword matching via BM25 scoring. It handles auto-archival and data hygiene autonomously.

Comprehensive Tooling

Assistants require capabilities to effect change. NullClaw ships with over 18 tools handling file manipulation, shell command execution, memory operations, browser interaction, localized hardware diagnostics, and Composio integration for extensive enterprise connectivity.

Hardware Peripherals

Take AI out of the cloud and into the physical world. NullClaw communicates directly with hardware peripherals, offering interfaces for Serial connections, Arduino devices, Raspberry Pi GPIOs, and STM32/Nucleo boards.

Agnostic Tunnels & Runtimes

Deploy specific models within Docker, WASM, or Native environments. Access your instance securely behind firewalls using integrated tunneling abstractions linking to Cloudflare, Tailscale, ngrok, or bespoke solutions.

Performance Benchmarks

We tested NullClaw against the leading alternatives in the space. The results speak for themselves. Measurements taken on macOS arm64 and normalized for 0.8 GHz edge hardware.

MetricOpenClawNanoBotPicoClawNullClaw
LanguageTypeScriptPythonGoZig
RAM> 1 GB> 100 MB< 10 MB~1 MB
Startup (0.8 GHz)> 500 s> 30 s< 1 s< 8 ms
Binary Size~28 MBN/A~8 MB678 KB
Hardware Cost targetMac Mini ($599)Linux SBC (~$50)Embedded ($10)Sub-$5 Edge

03.Deep Security Engine

Executing code and interacting with files autonomously demands absolute control. NullClaw enforces security constraints at every stage of execution. Handing the keys over to an assistant doesn't mean giving up safety constraints.

01

Zero Public Exposure

The HTTP Gateway binds to 127.0.0.1 by default and explicitly refuses 0.0.0.0 mapping without active tunnels or specific override flags.

02

Authenticated Pairing

A 6-digit one-time code is generated on startup. This code must be exchanged via a POST payload to obtain the persistent bearer token for communications.

03

Filesystem Scoping

Workspaces are strictly enforced. Null byte injection is actively blocked, and advanced symlink escape detections protect the host filesystem.

04

Dynamic Sandboxing

The runtime auto-detects the host environment capabilities to deploy the strongest supported sandbox backend: Landlock, Firejail, Bubblewrap, or Docker.

05

Encrypted API Secrets

Plain text API keys are eliminated. NullClaw encrypts keys using ChaCha20-Poly1305 with a local key file ensuring data is protected at rest.

06

Audit Trails

Every action is recorded in a cryptographically signed event trail allowing operators to review actions with confidence. Logs are managed and pruned continuously.

04.Installation

Deployed in seconds. Fully compiled.

terminal
# Clone the repository
~$ git clone https://github.com/nullclaw/nullclaw.git && cd nullclaw
# Build the static, size-optimized 678 KB binary
~/nullclaw$ zig build -Doptimize=ReleaseSmall
# Quick Setup using your preferred model provider
~/nullclaw$ zig-out/bin/nullclaw onboard --api-key sk-... --provider openrouter
# Or use the interactive terminal wizard
~/nullclaw$ zig-out/bin/nullclaw onboard --interactive
# Begin an interactive assistant control session
~/nullclaw$ zig-out/bin/nullclaw agent
Initializing sandbox... [OK]
Loading memory vectors... [OK]
Connecting gateway... 127.0.0.1:3000
NullClaw Ready. Awaiting instructions.

Advanced Command Line Interface

NullClaw is designed to be fully manageable from the terminal, making it ideal for headless servers, IoT deployments, and automation scripts.

gateway
Initialize the webhook receiver on localhost to ingest external API events.
daemon
Execute the background supervisor for continuous autonomous operation.
agent -m "..."
Perform a single-shot execution for quick tasks from bash scripts.
doctor
Scan the system for memory, dependency, and configuration health.
hardware scan
Discover attached serial devices, Arduinos, and STM32 peripherals.
migrate openclaw
Safely convert historical OpenClaw workspace memories into local SQLite vectors.

Frequently Asked Questions

05.Deep Technical Insights

Understanding the internal mechanics of NullClaw reveals why a 678 KB static binary can outperform runtimes requiring gigabytes of memory. Our architectural decisions prioritize determinism, efficiency, and explicit control.

The Hybrid Memory Architecture

Most AI agents rely on external vector databases, increasing architectural complexity, latency, and cost. NullClaw implements a unified, local memory system built directly on top of SQLite, ensuring data locality and zero network overhead for internal recollections.

The core innovation is our Hybrid Merge strategy. Relying solely on vector cosine similarity often fails when querying specific identifiers, IDs, or exact terminology. Conversely, pure keyword search misses semantic intent. NullClaw solves this by executing both simultaneously:

  • ✓
    Vector Subsystem: Embeddings are calculated (via providers like OpenAI or locally) and stored as highly compressed BLOBs. Kosine similarity is calculated in-process to retrieve semantically related memories.
  • ✓
    Keyword Subsystem: All text is indexed via SQLite's FTS5 virtual tables. BM25 scoring is applied algorithms to fetch exact matches with high precision.
  • ✓
    Weighted Merge: By default, we apply a 0.7 weight to vector similarity and 0.3 weight to keyword relevance, combining the arrays, normalizing scores, and yielding the optimal context window for the LLM.
// Sample configuration snippet for the memory engine
"memory": {
"backend": "sqlite",
"auto_save": true,
"embedding_provider": "openai",
"vector_weight": 0.7,
"keyword_weight": 0.3,
"hygiene_enabled": true
}

Standardized Identity with AIEOS

How an assistant behaves is fundamentally tied to its given persona. The AI Entity Object Specification (AIEOS) v1.1 protocol supported by NullClaw provides a deterministic JSON/Markdown structure for defining an assistant's psychology, boundaries, linguistic traits, and core motivations.

While NullClaw natively parses legacy OpenClaw markdown formats (like classic IDENTITY.md structures), transitioning to AIEOS provides programmatic validation. The IdentityConfig subsystem ingests these schemas and maps them dynamically into the system prompt compilation phase, guaranteeing that context windows are explicitly structured before dispatching to the LLM backend.

Psychological Profiling

Define explicit behavioral traits, conflict resolution strategies, and ethical boundaries that the model must obey.

Linguistic Constraints

Control vocabulary, tone, syntax structure, and dictate forbidden phrasings to maintain a consistent output style.

Zero-Overhead Abstractions

The monolithic architectures of the past tightly coupled logic, making customization difficult and error-prone. NullClaw solves this via its Zig-based vtable interfaces. Every critical path operates through highly optimized, zero-cost abstractions modeled closely to trait requirements.

When you switch the LLM Provider from Anthropic to a local Ollama instance, or swap the tunneling proxy from Cloudflare to Tailscale, the core engine logic remains untouched. The Configuration Engine dynamically instantiates the correct struct implementing the required interface (e.g., the `Provider` or `Tunnel` standard), injecting dependencies at initialization.

This decoupled philosophy extends to: AI Models, Telemetry Observers, Runtime Adapters, Sandbox implementations, Heartbeat schedulers, hardware Peripherals, and the automated Cron job engines. Extending NullClaw merely requires writing a single Zig file that implements the correct struct behavior, avoiding cascading logic changes across main branches.

Join the Development

NullClaw remains a fiercely independent open-source project. We rely on community engineering to maintain our lean execution profile, expand our hardware peripheral support, and refine our memory algorithms. Development is primarily coordinated via our GitHub repository.

06.Advanced Gateway Routing

The internal HTTP Gateway subsystem operates as the central nervous system for external communications, managing state, validating authenticity, and enforcing rigorous rate limiting policies autonomously.

When a webhook is received from an external channel like Slack or Discord, or an explicit HTTP POST command is submitted via a custom frontend, it passes through the Gateway routing engine. This engine parses the JSON payload, verifies cryptographic signatures (if integrating with platforms like Meta/WhatsApp), unpacks the request, and queues standard events for the internal Daemon processor.

The Gateway is also responsible for managing operational limits to protect system stability. It maintains configurable, concurrent request queues, dropping malicious spam inputs and ensuring that single-user bursts do not cripple the background memory search indexing tasks.

API Surface Area

  • GET /healthUnauthenticated system diagnostics
  • POST /pairOne-time bearer token exchange
  • POST /webhookPrimary authenticated ingress
  • GET|POST /*Dedicated channel verifications

Idempotency Controls

Double-processing AI LLM instructions is computationally expensive and wastes provider credits. The gateway implements strict idempotency constraints calculating cryptographic hashes on incoming request bodies and tracing execution states to guarantee exactly-once processing across unstable network circumstances.

07.Comprehensive Observability

Operating an autonomous system without clear visibility is dangerous. NullClaw exposes detailed operational telemetry, tracking resource utilization, AI reasoning patterns, and hardware health metrics simultaneously.

Health Registry

Every subsystem registers itself with the central internal Health component. Memory allocators, connection pools to the LLM backend, and file descriptor limits are aggressively tracked.

Trace Compaction

Overwhelming operators with verbose logs is unhelpful. We stream structured JSON telemetry and automatically rotate/compact historical records using our local file archiving logic.

Cost Auditing

Configurable autonomous limits include tracking input/output tokens dynamically, matching them against provider rates, and enforcing a maximum daily budget threshold explicitly.

Ready to Deploy?

NullClaw represents the purest distillation of an autonomous assistant environment. Deploy the static binary today and experience immediate execution.

Access Repository