A lightweight, self-hosted AI Agent framework written in Go.
Single binary Β· Any LLM Β· Multi-channel Β· Plugin system Β· Web dashboard
Install Β· Quick Start Β· Features Β· Documentation
FastClaw is a self-hosted AI agent runtime. It connects your LLM to chat platforms, executes tools, manages memory, and runs scheduled tasks β all from a single Go binary with zero dependencies.
curl -fsSL https://raw.githubusercontent.com/fastclaw-ai/fastclaw/main/install.sh | bash
fastclaw # Opens setup wizard in browserOne-liner (macOS / Linux):
curl -fsSL https://raw.githubusercontent.com/fastclaw-ai/fastclaw/main/install.sh | bashWindows: Download .zip from Releases, extract, double-click fastclaw.exe.
Already installed?
fastclaw upgradeFrom source:
git clone https://github.com/fastclaw-ai/fastclaw.git
cd fastclaw && make build- Run
fastclawβ browser opens the setup wizard athttp://localhost:18953 - Pick your LLM provider (OpenRouter, Ollama, or custom)
- Click Launch β start chatting in the browser
That's it. Your agent is live. Connect messaging channels (Telegram, Discord, etc.) later via plugins.
| Feature | Description |
|---|---|
| ReAct Agent Loop | Multi-turn reasoning + tool calling |
| Any LLM | OpenAI-compatible API (OpenAI, Claude, DeepSeek, Gemini, Groq, Ollama, OpenRouter) |
| Multi-Agent | Multiple agents with independent personalities, memory, and skills |
| Context Engineering | Auto-pruning & LLM compression for long conversations |
| Dual-Layer Memory | MEMORY.md (facts) + searchable conversation logs |
| Hook System | Before/After hooks on prompts, model calls, tool calls |
| Hot Reload | Edit config or SOUL.md β takes effect immediately, no restart |
| Channel | Status |
|---|---|
| Web Chat | β Built-in at /chat |
| Telegram | β Via plugin |
| Discord | β Via plugin |
| Slack | β Via plugin |
| Any platform | β Add via plugin |
| Tool | Description |
|---|---|
exec |
Shell commands (with optional Docker sandbox) |
read_file / write_file / list_dir |
File operations |
web_fetch |
Fetch web pages β markdown |
web_search |
Brave Search API |
memory_search |
Search conversation history |
message |
Send messages to any channel |
spawn_subagent |
Delegate tasks to other agents |
create_cron_job / list_cron_jobs / delete_cron_job |
Manage scheduled tasks |
load_skill |
Load skill instructions on demand |
| MCP tools | Connect external tools via Model Context Protocol |
| Feature | Description |
|---|---|
| CronTab | Schedule tasks: cron expressions, intervals, one-time |
| Heartbeat | Agent wakes every 30 min to check HEARTBEAT.md |
| Webhooks | POST /hooks to trigger agent actions from external systems |
| Slash Commands | /new /compact /status /help /version |
Security (inspired by NVIDIA OpenShell)
| Feature | Description |
|---|---|
| Sandbox Exec | Docker-based isolated command execution |
| Policy Engine | YAML policies for filesystem, network, tools, resources |
| Credential Manager | AES-256-GCM encrypted key storage, env auto-discovery |
| Tool Loop Detection | Breaks after 3 identical consecutive calls |
| Feature | Description |
|---|---|
| Web Dashboard | Full management UI at localhost:18953 |
| Plugin System | JSON-RPC subprocess plugins (any language) |
| Pluggable Storage | File (default), PostgreSQL, SQLite |
| OpenAI-Compatible API | POST /v1/chat/completions with SSE streaming |
| WebSocket Gateway | OpenClaw-compatible protocol |
βββββββββββββββββββββββββββββββββββββββββββββββ
β FastClaw Gateway β
β β
Web UI βββββββββΆ β ββββββββββββ ββββββββββββββββββββββββ β
Plugins ββββββββΆ β β Message β β Agent Manager β β
Webhooks βββββββΆ β β Bus βββββΆβ β β
API ββββββββββββΆ β β ββββββ Agent 1 (Mike) β β
β β β β Agent 2 (Mary) β β
β ββββββββββββ β Agent N ... β β
β ββββββββββββββββββββββββ β
β β β
β βββββββββββββββββββββΌβββββββββββ β
β βΌ βΌ βΌ β
β ββββββββββββ ββββββββββββ ββββββββββββ β
β β Tools β β Memory β β Sessions β β
β β β β β β β β
β β exec β βMEMORY.md β β JSONL β β
β β files β β logs/ β β compress β β
β β web β β search β β per-chat β β
β β MCP β β β β β β
β ββββββββββββ ββββββββββββ ββββββββββββ β
β β
β ββββββββββββ ββββββββββββ ββββββββββββ β
β β Cron β β Plugins β β Policy β β
β β Schedule β β JSON-RPC β β Engine β β
β β Heartbeatβ β channels β β Sandbox β β
β β Webhooks β β tools β β Creds β β
β ββββββββββββ ββββββββββββ ββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββββββββ β
β β /v1/chat/completions (SSE) β β
β β /ws (WebSocket) β β
β β /api/* (REST) β β
β β Web Dashboard (:18953) β β
β ββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββ
Extend FastClaw with plugins in any language. Plugins communicate via JSON-RPC 2.0 over stdin/stdout, running as isolated subprocesses.
Plugin types: channel Β· tool Β· provider Β· hook
# Install from FastClaw Hub
fastclaw plugins install telegram
# Install from GitHub
fastclaw plugins install github.com/user/fastclaw-plugin
# Bridge an OpenClaw tool plugin
fastclaw plugins install @ollama/openclaw-web-searchOfficial plugins are in the plugins/ directory. Community plugins are indexed at FastClaw Hub.
Full management UI at http://localhost:18953:
| Page | What you can do |
|---|---|
| Overview | Gateway status, stats, quick actions |
| Chat | Talk to your agents in the browser |
| Agents | Create, edit, delete agents; edit SOUL.md |
| Models | Manage LLM providers and default model |
| Skills | View and manage installed skills |
| Plugins | Enable/disable plugins, edit config |
| Channels | Channel status and configuration |
| Cron Jobs | Create and manage scheduled tasks |
| Settings | Storage, webhook config |
FastClaw exposes an OpenAI-compatible API for programmatic access:
# Chat with an agent (SSE streaming)
curl -X POST http://localhost:18953/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"hello"}],"stream":true}'
# List agents
curl http://localhost:18953/v1/agents -H "Authorization: Bearer $TOKEN"# Core
fastclaw # Start (setup wizard or gateway)
fastclaw gateway # Start gateway explicitly
fastclaw version # Version info
fastclaw doctor # Check config health
fastclaw upgrade # Update to latest
# Plugins
fastclaw plugins install NAME # Install from Hub / GitHub / npm
fastclaw plugins list # List installed plugins
fastclaw plugins remove ID # Remove a plugin
# Agents
fastclaw agent create mike # Create new agent
fastclaw agent list # List agents
# Skills
fastclaw skill list # List installed skills
fastclaw skill remove NAME # Remove a skillgit clone https://github.com/fastclaw-ai/fastclaw.git
cd fastclaw
make build # Build binary
make build-web # Build web UI
make dev # Dev mode with hot reload
make release-local # Build all platforms
make test # Run testsContributions welcome. FastClaw's strength is simplicity β keep it that way.
- Core framework & official plugins β contribute to this repo
- Community plugins β create your own repo, submit to FastClaw Hub index