xonsh shell

xonsh is a Python-powered shell described as full-featured, cross-platform, and AI-friendly.

github.com/xonsh/xonsh
xonsh shell homepage screenshot

About xonsh shell

Xonsh is a Python-based shell. Its language is a superset of Python 3, so Python code and shell commands can be used together in the same session. The homepage states that it works on Linux, macOS, Windows, BSD, Jupyter, Android, Raspberry Pi and Nix.

Xonsh has an extension system, and its add-ons are called xontribs. The homepage lists installation as an isolated environment, a package, a container or a portable AppImage, and links to a step-by-step tutorial. It also lists several projects that use Xonsh or a compatible shell. AI-related use is shown only through user-configured examples, such as an alias that runs a local model through ollama. The homepage does not describe a built-in AI feature.

Key features

  • Python 3 superset language with shell commands integrated into the same syntax
  • Runs on Linux, macOS, Windows, BSD, Jupyter, Android, Raspberry Pi and Nix
  • Extension system with add-ons called xontribs loaded by name
  • Installable as an isolated environment, package, container or AppImage
  • Aliases and environment variables can be defined as Python functions or strings
  • Event hooks, such as on_postcommand, for customizing prompt and keybinding behavior
Best for: Python users who want Python code and shell commands in one interactive environment, including people who work in Jupyter or across several operating systems.
Good for
  • Supports a wide range of platforms, as listed on the homepage
  • Lets users mix Python code and shell commands in one language
  • Has an extension system for adding functionality through xontribs

xonsh shell at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Not stated
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

xonsh shell alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Programming Languages

Well-known listings from the same topic.

All 66

xonsh shell FAQ

How can Xonsh be installed?
The homepage lists four options: an isolated environment, a package, a container, or a portable AppImage.
How are xontribs added to Xonsh?
The homepage shows them loaded with the xontrib load command followed by one or more names, such as prompt_starship or jupyter.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing