tyro 1.0.16


pip install tyro

  Latest version

Released: Aug 23, 2026


Meta
Author: brentyi
Requires Python: >=3.8

Classifiers

License
  • OSI Approved :: MIT License

Operating System
  • OS Independent

Programming Language
  • Python :: 3
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

tyro

codecov PyPI Downloads codecov

Documentation   •   pip install tyro

tyro.cli() is a tool for generating CLI interfaces from type-annotated Python.

We can define configurable scripts using functions:
image

Or instantiate configs defined using tools like dataclasses, pydantic, and attrs:
image

Other features include helptext generation, nested structures, subcommands, and shell completion. For examples and the API reference, see our documentation.

Why tyro?

  1. Define things once. Standard Python type annotations, docstrings, and default values are parsed to automatically generate command-line interfaces with nice helptext.

  2. Static types. Unlike tools dependent on dictionaries, YAML, or dynamic namespaces, arguments populated by tyro are better undestood by IDEs and language servers, as well as static checking tools like pyright and mypy.

  3. Modularity. tyro supports hierarchical configurations, which make it easy to decentralize definitions, defaults, and documentation.

In the wild

tyro is designed to be lightweight for throwaway scripts, while improving maintainability for larger projects. Examples:

nerfstudio-project/nerfstudio
GitHub stars
Open-source tools for neural radiance fields.
Sea-Snell/JAXSeq
GitHub stars
Train very large language models in Jax.
kevinzakka/obj2mjcf
GitHub stars
Interface for processing OBJ files for Mujoco.
blurgyy/jaxngp
GitHub stars
CUDA-accelerated implementation of instant-ngp, in JAX.
NVIDIAGameWorks/kaolin-wisp
GitHub stars
PyTorch library for neural fields.
autonomousvision/sdfstudio
GitHub stars
Unified framework for surface reconstruction.
openrlbenchmark/openrlbenchmark
GitHub stars
Collection of tracked experiments for reinforcement learning.
vwxyzjn/cleanrl
GitHub stars
Single-file implementation of deep RL algorithms.
pytorch-labs/LeanRL
GitHub stars
Fork of CleanRL, optimized using PyTorch 2 features.
pytorch/torchtitan
GitHub stars
PyTorch-native platform for training generative AI models.
KwaiVGI/LivePortrait
GitHub stars
Stitching and retargeting for portraits.
Physical-Intelligence/openpi
GitHub stars
Open-source models for robotics.
NVIDIA/Isaac-GR00T
GitHub stars
Foundation model for generalist robots.
haosulab/ManiSkill
GitHub stars
GPU-parallelized simulation + learning for robot manipulation.
mujocolab/mjlab
GitHub stars
Lightweight, modular abstractions for RL and sim-to-real robotics.
amazon-far/holosoma
GitHub stars
Humanoid robotics framework for RL training and deployment.
MalcolmMielle/bark_monitor
GitHub stars
Show your neighbor that your dog doesn't bark!

Alternatives

tyro is opinionated. If any design decisions don't make sense, feel free to file an issue!

You might also consider one of many alternative libraries. Some that we like:

  • cappa offers a similar core feature set but with very different ergonomics. It looks polished and well-maintained!
  • cyclopts and defopt has very comprehensive type annotation support and a heavier emphasis on subcommand generation.
  • simple-parsing and jsonargparse provide deeper integration with configuration file formats like YAML and JSON.
  • clipstick, which focuses on simplicity + generating CLIs from Pydantic models.
  • datargs provides a minimal API for dataclasses.
  • fire and clize support arguments without type annotations.

There are also some options that directly extend tyro:

  • mininterface simultaneously generates GUI, TUI, web, CLI, and file-based program configuration.
  • manuscript generates CLI interfaces from a simple block of configuration variables.

We also have some notes on tyro's design goals and other alternatives in the docs here.

