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.

Terminal
$node --version

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)

Terminal
$npm install -g @authright/cli@latest

pnpm

Terminal
$pnpm add -g @authright/cli@latest

If pnpm reports that its global bin directory is missing, run pnpm setup, restart your shell, then retry.

yarn (Classic / 1.x)

Terminal
$yarn global add @authright/cli@latest

Yarn Berry removed global add. On those versions, use npm, pnpm, or bun for the global CLI instead.

bun

Terminal
$bun add -g @authright/cli@latest

Bun can install the package, but the CLI still runs on Node.js—keep Node 20+ on your PATH.

Verify installation

Terminal
$authright --version

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

Terminal
$npm install -g @authright/cli@latest
$cd your-project
$authright update

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:

Terminal
$npm uninstall -g @authright/cli
# or: pnpm rm -g / yarn global remove / bun rm -g

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.

Terminal
$cd your-project
$authright init

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.

Terminal
$cd your-project
$authright init --tools cursor
# authright init --tools claude
# authright init --tools codex

Continue with First loop.

On this page