AI-Powered Code Review CLI

Get instant, intelligent code reviews right in your terminal

$ npm install -g hansa-ai
✓ hansa-ai installed successfully
$ hansa-ai review app.js
🤖 Analyzing your code...
✓ Review complete! Here's what I found...

Why Choose Hansa AI?

Lightning Fast

Get instant code reviews powered by advanced AI. No waiting, no delays - just fast, actionable feedback.

🎯

Intelligent Analysis

Powered by Claude AI, Hansa AI understands context, patterns, and best practices to give you meaningful insights.

🔒

Secure & Private

Your API keys are stored securely using system keychain. Your code never leaves your machine except for AI analysis.

🌐

Cross-Platform

Works seamlessly on Windows, macOS, and Linux. One tool, everywhere you code.

📦

Easy to Use

Simple CLI interface. Install once, use forever. No complex setup or configuration required.

🔄

Batch Reviews

Review multiple files at once with the review-all command. Perfect for large projects.

Get Started in 3 Easy Steps

1

Install via npm

Install Hansa AI globally on your system

npm install -g hansa-ai
2

Get API Key

Sign up for a free OpenRouter API key

https://openrouter.ai
3

Login & Start

Store your API key and start reviewing

hansa-ai login YOUR_API_KEY

Usage Guide

Review a Single File

Get an AI-powered review of any code file

hansa-ai review <file>

Example:

hansa-ai review app.js

Review Multiple Files

Review several files at once

hansa-ai review-all [options]

Review all JS files:

hansa-ai review-all *.js

Manage API Key

Store or update your OpenRouter API key

hansa-ai login <key>

Your key is stored securely in system keychain

Get Help

View all available commands and options

hansa-ai --help

Or get help for specific command:

hansa-ai help review

Check Version

See which version you're running

hansa-ai --version

Keep your tool updated for latest features

Update Tool

Get the latest version of Hansa AI

npm update -g hansa-ai

Or reinstall for clean update