head to head · open source

LocalAI vs xerj

LocalAI has 50,140 GitHub stars, 4,569 forks, 201 open issues and last shipped yesterday. xerj has 18,817 stars, 1,435 forks, 16 open issues and last shipped yesterday. LocalAI leads on adoption by 166% (50,140 vs 18,817 stars). LocalAI is written in Go under MIT; xerj is written in Rust under Apache-2.0. LocalAI has attracted 9% as many forks as stars, xerj 8%. xerj was the more recently maintained of the two, and both are self-hostable with no licence fee.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

LocalAI ★ 50K xerj ★ 19K category AI & Machine Learning

← all 20902 open source comparisons

Side by side

LocalAI xerj
GitHub stars ★ 50K ★ 19K
License MIT Apache-2.0
Written in Go Rust
Last push 2026-11-02 2026-11-02
Forks ⑂ 4.6K ⑂ 1.4K
Self-hosting Yes Yes
Data ownership Your server Your server

pick LocalAI if

  • You weight community size — 50K stars and counting
  • You want the MIT license terms
  • Your stack matches Go
  • You value the larger contributor base for long-term maintenance

full LocalAI profile →

pick xerj if

  • You want the xerj feature set and don't need the biggest community
  • You prefer the Apache-2.0 license terms
  • Your stack matches Rust
  • You evaluated both and xerj fits your workflow better

full xerj profile →

About LocalAI

Deutsch Español français 日本語 한국어 Português Русский 中文 LocalAI is the open source AI engine. Run any model LLMs, vision, voice, image, video on any hardware. No GPU required. A small core, not a bundle. Each backend wraps a best in class engine (llama.cpp, vLLM, whisper.cpp, stable diffusion, MLX...) in its own image, pulled only when a model needs it. You install nothing you don't use. Composable by design : backends are separate and pulled on demand, so you install only what your model needs Open and extensible : load any model, or build your own backend in any language against an open interface Drop in API…

read the full LocalAI overview →

About xerj

XERJ XERJ is a community trusted local AI search that indexes any folder automatically, so your coding agent stops burning tokens reading files one by one and pulls the exact code it needs instead. Reference coding is its main use case and the clearest win: point an agent at a task and it downloads the open source repos closest to it, indexes them, and reuses how they solved the problem before writing its own code. In a controlled study that cut a coding agent's output tokens by 2.7x at the same 16/16 solve rate (case study), and people report roughly 5x in everyday work (field reports). It is enough for a…

read the full xerj overview →

More in AI & Machine Learning

Related comparisons

More Machine Learning Infrastructure projects

Compare either of these against the rest of the Machine Learning Infrastructure field.

Frequently asked questions

Is LocalAI or xerj more popular?

LocalAI has 50,140 GitHub stars and xerj has 18,817. LocalAI has the larger community by that measure.

Are LocalAI and xerj free?

Both are open source. LocalAI is licensed under MIT and xerj under Apache-2.0. Neither carries a licence fee.

What is the difference between LocalAI and xerj?

LocalAI is written in Go and xerj in Rust. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, LocalAI or xerj?

Choose LocalAI if you want the larger community (50,140 stars) or its MIT licence terms. Choose xerj if its feature set, stack or Apache-2.0 licence fits better. Both are self-hostable.