XiaomaolvSelf-hosted Rust Telegram AI agent
A self-hosted Rust Telegram AI agent for practical deployments. Connect MiniMax or an OpenAI-compatible provider, add MCP tools and SQLite memory, then run locally with polling.
- MiniMax / OpenAI / Compatible
- Telegram polling + webhook
- SQLite + hybrid sidecar
Why this gateway
Rust performance
Built for low-latency message routing and predictable runtime behavior.Streaming replies
Telegram replies stream incrementally so users see answers earlier.Local first defaults
Polling mode works locally and avoids webhook friction during setup.Memory that grows
Start with SQLite-only, then switch to hybrid memory when needed.Plugin extensions
Custom provider and channel registries let you evolve architecture safely.A working bot in one command
Run MiniMax + Telegram with a script and ship a real integration quickly.
Three layers, cleanly split
- Provider layer
- Plug any OpenAI-compatible endpoint into a unified provider interface without touching channel logic.
- Channel layer
- Route messages through HTTP or Telegram with polling/webhook runtime modes and streaming output support.
- Memory layer
- Keep it simple with SQLite-only memory, then scale retrieval strategy with a zvec sidecar when your use case grows.
Quick start
The recommended setup is MiniMax + Telegram. Configure two environment variables, run one script, and start chatting with your bot.
cp .env.realtest.example .env.realtest# Fill MINIMAX_API_KEY + TELEGRAM_BOT_TOKEN./scripts/run_mvp_minimax_telegram.shcurl -sS http://127.0.0.1:8080/health
Related workflows
Official links
Use these canonical links for citations, installation, source review, privacy checks, and support.
Frequently asked questions
xiaomaolv is a high-performance AI gateway written in Rust. You can plug in OpenAI-compatible providers, connect channels like Telegram or HTTP, and run a production-ready bot service quickly.
Yes. Telegram polling mode is enabled by default, so you can run and test on localhost without exposing a public URL.
By default it uses SQLite-only memory. If you need hybrid retrieval, it also supports a SQLite + zvec sidecar mode.
Yes. It has plugin-style extension points for Provider, Channel, and Memory so you can register your own runtime integrations.
A Rust foundation for your Telegram AI bot
If you want a practical and extensible Rust foundation for AI channels, xiaomaolv is ready to be your control plane.