1.0.16 Aug 23, 2026
1.0.15 Jun 20, 2026
1.0.14 Jun 18, 2026
1.0.13 Apr 14, 2026
1.0.12 Apr 02, 2026
1.0.11 Mar 26, 2026
1.0.10 Mar 18, 2026
1.0.9 Mar 14, 2026
1.0.8 Feb 25, 2026
1.0.7 Feb 23, 2026
1.0.6 Feb 05, 2026
1.0.5 Jan 13, 2026
1.0.4 Jan 12, 2026
1.0.3 Dec 21, 2025
1.0.2 Dec 16, 2025
1.0.1 Dec 12, 2025
1.0.0 Dec 08, 2025
0.10.0a6 Nov 17, 2025
0.10.0a5 Nov 12, 2025
0.10.0a4 Nov 05, 2025
0.10.0a3 Oct 27, 2025
0.10.0a2 Oct 27, 2025
0.10.0a1 Oct 27, 2025
0.10.0a0 Oct 22, 2025
0.9.35 Oct 13, 2025
0.9.34 Oct 13, 2025
0.9.33 Oct 10, 2025
0.9.32 Sep 18, 2025
0.9.31 Aug 30, 2025
0.9.30 Aug 29, 2025
0.9.29 Aug 28, 2025
0.9.28 Aug 09, 2025
0.9.27 Jul 29, 2025
0.9.26 Jul 01, 2025
0.9.25 Jun 30, 2025
0.9.24 Jun 04, 2025
0.9.23 Jun 03, 2025
0.9.22 May 26, 2025
0.9.21 May 22, 2025
0.9.20 May 11, 2025
0.9.19 Apr 18, 2025
0.9.18 Mar 28, 2025
0.9.17 Mar 13, 2025
0.9.16 Feb 19, 2025
0.9.15 Feb 19, 2025
0.9.14 Feb 11, 2025
0.9.13 Jan 23, 2025
0.9.12 Jan 22, 2025
0.9.11 Jan 18, 2025
0.9.10 Jan 16, 2025
0.9.9 Jan 15, 2025
0.9.8 Jan 10, 2025
0.9.7 Jan 10, 2025
0.9.6 Jan 07, 2025
0.9.5 Dec 25, 2024
0.9.4 Dec 19, 2024
0.9.3 Dec 18, 2024
0.9.2 Nov 23, 2024
0.9.1 Nov 18, 2024
0.9.0 Nov 18, 2024
0.8.14 Oct 23, 2024
0.8.13 Oct 19, 2024
0.8.12 Oct 11, 2024
0.8.11 Sep 18, 2024
0.8.10 Aug 27, 2024
0.8.9 Aug 26, 2024
0.8.8 Aug 15, 2024
0.8.7 Aug 15, 2024
0.8.6 Aug 09, 2024
0.8.5 Jun 25, 2024
0.8.4 May 10, 2024
0.8.3 Apr 09, 2024
0.8.2 Apr 06, 2024
0.8.1 Apr 05, 2024
0.8.0 Apr 04, 2024
0.7.3 Feb 16, 2024
0.7.2 Feb 07, 2024
0.7.1 Feb 01, 2024
0.7.0 Jan 23, 2024
0.6.6 Jan 19, 2024
0.6.5 Jan 18, 2024
0.6.4 Jan 14, 2024
0.6.3 Jan 01, 2024
0.6.2 Dec 27, 2023
0.6.1 Dec 22, 2023
0.6.0 Dec 01, 2023
0.5.18 Nov 23, 2023
0.5.17 Nov 18, 2023
0.5.16 Nov 18, 2023
0.5.15 Nov 17, 2023
0.5.14 Nov 14, 2023
0.5.13 Nov 14, 2023
0.5.12 Oct 31, 2023
0.5.11 Oct 30, 2023
0.5.10 Oct 05, 2023
0.5.9 Sep 27, 2023
0.5.8 Sep 26, 2023
0.5.7 Sep 06, 2023
0.5.6 Sep 01, 2023
0.5.5 Jul 28, 2023
0.5.4 Jul 05, 2023
0.5.3 May 27, 2023
0.5.2 May 10, 2023
0.5.1 May 05, 2023
0.5.0 May 05, 2023
0.4.2 Mar 12, 2023
0.4.1 Mar 12, 2023
0.4.0 Feb 20, 2023
0.3.38 Jan 26, 2023
0.3.37 Jan 06, 2023
0.3.36 Dec 12, 2022
0.3.35 Nov 21, 2022
0.3.34 Nov 20, 2022
0.3.33 Nov 12, 2022
0.3.32 Nov 11, 2022
0.3.31 Nov 10, 2022
0.3.30 Nov 07, 2022
0.3.29 Nov 03, 2022
0.3.28 Nov 02, 2022
0.3.27 Oct 19, 2022
0.3.26 Oct 19, 2022
0.3.25 Oct 14, 2022
0.3.24 Oct 14, 2022
0.3.23 Oct 06, 2022
0.3.22 Oct 05, 2022

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
docstring-parser (>=0.16)
eval-type-backport (>=0.1.3)
typeguard (>=4.0.0)
typing-extensions (>=4.13.0)