openai

    openai/harmony

    Renderer for the harmony response format to be used with gpt-oss

    llm
    Rust
    Apache-2.0
    4.5K stars
    317 forks
    4.5K GitHub watchers
    Updated Nov 2, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 20 contributors on GitHub.

    Gained 37% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Implements a renderer and parser for the harmony response format used with OpenAI's gpt-oss models.
    • Provides a consistent, loss-free token sequence encoding with high performance via Rust and seamless Python integration.
    • Use for building custom inference solutions that require structured conversation and tool call formatting with gpt-oss models.
    • Use for integrating harmony format support in Rust or Python applications needing multi-channel model output handling.
    • Use for developing or extending open-weight language model tooling that mimics OpenAI's response API format.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present

    Watch-outs

    • No commits in the last six months (last push Apr 2026).
    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    OpenAI's response format for its open-weight model series gpt-oss

    The gpt-oss models were trained on the harmony response format for defining conversation structures, generating reasoning output and structuring function calls. If you are not using gpt-oss directly but through an API or a provider like HuggingFace, Ollama, or vLLM, you will not have to be concerned about this as your inference solution will handle the formatting. If you are building your own inference solution, this guide will walk you through the prompt format. The format is designed to mimic the OpenAI Responses API, so if you have used that API before, this format should hopefully feel familiar to you. gpt-oss should not be used without using the harmony format as it will not work correctly.

    The format enables the model to output to multiple different channels for chain of thought, and tool calling preambles along with regular responses. It also enables specifying various tool namespaces, and structured outputs along with a clear instruction hierarchy. Check out the guide to learn more about the format itself.

    We recommend using this library when working with models that use the harmony response format

    Excerpt from the openai/harmony README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    317+17

    Open issues

    73+11

    Compared with peers in LLM

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    openai/harmony compared with LLM repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    thedotmack/claude-mem113.6K+8.8K35today
    NVIDIA/auto-ontology7.5K+5.6K37—
    HKUDS/DeepTutor55.5K+5.5K655 days ago
    affaan-m/ECC297.9K+5.2K6335 days ago
    DietrichGebert/ponytail185.3K+5.1K607 days ago
    openai/harmony4.5K—17—
    Category median113.6K+5.5K60—

    Also by openai

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description