Rust-native AI agent framework with cognitive memory, multi-agent orchestration, and security-first design.
Single binary. Zero IPC overhead. Native Engram memory.
| Feature | OpenClaw | IronClaw | RustClaw |
|---|---|---|---|
| Language | TypeScript | Rust | Rust |
| Memory | MCP/external | PostgreSQL | engramai (native) |
| Multi-agent | Config-based | Not yet | Hierarchical orchestration + GID code intelligence |
| Binary size | ~200MB (Node) | ~15MB | ~35MB |
| Startup | ~2s | ~1s | <100ms |
| Memory recall | ~200ms (MCP) | N/A | ~5ms |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ RustClaw Agent โ
โ โ
โ Workspace Files (SOUL.md, etc.) โ
โ โ โ
โ Hooks (6 lifecycle points) โ
โ โ โ
โ Agent Loop (LLM + Tools) โ
โ โ โ
โ Engram (native cognitive memory) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โ โ โ
Telegram CLI (future)
# Build
cargo build --release
# Copy and edit config
cp rustclaw.example.yaml rustclaw.yaml
# Edit rustclaw.yaml with your API key and bot token
# Create workspace files
echo "Be helpful." > SOUL.md
# Run
./target/release/rustclaw run
RustClaw uses markdown files as its "operating system" โ compatible with OpenClaw:
| File | Purpose |
|---|---|
SOUL.md | Agent personality and values |
AGENTS.md | Workspace conventions |
USER.md | Info about the human |
TOOLS.md | Local tool notes |
HEARTBEAT.md | Periodic check tasks |
MEMORY.md | Long-term memory |
IDENTITY.md | Name, emoji, vibe |
Built-in tools available to the agent:
6 lifecycle hook points (inspired by IronClaw):
enum HookPoint {
BeforeInbound, // Before processing user message
BeforeToolCall, // Before executing a tool
BeforeOutbound, // Before sending response
OnSessionStart, // New session created
OnSessionEnd, // Session ended
TransformResponse // Transform final response
}
Multi-token auth with automatic rotation and cooldown tracking (matches OpenClaw's design):
~/.rustclaw/auth-profiles.json โ credential store (never in rustclaw.yaml)
lastUsed (oldest first){
"version": 1,
"profiles": {
"anthropic:keychain": { "type": "oauth", "provider": "anthropic", "access": "keychain", "refresh": "keychain", "expires": 9999999999999 },
"anthropic:default": { "type": "token", "provider": "anthropic", "token": "sk-ant-..." },
"anthropic:manual": { "type": "token", "provider": "anthropic", "token": "sk-ant-..." }
},
"order": { "anthropic": ["anthropic:keychain", "anthropic:default", "anthropic:manual"] }
}
Special "access": "keychain" profile uses dynamic OAuth from macOS Keychain (auto-refresh).
Native engramai integration โ neuroscience-grounded cognitive memory:
All embeddings use nomic-embed-text (768-dim) via local Ollama:
| Stage | Embedding Use | Cost |
|---|---|---|
| Store | Content โ vector for future recall | Local, free |
| Recall | Query โ vector โ cosine similarity | Local, free |
| Drive Alignment | Content vector โ drive vectors โ importance boost | Reuses store embedding, zero extra cost |
Drive alignment is multilingual by design โ embeddings capture semantic meaning across languages. A Chinese SOUL drive ("ๅธฎpotatoๅฎ็ฐ่ดขๅก่ช็ฑ") naturally aligns with English content ("trading profit") because the embedding model maps related concepts to nearby vectors regardless of language.
skills/)AGPL-3.0 โ Free for open source use.
For commercial/proprietary deployments, a separate commercial license is available. See LICENSE for details.
77 commits
Rust
65.2%
HTML
33.8%
Rust-native AI agent framework with cognitive memory, multi-agent orchestration, and security-first design.
Single binary. Zero IPC overhead. Native Engram memory.
| Feature | OpenClaw | IronClaw | RustClaw |
|---|---|---|---|
| Language | TypeScript | Rust | Rust |
| Memory | MCP/external | PostgreSQL | engramai (native) |
| Multi-agent | Config-based | Not yet | Hierarchical orchestration + GID code intelligence |
| Binary size | ~200MB (Node) | ~15MB | ~35MB |
| Startup | ~2s | ~1s | <100ms |
| Memory recall | ~200ms (MCP) | N/A | ~5ms |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ RustClaw Agent โ
โ โ
โ Workspace Files (SOUL.md, etc.) โ
โ โ โ
โ Hooks (6 lifecycle points) โ
โ โ โ
โ Agent Loop (LLM + Tools) โ
โ โ โ
โ Engram (native cognitive memory) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โ โ โ
Telegram CLI (future)
# Build
cargo build --release
# Copy and edit config
cp rustclaw.example.yaml rustclaw.yaml
# Edit rustclaw.yaml with your API key and bot token
# Create workspace files
echo "Be helpful." > SOUL.md
# Run
./target/release/rustclaw run
RustClaw uses markdown files as its "operating system" โ compatible with OpenClaw:
| File | Purpose |
|---|---|
SOUL.md | Agent personality and values |
AGENTS.md | Workspace conventions |
USER.md | Info about the human |
TOOLS.md | Local tool notes |
HEARTBEAT.md | Periodic check tasks |
MEMORY.md | Long-term memory |
IDENTITY.md | Name, emoji, vibe |
Built-in tools available to the agent:
6 lifecycle hook points (inspired by IronClaw):
enum HookPoint {
BeforeInbound, // Before processing user message
BeforeToolCall, // Before executing a tool
BeforeOutbound, // Before sending response
OnSessionStart, // New session created
OnSessionEnd, // Session ended
TransformResponse // Transform final response
}
Multi-token auth with automatic rotation and cooldown tracking (matches OpenClaw's design):
~/.rustclaw/auth-profiles.json โ credential store (never in rustclaw.yaml)
lastUsed (oldest first){
"version": 1,
"profiles": {
"anthropic:keychain": { "type": "oauth", "provider": "anthropic", "access": "keychain", "refresh": "keychain", "expires": 9999999999999 },
"anthropic:default": { "type": "token", "provider": "anthropic", "token": "sk-ant-..." },
"anthropic:manual": { "type": "token", "provider": "anthropic", "token": "sk-ant-..." }
},
"order": { "anthropic": ["anthropic:keychain", "anthropic:default", "anthropic:manual"] }
}
Special "access": "keychain" profile uses dynamic OAuth from macOS Keychain (auto-refresh).
Native engramai integration โ neuroscience-grounded cognitive memory:
All embeddings use nomic-embed-text (768-dim) via local Ollama:
| Stage | Embedding Use | Cost |
|---|---|---|
| Store | Content โ vector for future recall | Local, free |
| Recall | Query โ vector โ cosine similarity | Local, free |
| Drive Alignment | Content vector โ drive vectors โ importance boost | Reuses store embedding, zero extra cost |
Drive alignment is multilingual by design โ embeddings capture semantic meaning across languages. A Chinese SOUL drive ("ๅธฎpotatoๅฎ็ฐ่ดขๅก่ช็ฑ") naturally aligns with English content ("trading profit") because the embedding model maps related concepts to nearby vectors regardless of language.
skills/)AGPL-3.0 โ Free for open source use.
For commercial/proprietary deployments, a separate commercial license is available. See LICENSE for details.
77 commits
Rust
65.2%
HTML
33.8%