MCPHub LabRegistryRightNow-AI/openfang
RightNow-AI

RightNow AI/openfang

Built by RightNow-AI 15,757 stars

What is RightNow AI/openfang?

Open-source Agent Operating System

How to use RightNow AI/openfang?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add RightNow AI/openfang using the following command: npx @modelcontextprotocol/rightnow-ai-openfang 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/rightnow-ai-openfang --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/rightnow-ai-openfang

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

RightNow AI/openfang FAQ

Q

Is RightNow AI/openfang safe?

Yes, RightNow AI/openfang follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is RightNow AI/openfang up to date?

RightNow AI/openfang is currently active in the registry with 15,757 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for RightNow AI/openfang?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<p align="center"> <img src="public/assets/openfang-logo.png" width="160" alt="OpenFang Logo" /> </p> <h1 align="center">OpenFang</h1> <h3 align="center">The Agent Operating System</h3> <p align="center"> Open-source Agent OS built in Rust. 137K LOC. 14 crates. 1,767+ tests. Zero clippy warnings.<br/> <strong>One binary. Battle-tested. Agents that actually work for you.</strong> </p> <p align="center"> <a href="https://openfang.sh/docs">Documentation</a> &bull; <a href="https://openfang.sh/docs/getting-started">Quick Start</a> &bull; <a href="https://x.com/openfangg">Twitter / X</a> </p> <p align="center"> <img src="https://img.shields.io/badge/language-Rust-orange?style=flat-square" alt="Rust" /> <img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT" /> <img src="https://img.shields.io/badge/version-0.3.30-green?style=flat-square" alt="v0.3.30" /> <img src="https://img.shields.io/badge/tests-1,767%2B%20passing-brightgreen?style=flat-square" alt="Tests" /> <img src="https://img.shields.io/badge/clippy-0%20warnings-brightgreen?style=flat-square" alt="Clippy" /> <a href="https://www.buymeacoffee.com/openfang" target="_blank"><img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-FFDD00?style=flat-square&logo=buy-me-a-coffee&logoColor=black" alt="Buy Me A Coffee" /></a> </p>

v0.3.30 — Security Hardening Release (March 2026)

OpenFang is feature-complete but still pre-1.0. You may encounter rough edges or breaking changes between minor versions. We ship fast and fix fast. Pin to a specific commit for production use until v1.0. Report issues here.


What is OpenFang?

OpenFang is an open-source Agent Operating System — not a chatbot framework, not a Python wrapper around an LLM, not a "multi-agent orchestrator." It is a full operating system for autonomous agents, built from scratch in Rust.

Traditional agent frameworks wait for you to type something. OpenFang runs autonomous agents that work for you — on schedules, 24/7, building knowledge graphs, monitoring targets, generating leads, managing your social media, and reporting results to your dashboard.

The entire system compiles to a single ~32MB binary. One install, one command, your agents are live.

curl -fsSL https://openfang.sh/install | sh
openfang init
openfang start
# Dashboard live at http://localhost:4200
<details> <summary><strong>Windows</strong></summary>
irm https://openfang.sh/install.ps1 | iex
openfang init
openfang start
</details>

Hands: Agents That Actually Do Things

<p align="center"><em>"Traditional agents wait for you to type. Hands work <strong>for</strong> you."</em></p>

Hands are OpenFang's core innovation — pre-built autonomous capability packages that run independently, on schedules, without you having to prompt them. This is not a chatbot. This is an agent that wakes up at 6 AM, researches your competitors, builds a knowledge graph, scores the findings, and delivers a report to your Telegram before you've had coffee.

Each Hand bundles:

  • HAND.toml — Manifest declaring tools, settings, requirements, and dashboard metrics
  • System Prompt — Multi-phase operational playbook (not a one-liner — these are 500+ word expert procedures)
  • SKILL.md — Domain expertise reference injected into context at runtime
  • Guardrails — Approval gates for sensitive actions (e.g. Browser Hand requires approval before any purchase)

