Introduction
xlai is a Rust-first AI integration workspace for building reusable AI calling flows across native applications and the browser. The design is inspired by moeru-ai/xsai.
The project is built around a unified API with pluggable backends. The long-term goal is to support API-based models, tool integration, skill management, knowledge retrieval, vector search, and local or device inference behind the same overall API model.
What works today
- Cargo workspace with native and
wasm32build support - OpenAI-compatible chat backend
- Chat sessions with per-session tool registration
- Streaming chat output
- Configurable tool-call execution (concurrent by default, sequential optional)
- Unit/mock tests and ignored end-to-end tests
- GitHub Actions for build, test, formatting, clippy, and e2e
Where to go next
- Getting started — clone, build, test, and optional JS package build
- Configuration —
.envand provider variables - Architecture — crates and request flow
- Rust SDK —
RuntimeBuilder, chat, agents, tools - JavaScript / WASM —
@yai-xlai/xlai
For the full narrative and roadmap in the repository, see the README on GitHub.