CLI Installation Guide
Requirements
Section titled “Requirements”- Node.js 22 or newer — the CLI declares
engines: { node: ">=22.0.0" }and will refuse to run on older releases (download) - npm 10+ (ships with Node 22)
Install
Section titled “Install”The user CLI is published to the public npm registry as tokenbot — unscoped:
npm install -g tokenbotVerify:
tokenbot --versionThe
@tokenbot-org/*packages are libraries published to GitHub Packages —cli-core,sdk,data-modelsand the internaladmin-cli. They are not the user CLI and most people never install them directly.
Project-local install
Section titled “Project-local install”For reproducible scripts, install it as a dev dependency and call it through npx:
npm install --save-dev tokenbotnpx tokenbot strategy listTroubleshooting
Section titled “Troubleshooting”command not found: tokenbot
Section titled “command not found: tokenbot”The global npm bin directory probably isn’t on your PATH:
# Where did npm put it?npm list -g tokenbot
# Add npm's bin directory to PATH (append to ~/.bashrc or ~/.zshrc)export PATH="$(npm config get prefix)/bin:$PATH"
tokenbot --versionPermission denied on a global install
Section titled “Permission denied on a global install”Don’t reach for sudo. Point npm at a directory you own instead:
mkdir ~/.npm-globalnpm config set prefix '~/.npm-global'export PATH=~/.npm-global/bin:$PATHnpm install -g tokenbotWrong Node version
Section titled “Wrong Node version”node --version # must be v22.0.0 or higherIf you manage multiple versions, nvm use 22 before installing — a CLI installed under an older
Node stays bound to it.
- Getting Started — register an identity and run your first command
- Command Reference — every command and flag

