Installation
Install the Osmosis CLI from PyPI:Python 3.12 or later is required. The package registers three equivalent CLI aliases:
osmosis, osmosis-ai, and osmosis_ai.Upgrading
The CLI can upgrade itself in-place. It auto-detects your install method (pip, pipx, or uv tool) and runs the appropriate upgrade command:
Version compatibility
The CLI sends its version to the platform on every request so the platform can signal when an upgrade is recommended or required:- Deprecation warning. If your installed version is approaching end of support, the CLI prints a one-time yellow
⚠warning to stderr. Commands continue to run normally — schedule an upgrade at your convenience. - Upgrade required. If your version is below the minimum supported version, platform requests fail with an
Upgrade requirederror and the command exits. Runosmosis upgrade(or the equivalent for your install method) to continue.
Authentication
Login
| Option | Description |
|---|---|
-f, --force | Force re-login, clearing existing credentials |
--token <TOKEN> | Authenticate with a personal access token instead of browser flow (useful for CI/CD) |
Logout
| Option | Description |
|---|---|
-y, --yes | Skip confirmation prompt |
Who Am I
Workspace Context
Most platform commands are scoped through the workspace repository you are currently inside. If you are setting up Osmosis for the first time, complete Onboarding before running workspace-scoped commands. For details on how the CLI reads GitHuborigin and maps local commands to a platform workspace, see Workspace Repository.
Next Steps
Onboarding
Set up a workspace repository and local CLI context.
Command Reference
Full reference for every CLI command and its options.