LibreFang is an open-source Agent Operating System built from the ground up in Rust README.md35-37 Unlike traditional chatbot frameworks that wait for user input, LibreFang is designed to run autonomous agents that work 24/7 on schedules, monitoring targets, and performing complex tasks across multiple communication channels README.md39-40
The system is architected as a highly modular workspace consisting of 34+ members in the Rust workspace, providing a robust foundation for orchestration, long-term memory, and secure tool execution Cargo.toml3-34
LibreFang provides a comprehensive suite of features for agent deployment and management:
HAND.toml manifests README.md93-104librefang-llm-driver abstraction README.md129-130 Recent updates include support for DeepSeek v4-pro reasoning models CHANGELOG.md17-73wasmtime, Merkle audit chains in librefang-runtime-audit, and taint tracking README.md118-182 Cargo.toml9-183The following diagram illustrates how natural language interactions from various channels are processed by the core Rust entities and translated into autonomous actions.
Sources: crates/librefang-kernel/src/kernel/mod.rs13-45 Cargo.toml3-34 CHANGELOG.md62-66
LibreFang is organized into a modular Rust workspace to separate concerns between the core engine, platform integrations, and user interfaces.
| Crate Group | Purpose | Key Crates |
|---|---|---|
| Core | The heart of the OS; handles orchestration and execution logic. | librefang-kernel, librefang-runtime, librefang-types |
| Persistence | Manages long-term memory, vector storage, and migrations. | librefang-memory, librefang-memory-wiki, librefang-import |
| Interfaces | Provides ways for users and external systems to interact. | librefang-api, librefang-cli, librefang-desktop, librefang-http |
| Capabilities | Extends agent functionality through skills and autonomous hands. | librefang-skills, librefang-hands, librefang-extensions |
| Communication | Bridges the kernel to external messaging platforms and P2P. | librefang-channels, librefang-wire |
| Runtime Ext. | Specialized execution environments and protocols. | librefang-runtime-mcp, librefang-runtime-sandbox-docker, librefang-acp, librefang-rl-export |
For a detailed map of the workspace and their dependencies, see Workspace & Crate Structure.
Sources: Cargo.toml3-34 README.md113-138
The system operates through a central LibreFangKernel which coordinates specialized subsystems to manage the lifecycle of agents and their environment crates/librefang-kernel/src/kernel/mod.rs1-12
Sources: crates/librefang-kernel/src/kernel/mod.rs1-115 Cargo.toml3-34 CHANGELOG.md109
LibreFang can be installed via a shell script, Homebrew, Docker, or Cargo. Once installed, the librefang init command provides an interactive TUI wizard to configure LLM providers and basic settings README.md49-61
curl -fsSL https://librefang.ai/install.sh | sh README.md51librefang init README.md60librefang start (starts the daemon and opens the dashboard at http://localhost:4545) README.md57For detailed installation guides and first-run configuration, see Getting Started.
Sources: README.md49-85
init wizard TUI, and daemon lifecycle management.librefang-types, librefang-kernel, and librefang-runtime.