All compiled into the binary. No downloading, no pip install, no Docker pull.

The 7 Bundled Hands

HandWhat It Actually Does
ClipTakes a YouTube URL, downloads it, identifies the best moments, cuts them into vertical shorts with captions and thumbnails, optionally adds AI voice-over, and publishes to Telegram and WhatsApp. 8-phase pipeline. FFmpeg + yt-dlp + 5 STT backends.
LeadRuns daily. Discovers prospects matching your ICP, enriches them with web research, scores 0-100, deduplicates against your existing database, and delivers qualified leads in CSV/JSON/Markdown. Builds ICP profiles over time.
CollectorOSINT-grade intelligence. You give it a target (company, person, topic). It monitors continuously — change detection, sentiment tracking, knowledge graph construction, and critical alerts when something important shifts.
PredictorSuperforecasting engine. Collects signals from multiple sources, builds calibrated reasoning chains, makes predictions with confidence intervals, and tracks its own accuracy using Brier scores. Has a contrarian mode that deliberately argues against consensus.
ResearcherDeep autonomous researcher. Cross-references multiple sources, evaluates credibility using CRAAP criteria (Currency, Relevance, Authority, Accuracy, Purpose), generates cited reports with APA formatting, supports multiple languages.
TwitterAutonomous Twitter/X account manager. Creates content in 7 rotating formats, schedules posts for optimal engagement, responds to mentions, tracks performance metrics. Has an approval queue — nothing posts without your OK.
BrowserWeb automation agent. Navigates sites, fills forms, clicks buttons, handles multi-step workflows. Uses Playwright bridge with session persistence. Mandatory purchase approval gate — it will never spend your money without explicit confirmation.
# Activate the Researcher Hand — it starts working immediately
openfang hand activate researcher

# Check its progress anytime
openfang hand status researcher

# Activate lead generation on a daily schedule
openfang hand activate lead

# Pause without losing state
openfang hand pause lead

# See all available Hands
openfang hand list

Build your own. Define a HAND.toml with tools, settings, and a system prompt. Publish to FangHub.


OpenFang vs The Landscape

<p align="center"> <img src="public/assets/openfang-vs-claws.png" width="600" alt="OpenFang vs OpenClaw vs ZeroClaw" /> </p>

Benchmarks: Measured, Not Marketed

All data from official documentation and public repositories — February 2026.

Cold Start Time (lower is better)

ZeroClaw   ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   10 ms
OpenFang   ██████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  180 ms    ★
LangGraph  █████████████████░░░░░░░░░░░░░░░░░░░░░░░░░  2.5 sec
CrewAI     ████████████████████░░░░░░░░░░░░░░░░░░░░░░  3.0 sec
AutoGen    ██████████████████████████░░░░░░░░░░░░░░░░░  4.0 sec
OpenClaw   █████████████████████████████████████████░░  5.98 sec

Idle Memory Usage (lower is better)

ZeroClaw   █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    5 MB
OpenFang   ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   40 MB    ★
LangGraph  ██████████████████░░░░░░░░░░░░░░░░░░░░░░░░░  180 MB
CrewAI     ████████████████████░░░░░░░░░░░░░░░░░░░░░░░  200 MB
AutoGen    █████████████████████████░░░░░░░░░░░░░░░░░░  250 MB
OpenClaw   ████████████████████████████████████████░░░░  394 MB

Install Size (lower is better)

ZeroClaw   █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  8.8 MB
OpenFang   ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   32 MB    ★
CrewAI     ████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  100 MB
LangGraph  ████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  150 MB
AutoGen    ████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░  200 MB
OpenClaw   ████████████████████████████████████████░░░░  500 MB

Security Systems (higher is better)

