#151151st of 242 in Agent frameworks and SDKs

outlines

Python library that constrains LLM output to a type, schema or grammar

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
16k
License
Apache-2.0
Last commit
Nov 2026
Last release
Aug 2026
Language
Python
Stars, last 35 weeks+2,562
25 Mar 2026: 13,468 stars1 Apr 2026: 13,488 stars8 Apr 2026: 13,520 stars15 Apr 2026: 13,548 stars22 Apr 2026: 13,605 stars29 Apr 2026: 13,644 stars6 May 2026: 13,701 stars13 May 2026: 13,737 stars20 May 2026: 13,771 stars27 May 2026: 13,806 stars3 Jun 2026: 13,832 stars10 Jun 2026: 13,861 stars17 Jun 2026: 13,884 stars24 Jun 2026: 14,044 stars1 Jul 2026: 14,260 stars8 Jul 2026: 14,346 stars15 Jul 2026: 14,434 stars22 Jul 2026: 15,102 stars29 Jul 2026: 15,353 stars5 Aug 2026: 15,435 stars12 Aug 2026: 15,506 stars19 Aug 2026: 15,574 stars26 Aug 2026: 15,629 stars2 Sept 2026: 15,672 stars9 Sept 2026: 15,709 stars16 Sept 2026: 15,761 stars23 Sept 2026: 15,820 stars30 Sept 2026: 15,842 stars7 Oct 2026: 15,863 stars14 Oct 2026: 15,897 stars21 Oct 2026: 15,937 stars28 Oct 2026: 15,962 stars4 Nov 2026: 15,983 stars11 Nov 2026: 15,996 stars18 Nov 2026: 16,010 stars25 Nov 2026: 16,030 stars

13,468 on 25 Mar 202616,030 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

.txt is hiring: 2 open roles

Overview

Outlines enforces structured output during generation: you pass a Python type (Literal, int, Pydantic model, Enum, Union, or a function signature) as `model(prompt, output_type)`. It wraps transformers and llama.cpp locally, vLLM and Ollama as servers, and OpenAI, Gemini and Dottxt as APIs. It also includes Jinja-based prompt templates.

Who it is for: Python developers who need valid JSON or typed output from LLMs

Strengths

  • Output type is a plain Python type or Pydantic model, passed as one argument
  • Same calling code across transformers, llama.cpp, vLLM, Ollama, OpenAI and Gemini
  • Can derive the output schema from a function signature for argument extraction
  • Built-in Jinja templates for reusable and few-shot prompts

Weaknesses

  • Library only: no server, UI or CLI, you write Python to use it
  • Local use needs a separately loaded transformers or llama.cpp model
  • Returns JSON strings that you validate yourself with model_validate_json
  • README promotes the vendor's commercial services, such as schema audits and the Dottxt API

What it needs

  • GPU optional
  • Needs transformers, pydantic
  • Models: transformers, llama.cpp, vLLM, Ollama, OpenAI

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Agent frameworks and SDKs

See all 242
Also in Agent frameworks and SDKs
RankProjectScore
#149cuawrightCoding-model agent that writes Playwright scripts and runs desktop tasks in a VM6.1k starsMIT58 out of 100
#150rlmPython library that lets an LLM recursively call itself from a REPL5.8k starsMIT58 out of 100
#152tuyaopenC/C++ SDK for building AI voice and agent hardware on Tuya, ESP32 and others2k starscustom license57 out of 100
#153typesafe-computer-useComputer-use agent that drives a Mac with a cheap decision classifier1.3k starsMIT57 out of 100
#154openmanusPython agent that carries out terminal-entered tasks with LLM tools and a browser Live demo ↗ (opens in a new tab)59.1k starsMIT56 out of 100