doltclaw
Minimal agent runtime — LLM inference, model fallback chains, and tool calling in 1,652 lines of Rust. Part of the claw family.
1,652 LOC · 22 tests · 2.9MB binary · 10 deps · Zero bloat
Why doltclaw
2.9MB Binary
vs 500MB+ for openclaw. Single static binary, no Node.js, no runtime dependencies. Compiles to a release binary smaller than most favicons.
Model Fallback Chains
Primary model fails with 429 or 5xx? Automatic failover to the next backend in the chain. Non-retryable errors (401, 403) abort immediately — no wasted latency.
Tool Calling Loop
Register custom tools via the Tool trait. The agent loop handles generate → tool_calls → execute → re-generate automatically, up to max_iterations.
TOML Config + ${ENV_VAR}
Environment variable substitution at load time. No JSON, no YAML. Clean TOML that's version-controllable and diffable.
Zero Built-in Tools
doltclaw is a runtime, not a toolkit. Consumers (doltdot, ares, pawan) register their own tools. The crate stays minimal and focused.
10 Dependencies
tokio, reqwest, serde, toml, thiserror, tracing, async-trait, futures, uuid, clap. No framework bloat. Every dep earns its place.
Use as a Library
Add doltclaw to your Cargo.toml and get inference + fallback + tool calling in 10 lines.
Quick Start
Configuration
One TOML file. Three models. Automatic fallback. Environment variable substitution.
The Claw Family
doltclaw is part of a family of agent runtimes, each with different tradeoffs. We built the smallest one.
| Name | Language | Binary | RAM | What |
|---|---|---|---|---|
| openclaw | TypeScript | ~500MB | ~394MB | Full-featured personal AI assistant |
| zeroclaw | Rust | 8.8MB | <5MB | Trait-driven, provider-agnostic runtime |
| openfang | Rust | 32MB | ~40MB | Agent OS with autonomous Hands |
| doltclaw | Rust | 2.9MB | <5MB | Minimal runtime for dirmacs |
| nanoclaw | Python | N/A | >100MB | Container-isolated, small codebase |
| zeptoclaw | Zig | 43MB | N/A | NVIDIA NIM native, 21 skills |
Architecture
8 source files. Single crate with optional CLI behind a feature flag. Backend ported from pawan-core.
Ecosystem Integration
doltclaw is the inference layer for the dirmacs stack. It plugs into ares, pawan, and doltares.