Runtime reference#
This page covers what a built binary provides on the user’s machine: the
self management commands, the environment variables the runtime reads and
sets, and where installations live. For how the bootstrap works internally,
see runtime internals.
self commands#
Built binaries reserve exactly one command group, self; every other
invocation is passed untouched to your app. (Even that reservation is
optional: building with
self-command-group = false
produces binaries with no self group at all.)
Always available:
Command |
Effect |
|---|---|
|
delete this binary’s installation from disk |
|
delete, then reinstall from the embedded payload |
|
alias of |
Available only when exposed at build time:
Command |
Effect |
|---|---|
|
run the installed venv interpreter (installs first if needed) |
|
print the venv interpreter’s path (installs first if needed) |
|
print the shared uv cache directory |
|
remove the shared uv cache ( |
|
print name, version, python, uv version, and install path |
A self subcommand that wasn’t exposed fails with unknown self command,
indistinguishable from one that doesn’t exist.
Environment variables#
Read by the runtime:
Variable |
Effect |
|---|---|
|
override the base directory for per-app installations |
|
override the shared cache directory (embedded uv extractions) |
|
path to a uv binary to use instead of the embedded one |
|
make the stub verbose about every bootstrap step |
Set for your app:
Variable |
Meaning |
|---|---|
|
present in the app’s environment so it can detect axe installs |
The runtime also sanitizes the environment for consistency across user
machines: apps run in Python’s isolated mode (user site-packages and
PYTHON* variables never leak in), and during installation any inherited
UV_*, PIP_*, PYTHON*, VIRTUAL_ENV, or CONDA_PREFIX variables are
dropped. Details in runtime internals.
Install locations#
Installations live at <data dir>/<app name>/<payload fingerprint>, where
the data directory defaults to:
OS |
Data directory |
|---|---|
Linux |
|
macOS |
|
Windows |
|
The fingerprint is derived from the payload, so a new binary version gets a
fresh environment automatically. self remove deletes the current
binary’s installation; directories left behind by older versions are safe to
delete manually.
The shared cache — the extracted uv release, reused by every axe app that pins the same uv version — lives under the platform cache directory:
OS |
Cache directory |
|---|---|
Linux |
|
macOS |
|
Windows |
|
Offline guarantee#
The runtime contains no network code at all. Bootstrap extracts the embedded
CPython and uv, creates a venv, and installs the embedded wheels with
--offline --no-index. If it can’t finish (disk full, permissions), it
fails with a clear error — it never falls back to downloading anything.