Early Development

Zig-native AI Tooling

ZiggyClaw - A Zig-native OpenClaw clone

Early development project. Fast, safe, and claws deep into AI tooling. Built with Zig 0.14.0+ for maximum performance and reliability. Core CLI, agent tools, memory-safe execution, and LM Studio integration are working today.

Download Binary

Binaries coming soon. Build from source for now.

# ZiggyClaw - Early Development $zig build run -- doctor ZiggyClaw doctor: All systems OK $zig build run -- agent "read file: build.zig" const std = @import("std");

Everything at your fingertips

Simple CLI commands to manage gateway, tools, agents, and system diagnostics.

Command Description
zig build run -- help Show help and usage information
zig build run -- version Show version info
zig build run -- gateway [start] Start the gateway server (port 18789)
zig build run -- tool list List available tools
zig build run -- doctor Run system diagnostics
zig build run -- onboard Run onboarding process
zig build run -- agent <message> Run agent with a message

Works with LM Studio

Connect to a local LM Studio server for LLM inference with zero configuration.

LM
LM Studio Integration
Local LLM inference via OpenAI-compatible API
# Set the API endpoint
export OPENAI_API_BASE="http://localhost:1234"

# Run with local model
zig build run -- agent "What is Zig?"
GW
Gateway Server
OpenClaw-compatible HTTP API on port 18789
# Start the gateway
zig build run -- gateway

# Test the endpoint
curl http://127.0.0.1:18789/v1/chat/completions

Modular by design

Clean separation of concerns for maintainability and extensibility.

core
Gateway, session, agent, types
tools
Tool registry (shell, file_read)
security
Sandboxed execution
config
Configuration management
channels
IPC channels
canvas
Canvas state management
plugins
Plugin system
cli
Command-line interface
utils
Utilities

Implemented: core, tools, security, cli, llm (LM Studio/Ollama/OpenAI). Planned: config, channels, canvas, plugins.

Get started

All you need is Zig 0.14.0 or later.

# Clone and build
git clone https://github.com/mskDev0092/ZiggyClaw.git
cd ZiggyClaw
zig build

# Run
zig build run -- help