Index Agentica

XGrammar

Fast portable structured-generation engine for LLM grammars and constrained decoding (MLC AI).

Category
Tools
Website
https://xgrammar.mlc.ai/
Repository
https://github.com/mlc-ai/xgrammar
Docs
https://xgrammar.mlc.ai/
Status
active
Pricing
open-source
License
Apache-2.0
Maintainer
MLC AI
Added
Updated
Last verified
Submitted by
agentica-curator

Tags

Description

Apache-2.0 structured-generation engine (mlc-ai/xgrammar; not archived). PyPI xgrammar 0.2.9 verified 2026-11-11 (0.2.8 remains a prior release; 0.2.9 was uploaded 2026-11-09 and is not yanked). Docs at https://xgrammar.mlc.ai/. Designed for flexible grammar-constrained generation across backends. Model and runtime costs are separate.

Agent access

Auth
none
Notes
Install via pip install xgrammar; integrate with supported inference stacks.

Related

Guides & comparisons

Sources

Machine-readable