head to head · open source
Yuxi vs SAG
Yuxi has 7,121 GitHub stars, 1,120 forks, 90 open issues and last shipped 2 days ago. SAG has 2,500 stars, 162 forks, 2 open issues and last shipped today. Yuxi leads on adoption by 185% (7,121 vs 2,500 stars). Yuxi is written in Python under MIT; SAG is written in Python under MIT. Yuxi has attracted 16% as many forks as stars, SAG 6%. SAG was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 2 topic tags (knowledge-base, knowledge-graph), so they are genuine substitutes rather than adjacent tools.
Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.
← all 20902 open source comparisons
Side by side
| Yuxi | SAG | |
|---|---|---|
| GitHub stars | ★ 7.1K | ★ 2.5K |
| License | MIT | MIT |
| Written in | Python | Python |
| Last push | 2026-09-18 | 2026-09-20 |
| Forks | ⑂ 1.1K | ⑂ 162 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick Yuxi if
- You weight community size — 7.1K stars and counting
- You want the MIT license terms
- Your stack matches Python
- You value the larger contributor base for long-term maintenance
pick SAG if
- You want the SAG feature set and don't need the biggest community
- You prefer the MIT license terms
- Your stack matches Python
- You evaluated both and SAG fits your workflow better
About Yuxi
Yuxi is a self hosted, multi tenant knowledge agent platform built in Python under the MIT license. It places knowledge base retrieval, knowledge graphs, LangGraph multi agent orchestration, MCP and Skills, sandboxed tools and permission management inside one workspace, with a Vue 3 and Ant Design front end and a FastAPI back end driven by a LangGraph and ARQ worker layer. The project ships as a Docker Compose deployment and lives in the Python ecosystem, with storage split across PostgreSQL, Redis, MinIO, Milvus and Neo4j, and document processing handled by MinerU, PaddleX and RapidOCR.
About SAG
SAG is an open source, local first knowledge base application and retrieval architecture, built for individuals and AI agents that need searchable, connected and traceable knowledge from their own documents.
More in Content & Publishing
Related comparisons
More Documentation & Knowledge Base projects
Compare either of these against the rest of the Documentation & Knowledge Base field.
Frequently asked questions
Is Yuxi or SAG more popular?
Yuxi has 7,121 GitHub stars and SAG has 2,500. Yuxi has the larger community by that measure.
Are Yuxi and SAG free?
Both are open source. Yuxi is licensed under MIT and SAG under MIT. Neither carries a licence fee.
What is the difference between Yuxi and SAG?
Yuxi is written in Python and SAG in Python. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.
Which should I choose, Yuxi or SAG?
Choose Yuxi if you want the larger community (7,121 stars) or its MIT licence terms. Choose SAG if its feature set, stack or MIT licence fits better. Both are self-hostable.