Home / Open Source / ironclaw

ironclaw

A privacy-first, self-expanding AI assistant built in Rust. Runs tools in WASM sandboxes, stores all data locally encrypted, supports MCP protocol and multiple LLM backends including OpenAI, Anthropic, and Ollama.

RustApache-2.0Agent
โญ GitHubhttps://github.com/nearai/ironclaw
12,571
Stars
+115
Star growth
Jul 28, 2026
Last updated
3,139
Clicks

IronClaw โ€” Privacy-First AI Assistant Framework

Overview

IronClaw is an open-source, privacy-focused personal AI assistant built in Rust, inspired by the OpenClaw architecture. It is developed by NEAR AI and designed around one core principle: your AI assistant should work for you, not against you.

In contrast to cloud-dependent AI tools that silently harvest user data, IronClaw stores everything locally, encrypts it at rest, and gives users full control. It is self-expanding โ€” capable of building new tools on the fly via WebAssembly โ€” and supports multiple LLM backends including NEAR AI, OpenAI, Anthropic, Ollama, and more.


Key Features

๐Ÿ”’ Privacy & Security First

  • Local-only data storage โ€” All notes, context, and conversation history stay on your machine, encrypted.
  • No telemetry โ€” Open source, fully auditable, zero hidden data harvesting.
  • WASM Sandbox โ€” Every untrusted tool runs inside an isolated WebAssembly container with capability-based permissions.
  • Credential Protection โ€” Secrets are never exposed to WASM tools; injected at the host boundary with leak detection.
  • Defense in depth โ€” Multiple security layers guard against prompt injection and data exfiltration.

๐Ÿ› ๏ธ Dynamic Tool Building

  • Describe what you need in natural language, and IronClaw generates it as a WASM tool on the fly.
  • No waiting for vendor updates โ€” self-expanding capability without restarting the agent.
  • Plugin architecture allows dropping in new WASM tools and channels at runtime.

๐Ÿ”Œ MCP Protocol Support

  • Full support for Model Context Protocol (MCP) servers, allowing integration with external services.
  • Connect to any MCP-compatible server for extended capabilities.

๐Ÿ” Hybrid Search

  • Full-text + vector search using Reciprocal Rank Fusion (RRF).
  • Backed by PostgreSQL 15+ with the pgvector extension.

๐ŸŒ Multi-Channel Access

  • TUI (terminal UI via Ratatui)
  • HTTP webhooks
  • WASM channels โ€” Telegram, Slack
  • Web gateway

๐Ÿค– Multi-LLM Backend Support

Backend Value Notes
NEAR AI nearai Default; multi-model, OAuth auth
Anthropic anthropic Claude models
OpenAI openai GPT models
Ollama ollama Local inference
OpenRouter openai_compatible 300+ models
Together AI openai_compatible Fast inference
Tinfoil tinfoil Hardware-attested TEE inference
vLLM / LiteLLM openai_compatible Self-hosted

๐Ÿ“ Workspace & Identity

  • Workspace Filesystem โ€” Flexible path-based storage for notes, logs, and context.
  • Identity Files โ€” Maintain consistent personality and preferences across sessions.

โš™๏ธ Skills System

  • SKILL.md-based prompt extensions with trust model and tool attenuation.
  • ClawHub registry for sharing and discovering community skills.

๐Ÿณ Sandbox Execution

  • Docker container isolation with network proxy and credential injection.
  • Claude Code mode โ€” Delegate jobs to Claude CLI inside containers.
  • Parallel job execution with state machine and self-repair for stuck jobs.

Architecture

User Input
    โ”‚
    โ–ผ
Agent Loop (Rust)
    โ”‚
    โ”œโ”€โ”€ LLM Backend (NEAR AI / OpenAI / Anthropic / Ollama / ...)
    โ”‚
    โ”œโ”€โ”€ Tool Manager
    โ”‚       โ”œโ”€โ”€ Built-in Tools
    โ”‚       โ””โ”€โ”€ Dynamic WASM Tools
    โ”‚               โ””โ”€โ”€ WASM Sandbox
    โ”‚                       โ”œโ”€โ”€ Capability-based permissions
    โ”‚                       โ”œโ”€โ”€ Endpoint allowlisting
    โ”‚                       โ”œโ”€โ”€ Credential injection
    โ”‚                       โ””โ”€โ”€ Leak detection
    โ”‚
    โ”œโ”€โ”€ MCP Protocol Layer
    โ”‚
    โ”œโ”€โ”€ Hybrid Search (Full-text + pgvector)
    โ”‚
    โ””โ”€โ”€ Channels (TUI / HTTP / Telegram / Slack / Web)

Security Model

IronClaw implements defense in depth:

  1. WASM Isolation โ€” Tools run in sandboxed containers, not on the host.
  2. Capability Permissions โ€” Explicit opt-in for HTTP access, secret access, and tool invocation.
  3. Endpoint Allowlisting โ€” HTTP requests only reach pre-approved hosts and paths.
  4. Secret Injection โ€” Credentials injected at host boundary; never visible inside WASM code.
  5. Leak Detection โ€” Scans both outgoing requests and incoming responses for credential exfiltration.
  6. Rate & Resource Limiting โ€” Per-tool request rate limits, memory, CPU, and execution time caps.
WASM โ”€โ”€โ–บ Allowlist โ”€โ”€โ–บ Leak Scan โ”€โ”€โ–บ Credential โ”€โ”€โ–บ Execute โ”€โ”€โ–บ Leak Scan โ”€โ”€โ–บ WASM
         Validator    (request)      Injector       Request    (response)

Installation

macOS / Linux

curl --proto '=https' --tlsv1.2 -LsSf \
  https://github.com/nearai/ironclaw/releases/latest/download/ironclaw-installer.sh | sh

Windows (PowerShell)

irm https://github.com/nearai/ironclaw/releases/latest/download/ironclaw-installer.ps1 | iex

npm

npm install ironclaw

Build from Source

git clone https://github.com/nearai/ironclaw.git
cd ironclaw
cargo build --release
cargo test

Requirements: Rust 1.85+, PostgreSQL 15+ with pgvector extension, NEAR AI account


Use Cases

  • Personal knowledge management โ€” Store notes, logs, and context locally with AI-powered search.
  • Privacy-sensitive workflows โ€” Legal, medical, or financial tasks where data must stay local.
  • Developer productivity โ€” Extend the assistant with custom WASM tools tailored to your workflow.
  • Self-hosted AI assistant โ€” Full control over models (via Ollama) and data.
  • Security-conscious enterprises โ€” Run inside TEEs via Tinfoil for provable confidentiality.

Project Status

  • Active development by NEAR AI team
  • v0.15.0 released March 4, 2026
  • ~4.8k GitHub stars, 97 open PRs indicating healthy community activity
  • Apache-2.0 licensed โ€” fully open source

Related Projects

  • OpenClaw โ€” The original project IronClaw is inspired by
  • NEAR AI Cloud โ€” Hosted LLM inference backend
  • Tinfoil โ€” Hardware-attested private inference