@dixiewebcoethan/ai-code-review
v1.0.0
Published
AI-powered code review CLI
Readme
AI Code Review CLI
AI-powered code review that runs in your terminal in seconds. Catches bugs, security issues, performance problems, and style issues — powered by Claude.
$ review src/
AI Code Review 4 files
src/auth.js
One sentence assessment.
HIGH 🔒 Unsanitized input passed to SQL query · line 42
The 'email' variable is interpolated directly into the query...
→ Use a parameterized query: db.query('SELECT * FROM users WHERE email = ?', [email])
MED 🐛 Missing null check before accessing user.profile · line 87
...
4 files · 3 issues 2 high 1 medium 0 low
⚠ Fix 2 high-severity issues before shipping.Setup (for buyers)
1. Install
npm install -g ai-code-review2. Set your Anthropic API key
export ANTHROPIC_API_KEY=sk-ant-...Add this to your ~/.zshrc or ~/.bashrc to make it permanent.
Get a free API key at console.anthropic.com. Reviews cost roughly $0.01–0.05 per run depending on codebase size.
3. Activate your license
review activate YOUR-LICENSE-KEYYour license key is in the purchase confirmation email from Gumroad.
Usage
review . # Review all code files in the current directory
review src/ # Review a specific folder
review src/auth.js # Review a single file
review --diff # Review only staged git changesIgnore files
Create a .reviewignore in your project root (same syntax as .gitignore):
tests/
fixtures/
*.generated.jsFor Developers (building from source)
git clone ...
cd ai-code-review
npm install
# Fill in your Gumroad product ID in src/config.js
# Dev mode (no license check):
SKIP_LICENSE=1 ANTHROPIC_API_KEY=sk-ant-... node bin/review.js .FAQ
What models does this use? Claude Sonnet 4 via the Anthropic API.
How much does the API cost? Roughly $0.01–0.05 per review run. You manage your own API key.
Is my code sent anywhere besides Anthropic? No. Files are sent only to the Anthropic API for review.
Does it work on large monorepos?
Yes — files are reviewed in batches. It stops at 25 files by default (configurable in src/config.js).
