eastreams/loong
Lightweight, clear, and fully extensible AI agent infrastructure — learn easily, customize anything 🐉
Loong – Rust‑based platform for vertical AI agents
What it is – Loong is a Rust‑written framework that lets you build, configure and run vertical AI agents (agents specialised for a particular domain or workflow). It provides a secure, extensible runtime, a unified CLI (loong) and a plug‑in architecture so you can swap providers (OpenAI, Volcengine, …), add tools, memory stores, and connect the agent to external channels such as Lark/Feishu.
Key ideas
- Rich, out‑of‑the‑box configuration – 42+ providers and 25+ communication channels are pre‑packaged; you enable them via a TOML config.
- Clear separation of concerns – the core kernel, runtime, plugins, and delivery surfaces live in separate crates; commands are grouped (product paths vs. operator shells) to keep the CLI tidy.
- Security & control – provider keys are read from environment variables, policies, approvals and audit trails are enforced inside explicit runtime boundaries.
- Designed for long‑running, real‑world use – supports multi‑step workflows, session management, and a “gateway” layer for supervising long‑running deliveries.
How you get started
- Install the binary via the provided install script (Linux/macOS) or with
cargo install --path crates/daemon. - Run
loong– the first run launches a TUI that walks you through configuration (or you can runloong onboardlater). - Choose a provider in
~/.loong/config.toml(e.g., OpenAI or Volcengine) and set the API key via an environment variable. - Wire up a channel, e.g. Feishu/Lark, with
loong feishu onboard --domain larkwhich creates a bot app and writes credentials to the config. - Test the setup with
loong doctorand a simple send command, then start chatting vialoong chator run a one‑off query withloong ask.
Architecture at a glance
loong-core → loong-runtime, loong-plugin-sdk
contracts → kernel → bridge-runtime → loong-app-protocol → loong-cli
app, daemon, spec, bench … (13 crates total)
The workspace follows a strict acyclic dependency graph, keeping the kernel stable while allowing plugins and extensions to evolve independently.
Who it’s for
- Developers who want a production‑grade, Rust‑native AI‑agent stack rather than a quick Python script.
- Teams needing tight security, auditability and the ability to run agents behind custom policies.
- Anyone looking to integrate LLM providers with enterprise chat platforms (Feishu/Lark) and build domain‑specific “vertical” agents.
Where to learn more
- Full docs:
site/(get‑started, provider/channel guides, architecture, contribution areas). - Community: X, Telegram, Discord, Reddit, Feishu/WeChat QR codes.
- Sponsor backing from Volcengine and Feishu, indicating enterprise interest.
All information above is taken directly from the repository’s README.
Related
- Project
- Project
- Project
- Project
- Project