OpenFang   ████████████████████████████████████████████   16      ★
ZeroClaw   ███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░    6
OpenClaw   ████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    3
AutoGen    █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    2
LangGraph  █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    2
CrewAI     ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    1

Channel Adapters (higher is better)

OpenFang   ████████████████████████████████████████████   40      ★
ZeroClaw   ███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░   15
OpenClaw   █████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   13
CrewAI     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0
AutoGen    ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0
LangGraph  ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    0

LLM Providers (higher is better)

ZeroClaw   ████████████████████████████████████████████   28
OpenFang   ██████████████████████████████████████████░░   27      ★
LangGraph  ██████████████████████░░░░░░░░░░░░░░░░░░░░░   15
CrewAI     ██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   10
OpenClaw   ██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   10
AutoGen    ███████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    8

Feature-by-Feature Comparison

FeatureOpenFangOpenClawZeroClawCrewAIAutoGenLangGraph
LanguageRustTypeScriptRustPythonPythonPython
Autonomous Hands7 built-inNoneNoneNoneNoneNone
Security Layers16 discrete3 basic6 layers1 basicDockerAES enc.
Agent SandboxWASM dual-meteredNoneAllowlistsNoneDockerNone
Channel Adapters401315000
Built-in Tools53 + MCP + A2A50+12PluginsMCPLC tools
MemorySQLite + vectorFile-basedSQLite FTS54-layerExternalCheckpoints
Desktop AppTauri 2.0NoneNoneNoneStudioNone
Audit TrailMerkle hash-chainLogsLogsTracingLogsCheckpoints
Cold Start<200ms~6s~10ms~3s~4s~2.5s
Install Size~32 MB~500 MB~8.8 MB~100 MB~200 MB~150 MB
LicenseMITMITMITMITApache 2.0MIT

16 Security Systems — Defense in Depth

OpenFang doesn't bolt security on after the fact. Every layer is independently testable and operates without a single point of failure.

#SystemWhat It Does
1WASM Dual-Metered SandboxTool code runs in WebAssembly with fuel metering + epoch interruption. A watchdog thread kills runaway code.
2Merkle Hash-Chain Audit TrailEvery action is cryptographically linked to the previous one. Tamper with one entry and the entire chain breaks.
3Information Flow Taint TrackingLabels propagate through execution — secrets are tracked from source to sink.
4Ed25519 Signed Agent ManifestsEvery agent identity and capability set is cryptographically signed.
5SSRF ProtectionBlocks private IPs, cloud metadata endpoints, and DNS rebinding attacks.
6Secret ZeroizationZeroizing<String> auto-wipes API keys from memory the instant they're no longer needed.
7OFP Mutual AuthenticationHMAC-SHA256 nonce-based, constant-time verification for P2P networking.
8Capability GatesRole-based access control — agents declare required tools, the kernel enforces it.
9Security HeadersCSP, X-Frame-Options, HSTS, X-Content-Type-Options on every response.
10Health Endpoint RedactionPublic health check returns minimal info. Full diagnostics require authentication.
11Subprocess Sandboxenv_clear() + selective variable passthrough. Process tree isolation with cross-platform kill.
12Prompt Injection ScannerDetects override attempts, data exfiltration patterns, and shell reference injection in skills.
13Loop GuardSHA256-based tool call loop detection with circuit breaker. Handles ping-pong patterns.
14Session Repair7-phase message history validation and automatic recovery from corruption.
15Path Traversal PreventionCanonicalization with symlink escape prevention. ../ doesn't work here.
16GCRA Rate LimiterCost-aware token bucket rate limiting with per-IP tracking and stale cleanup.

Architecture

14 Rust crates. 137,728 lines of code. Modular kernel design.

