Skip to content

CLI reference

The orion command starts Orion locally, manages Jupyter, and maintains cached data under your Orion home directory.

Install via Install Orion (orion-notebook on npm and PyPI).

Orion home directory

Default location:

  • macOS / Linux: ~/.orion
  • Windows: %USERPROFILE%\.orion

Override with environment variable ORION_HOME_DIR.

Common paths inside:

PathPurpose
runtime/venvManaged Python + Jupyter + orion-ui
runtime/jupyter-connection.jsonAuto-connect handoff from CLI
app/<version>Downloaded app bundle (pip installs)
orion.dbLocal chat history
settings.jsonUser settings (no API keys)
credentials.jsonLocal provider API keys and OAuth tokens

Main command

bash
orion [options]

Starts the Orion app, starts Jupyter (unless --app-only), opens the browser, and connects automatically.

Options

OptionDescription
-y, --yesApprove managed setup prompts (venv, downloads) without asking
--no-browserStart services without opening a browser
--hereUse current directory as Jupyter root instead of home
--app-onlyStart Orion only; connect to existing Jupyter in the UI
--pick-pythonShow Python selection menu (npm CLI only)
-V, --versionPrint CLI version and exit

Environment variables

VariablePurpose
ORION_HOME_DIROverride Orion data directory
ORION_PORTPort for local Orion app server
ORION_NO_BROWSERSame as --no-browser when set
ORION_APP_BUNDLE_URLCustom app bundle URL (advanced)
ORION_VERSIONPin version for install script
ORION_INSTALL_METHODForce install script method: npm, pip, or uv
ORION_NPM_PACKAGE_SPECInstall-script override for npm tarballs/specs (CI)
ORION_PYTHON_PACKAGE_SPECInstall-script override for Python wheels/specs (CI)
ORION_UI_PACKAGE_SPECManaged-runtime override for orion-ui wheels/specs (CI)

orion doctor

Diagnose installation, app bundle, Python/Jupyter, Node, PATH, and network state:

bash
orion doctor
orion doctor --json
orion doctor --setup --json

Use --setup to run first-run setup checks without opening the browser. This may download the app bundle, portable Node, or managed Jupyter runtime if they are missing. Use --json for CI and support reports.

If Orion already downloaded a portable Node runtime under runtime/node/, later runs reuse it before asking to download Node again.

orion config

npm CLI only. Manage CLI runtime preferences under ~/.orion/runtime.

bash
orion config show
orion config python show
orion config python pick
orion config python reset

Use python pick when Orion should use a specific Python installation for Jupyter instead of the managed venv. Install the required notebook packages in that Python environment first:

bash
python -m pip install -U jupyter_server ipykernel orion-ui

The pip launcher does not include config or --pick-python; it falls back to managed Jupyter when system Jupyter is incompatible.

orion update

Check the package registry for the latest stable Orion release and install it with the package manager used for the current installation:

bash
orion update

Run orion again after the update finishes. You can also check and install updates from the Orion menu or the bottom of the Settings sidebar while Orion is running.

orion uninstall

Remove cached Orion data and uninstall detected orion-notebook packages:

bash
orion uninstall --yes
orion uninstall --all --yes
FlagEffect
(default)Remove app bundle cache for current version
--allRemove entire ~/.orion directory (venv, portable Node, all caches)
-y, --yesSkip confirmation prompts

Orion checks npm, pip, and uv installations. When it is currently running from the package being removed, it schedules that package removal to finish after the command exits.

Managed installer vs npm vs pip

FeatureManaged installer (uv)npmpip
Recommended for end usersYesNoNo
Ships full app bundleDownloads on first runYesDownloads on first run
orion configNoYesNo
--pick-pythonNoYesNo
Managed Jupyter + orion-ui syncYesYesYes

Last updated June 2026.

Apache-2.0 Licensed