CLI
Installation
Install the agex CLI and authenticate with GitHub.
Requirements
- Node.js 18 or later
- npm, pnpm, or yarn
- A GitHub account
Install
npm install -g agexVerify:
agex --versionAuthentication
agex uses GitHub's device flow — no passwords, no personal access tokens to create or manage.
agex loginThe CLI will:
- Print an 8-character code (e.g.
ABCD-1234) - Open
github.com/login/devicein your browser - Ask you to enter the code and authorize agex
- Complete automatically once you approve
Your session is stored locally in ~/.config/agex/auth.json and used for all subsequent commands.
Check who you're logged in as
agex whoamiSign out
agex logoutLocal development
To use the CLI against a locally running hub:
AGEX_API_URL=http://localhost:3000 agex push CLAUDE.mdYou can also export the variable for a session:
export AGEX_API_URL=http://localhost:3000
agex sync