Skip to content

itsharex/fastclaw

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚑ FastClaw

A lightweight, self-hosted AI Agent framework written in Go.

Go License Release

Single binary Β· Any LLM Β· Multi-channel Β· Plugin system Β· Web dashboard

Install Β· Quick Start Β· Features Β· Documentation


What is FastClaw?

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 browser

πŸ“¦ Install

One-liner (macOS / Linux):

curl -fsSL https://raw.githubusercontent.com/fastclaw-ai/fastclaw/main/install.sh | bash

Windows: Download .zip from Releases, extract, double-click fastclaw.exe.

Already installed?

fastclaw upgrade

From source:

git clone https://github.com/fastclaw-ai/fastclaw.git
cd fastclaw && make build

πŸš€ Quick Start

  1. Run fastclaw β€” browser opens the setup wizard at http://localhost:18953
  2. Pick your LLM provider (OpenRouter, Ollama, or custom)
  3. Click Launch β€” start chatting in the browser

That's it. Your agent is live. Connect messaging channels (Telegram, Discord, etc.) later via plugins.

✨ Features

Core

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

Channels

Channel Status
Web Chat βœ… Built-in at /chat
Telegram βœ… Via plugin
Discord βœ… Via plugin
Slack βœ… Via plugin
Any platform βœ… Add via plugin

Tools

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

Automation

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

Platform

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

πŸ— Architecture

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚              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)           β”‚  β”‚
                    β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”Œ Plugin System

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-search

Official plugins are in the plugins/ directory. Community plugins are indexed at FastClaw Hub.

πŸ–₯ Web Dashboard

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

πŸ”— API

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"

πŸ›  CLI Reference

# 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 skill

πŸ›  Development

git 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 tests

Contributing

Contributions 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

License

MIT


Built with ⚑ by the FastClaw community

About

Faster and better openclaw alternative

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 65.3%
  • TypeScript 28.3%
  • JavaScript 3.5%
  • Shell 1.2%
  • CSS 1.0%
  • Python 0.4%
  • Makefile 0.3%