Skip to content

CLI reference

This reference is auto-generated from the agnify CLI. Re-run bun run docs:cli (or cd backend && uv run python scripts/emit_cli_docs.py) after CLI changes.

One line (installs uv if needed, then the CLI):

Terminal window
curl -LsSf https://app.agnify.ai/install.sh | sh

Or with an existing Python toolchain (uv tool / pipx / pip):

Terminal window
uv tool install 'agnify[keyring]'

The [keyring] extra stores tokens in your OS keychain; plain agnify falls back to a 0600 file under ~/.config/agnify/.

Two credential paths:

  • Human usersagnify login runs the device-code flow and stores a refresh token in your OS keychain. The CLI auto-refreshes access tokens.
  • CI / cron / integrations — set AGNIFY_API_KEY=ak_… and AGNIFY_API_BASE=https://app.agnify.ai. API keys are org-scoped, minted at Settings → API keys, and never expire on their own.