openfang-kernel      Orchestration, workflows, metering, RBAC, scheduler, budget tracking
openfang-runtime     Agent loop, 3 LLM drivers, 53 tools, WASM sandbox, MCP, A2A
openfang-api         140+ REST/WS/SSE endpoints, OpenAI-compatible API, dashboard
openfang-channels    40 messaging adapters with rate limiting, DM/group policies
openfang-memory      SQLite persistence, vector embeddings, canonical sessions, compaction
openfang-types       Core types, taint tracking, Ed25519 manifest signing, model catalog
openfang-skills      60 bundled skills, SKILL.md parser, FangHub marketplace
openfang-hands       7 autonomous Hands, HAND.toml parser, lifecycle management
openfang-extensions  25 MCP templates, AES-256-GCM credential vault, OAuth2 PKCE
openfang-wire        OFP P2P protocol with HMAC-SHA256 mutual authentication
openfang-cli         CLI with daemon management, TUI dashboard, MCP server mode
openfang-desktop     Tauri 2.0 native app (system tray, notifications, global shortcuts)
openfang-migrate     OpenClaw, LangChain, AutoGPT migration engine
xtask                Build automation

40 Channel Adapters

Connect your agents to every platform your users are on.

Core: Telegram, Discord, Slack, WhatsApp, Signal, Matrix, Email (IMAP/SMTP) Enterprise: Microsoft Teams, Mattermost, Google Chat, Webex, Feishu/Lark, Zulip Social: LINE, Viber, Facebook Messenger, Mastodon, Bluesky, Reddit, LinkedIn, Twitch Community: IRC, XMPP, Guilded, Revolt, Keybase, Discourse, Gitter Privacy: Threema, Nostr, Mumble, Nextcloud Talk, Rocket.Chat, Ntfy, Gotify Workplace: Pumble, Flock, Twist, DingTalk, Zalo, Webhooks

Each adapter supports per-channel model overrides, DM/group policies, rate limiting, and output formatting.


WhatsApp Web Gateway (QR Code)

Connect your personal WhatsApp account to OpenFang via QR code — just like WhatsApp Web. No Meta Business account required.

Prerequisites

  • Node.js >= 18 installed (download)
  • OpenFang installed and initialized

Setup

1. Install the gateway dependencies:

cd packages/whatsapp-gateway
npm install

2. Configure config.toml:

[channels.whatsapp]
mode = "web"
default_agent = "assistant"

3. Set the gateway URL (choose one):

Add to your shell profile for persistence:

# macOS / Linux
echo 'export WHATSAPP_WEB_GATEWAY_URL="http://127.0.0.1:3009"' >> ~/.zshrc
source ~/.zshrc

Or set it inline when starting the gateway:

export WHATSAPP_WEB_GATEWAY_URL="http://127.0.0.1:3009"

4. Start the gateway:

node packages/whatsapp-gateway/index.js

The gateway listens on port 3009 by default. Override with WHATSAPP_GATEWAY_PORT.

5. Start OpenFang:

openfang start
# Dashboard at http://localhost:4200

6. Scan the QR code:

Open the dashboard → ChannelsWhatsApp. A QR code will appear. Scan it with your phone:

WhatsAppSettingsLinked DevicesLink a Device

Once scanned, the status changes to connected and incoming messages are routed to your configured agent.

Gateway Environment Variables

VariableDescriptionDefault
WHATSAPP_WEB_GATEWAY_URLGateway URL for OpenFang to connect to(empty = disabled)
WHATSAPP_GATEWAY_PORTPort the gateway listens on3009
OPENFANG_URLOpenFang API URL the gateway reports tohttp://127.0.0.1:4200
OPENFANG_DEFAULT_AGENTAgent that handles incoming messagesassistant

Gateway API Endpoints

MethodRouteDescription
POST/login/startGenerate QR code (returns base64 PNG)
GET/login/statusConnection status (disconnected, qr_ready, connected)
POST/message/sendSend a message ({ "to": "5511999999999", "text": "Hello" })
GET/healthHealth check

Alternative: WhatsApp Cloud API

For production workloads, use the WhatsApp Cloud API with a Meta Business account. See the Cloud API configuration docs.


