Installation
Install the AuthRight CLI (@authright/cli) for the coding-agent path (Cursor, Codex, or Claude Code).
Prerequisites
You need Node.js 20.19.0 or newer.
If that prints v20.19 or higher, you're set. If not, install a newer Node from nodejs.org or your version manager (nvm, fnm, asdf, volta).
The CLI path uses an AI coding tool. AuthRight ships delivery for Cursor, Codex, and Claude Code (see Agents).
The CLI runs on Node.js. The application you analyze does not have to: Java and Node.js / TypeScript have the strongest coverage today; Python and Go are supported and being strengthened. More languages and stacks will follow. See Concepts.
Package managers
Choosing a global installer is independent of how your application repo manages dependencies.
npm (primary)
pnpm
If pnpm reports that its global bin directory is missing, run pnpm setup, restart your shell, then retry.
yarn (Classic / 1.x)
Yarn Berry removed global add. On those versions, use npm, pnpm, or bun for the global CLI instead.
bun
Bun can install the package, but the CLI still runs on Node.js—keep Node 20+ on your PATH.
Verify installation
If the command is not found, the package manager's global bin directory is missing from this shell's PATH. Add that directory (or fix your Node version manager shims), then verify again. Do not treat cloning this repository as the install path.
Updating
authright update regenerates managed Cursor / Codex / Claude Code skills and commands for the tools configured in that project.
Uninstalling
There is no authright uninstall command. Removing the CLI is manual and does not rewrite your application source.
1. Remove the global package:
2. Optional — remove project artifacts. Delete .authright/ if you no longer want AuthRight data for that repo. Keep it in git if you still need the decision history.
3. Optional — remove generated agent files. Delete Cursor auth-* commands / authright-* skills and Codex authright-* skills for tools you configured. See Agents.
Next steps
Initialize AuthRight in your project for the AI coding agent you are using. Most people work in one agent at a time.
Interactive: omit --tools. The CLI prompts you to select Cursor, Codex, or Claude Code. Detected host directories are pre-selected on first run.
In CI or any non-interactive shell, omitting --tools installs hosts detected from the project (for example .cursor/). Pass --tools none when you only want .authright/ with no agent files.
Specify the agent: pass --tools when you already know which one you are in.
Continue with First loop.
What AuthRight is
AuthRight locks identity decisions before anyone writes auth code. It is not an identity provider. It does not host users, run login, or replace Keycloak, Entra, Auth0, or PingAM. It also does not write your application source.
First loop
This is the AI coding agent + AuthRight path (Cursor, Codex, or Claude Code). Install @authright/cli first — see Installation.