auth

A command guide for signing in to the CodeRabbit command-line tool. CodeRabbit is a service that provides code reviews.

In plain words
What is it for?
Use it to install the CodeRabbit CLI, log in, check authentication, log out, or diagnose missing commands, invalid tokens, and rate limits.
Why use it?
It explains how to check login status, complete browser-based authentication, and troubleshoot common login problems.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/thrownlemon/claude-code-plugins/auth
Clone the repo
git clone --depth 1 https://github.com/ThrownLemon/claude-code-plugins
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00005 $0.00446
Opus 5 $0.00003 $0.00223
Sonnet 5 $0.00001 $0.00089
Haiku 4.5 $0.00001 $0.00045

Measured yesterday against content hash f01c27e2d66f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

auth scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://cli.coderabbit.ai/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://cli.coderabbit.ai/install.sh | sh
plugins/coderabbit/commands/auth.md · 88 lines

What it actually says

CodeRabbit Authentication

Authenticate with the CodeRabbit CLI to enable code reviews.

Authentication Flow

  1. Check Current Status

    coderabbit auth status
    
  2. If Not Authenticated

    • Run coderabbit auth login
    • A URL will be displayed
    • Open the URL in your browser
    • Log in with your CodeRabbit account
    • Copy the token shown after login
    • Paste the token back into Claude Code
  3. Verify Authentication

    coderabbit auth status
    

Prerequisites

The CodeRabbit CLI must be installed first:

curl -fsSL https://cli.coderabbit.ai/install.sh | sh

After installation, restart your shell:

source ~/.zshrc  # or ~/.bashrc

Troubleshooting

CLI not found:

  • Ensure installation completed successfully
  • Restart your terminal or source your shell config
  • Check if coderabbit or cr command is available

Authentication failed:

  • Verify you have a CodeRabbit account
  • Check the token was copied correctly
  • Try logging out and back in: coderabbit auth logout then coderabbit auth login

Rate limiting:

  • Free tier has limited reviews per hour
  • Consider upgrading for higher limits
  • Wait for the rate limit to reset

Steps

Execute the following to check and guide authentication:

  1. First, check if CLI is installed:

    which coderabbit || which cr
    
  2. If not installed, inform the user to run:

    curl -fsSL https://cli.coderabbit.ai/install.sh | sh
    
  3. Check authentication status:

    coderabbit auth status
    
  4. If not authenticated, run:

    coderabbit auth login
    

    Then guide user through the browser-based authentication flow.

  5. Verify successful authentication:

    coderabbit auth status
    
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 88 lines · 5 tokens per session scan C f01c27e2d66f

Subscribe to this mod's changes

auth is a command published in the GitHub repository ThrownLemon/claude-code-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 5 tokens to every session and 446 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.