librefang  by librefang

Rust-based agent operating system for autonomous AI

Created 2 months ago
275 stars

Top 94.0% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

LibreFang is an open-source agent operating system built in Rust, designed for autonomous AI agents that operate continuously and proactively. It targets developers and power users needing a robust platform for deploying AI agents for tasks like monitoring and lead generation, offering a departure from traditional, prompt-driven chatbot frameworks. Website Live Demo

How It Works

Architected with a modular kernel across 24 Rust crates, LibreFang enables autonomous "Hands" (capability packages) to run independently on schedules or 24/7. Key components include orchestration, agent runtime with WASM sandboxing, a comprehensive API, diverse messaging adapters, and persistence mechanisms, prioritizing performance and extensibility. Docs

Quick Start & Requirements

Installation is available via a shell script (curl -fsSL https://librefang.ai/install.sh | sh), Cargo (cargo install --git https://github.com/librefang/librefang librefang-cli), or Homebrew (brew install librefang). Docker images and cloud deployment integrations (Fly.io, Render, Railway) are also provided. A Tauri 2.0 native desktop application is available.

Highlighted Details

  • Supports 45+ messaging channel adapters (e.g., Telegram, Discord, Slack, Email).
  • Integrates with 28+ LLM providers (e.g., OpenAI, Gemini, Anthropic, Ollama) with intelligent routing and cost tracking.
  • Incorporates 16+ security layers, including WASM sandboxing, taint tracking, and SSRF protection.
  • Offers an OpenAI-compatible API (/v1/chat/completions) and 140+ other REST/WS/SSE endpoints.
  • Provides client SDKs for JavaScript/TypeScript, Python, Rust, and Go.
  • Features built-in support for MCP and Google's A2A protocol.

Maintenance & Community

LibreFang is a community fork with open governance and a merge-first PR policy, emphasizing community contributions. The project boasts extensive test coverage ("2,100+ tests") and high code quality ("Zero clippy warnings"). Community engagement is fostered through Discord. Contributing Discord

Licensing & Compatibility

Released under the permissive MIT License, allowing broad compatibility with commercial use and integration into closed-source applications.

Limitations & Caveats

The OpenFang Protocol (OFP) wire protocol is plaintext by design. While it uses HMAC-SHA256 mutual authentication and per-message HMAC with nonce replay protection, frame contents are not encrypted. Secure cross-network federation requires implementing additional security layers like private overlay networks or service-mesh mTLS. Comparison

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
1,406
Issues (30d)
542
Star History
43 stars in the last 30 days

Explore Similar Projects

Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

SuperAGI by TransformerOptimus

0.1%
18k
Open-source framework for autonomous AI agent development
Created 3 years ago
Updated 1 year ago
Starred by Guy Podjarny Guy Podjarny(Founder of Tessl; Cofounder of Snyk; Ex-CTO of Akamai), Gabriel Almeida Gabriel Almeida(Cofounder of Langflow), and
12 more.

awesome-ai-agents by e2b-dev

0.3%
28k
AI agent list, open & closed source, for various uses
Created 2 years ago
Updated 1 year ago
Starred by Lilian Weng Lilian Weng(Cofounder of Thinking Machines Lab), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
59 more.

AutoGPT by Significant-Gravitas

0.1%
185k
AI agent platform for building, deploying, and running autonomous workflows
Created 3 years ago
Updated 11 hours ago
Feedback? Help us improve.