27 LLM Providers — 123+ Models

3 native drivers (Anthropic, Gemini, OpenAI-compatible) route to 27 providers:

Anthropic, Gemini, OpenAI, Groq, DeepSeek, OpenRouter, Together, Mistral, Fireworks, Cohere, Perplexity, xAI, AI21, Cerebras, SambaNova, HuggingFace, Replicate, Ollama, vLLM, LM Studio, Qwen, MiniMax, Zhipu, Moonshot, Qianfan, Bedrock, and more.

Intelligent routing with task complexity scoring, automatic fallback, cost tracking, and per-model pricing.


Migrate from OpenClaw

Already running OpenClaw? One command:

# Migrate everything — agents, memory, skills, configs
openfang migrate --from openclaw

# Migrate from a specific path
openfang migrate --from openclaw --path ~/.openclaw

# Dry run first to see what would change
openfang migrate --from openclaw --dry-run

The migration engine imports your agents, conversation history, skills, and configuration. OpenFang reads SKILL.md natively and is compatible with the ClawHub marketplace.


OpenAI-Compatible API

Drop-in replacement. Point your existing tools at OpenFang:

curl -X POST localhost:4200/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "researcher",
    "messages": [{"role": "user", "content": "Analyze Q4 market trends"}],
    "stream": true
  }'

140+ REST/WS/SSE endpoints covering agents, memory, workflows, channels, models, skills, A2A, Hands, and more.


Quick Start

# 1. Install (macOS/Linux)
curl -fsSL https://openfang.sh/install | sh

# 2. Initialize — walks you through provider setup
openfang init

# 3. Start the daemon
openfang start

# 4. Dashboard is live at http://localhost:4200

# 5. Activate a Hand — it starts working for you
openfang hand activate researcher

# 6. Chat with an agent
openfang chat researcher
> "What are the emerging trends in AI agent frameworks?"

# 7. Spawn a pre-built agent
openfang agent spawn coder
<details> <summary><strong>Windows (PowerShell)</strong></summary>
irm https://openfang.sh/install.ps1 | iex
openfang init
openfang start
</details>

Development

# Build the workspace
cargo build --workspace --lib

# Run all tests (1,767+)
cargo test --workspace

# Lint (must be 0 warnings)
cargo clippy --workspace --all-targets -- -D warnings

# Format
cargo fmt --all -- --check

Stability Notice

OpenFang v0.3.30 is pre-1.0. The architecture is solid, the test suite is comprehensive, and the security model is comprehensive. That said:

  • Breaking changes may occur between minor versions until v1.0
  • Some Hands are more mature than others (Browser and Researcher are the most battle-tested)
  • Edge cases exist — if you find one, open an issue
  • Pin to a specific commit for production deployments until v1.0

We ship fast and fix fast. The goal is a rock-solid v1.0 by mid-2026.


Security

To report a security vulnerability, email jaber@rightnowai.co. We take all reports seriously and will respond within 48 hours.


License

MIT — use it however you want.


Links


Built by RightNow

<p align="center"> <a href="https://www.rightnowai.co/"> <img src="public/assets/rightnow-logo.webp" width="60" alt="RightNow Logo" /> </a> </p> <p align="center"> OpenFang is built and maintained by <a href="https://x.com/Akashi203"><strong>Jaber</strong></a>, Founder of <a href="https://www.rightnowai.co/"><strong>RightNow</strong></a>. </p> <p align="center"> <a href="https://www.rightnowai.co/">Website</a> &bull; <a href="https://x.com/Akashi203">Twitter / X</a> &bull; <a href="https://www.buymeacoffee.com/openfang" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a> </p>
<p align="center"> <strong>Built with Rust. Secured with 16 layers. Agents that actually work for you.</strong> </p>

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "rightnow-ai-openfang": { "command": "npx", "args": ["rightnow-ai-openfang"] } } }