AI-Powered Code Review CLI

Catch bugs before
they reach your codebase

AI-powered pre-commit hook that reviews every code change for security vulnerabilities, performance issues, and best practice violations. Supports OpenAI, Anthropic, and Ollama.

$npm install -g @creowis/creoguard-cli

Features

Everything you need for
automated code review

A comprehensive CLI tool that integrates seamlessly into your Git workflow, catching issues before they make it past your local machine.

Pre-commit Hook

Automatically reviews staged code before every commit. Issues are caught at the source, not in PR reviews.

Multiple LLM Providers

Choose between OpenAI GPT-4, Anthropic Claude, or run locally with Ollama. Use the model that fits your needs.

Company Guidelines

Import your organization's coding standards from PDF or Markdown. Get reviews tailored to your team's rules.

BYOK — Bring Your Own Key

No subscriptions or accounts needed. Use your own API keys with direct provider billing. Full control.

Git-provider Agnostic

Works with GitHub, GitLab, Bitbucket, or any Git repository. No platform lock-in.

Configurable Rules

Set severity levels for security, performance, best practices, and style. Ignore files with glob patterns.

Block Critical Issues

Prevent commits with critical security vulnerabilities. Configurable blocking rules per severity level.

Beautiful Terminal Output

Clear, colorful reports with line numbers, issue descriptions, and suggested fixes right in your terminal.

How It Works

Three steps to safer code

Get up and running in under a minute. No complex configuration, no CI/CD changes needed.

01

Configure

Set your LLM provider and API key. Choose from OpenAI, Anthropic, or Ollama for local AI.

creoguard config set provider openai
creoguard config set apiKey sk-your-key
02

Initialize

Run init in your Git repository to set up the pre-commit hook and project configuration.

cd your-project
creoguard init
03

Commit

Just commit as usual. CreoGuard automatically reviews your staged changes before the commit goes through.

git add .
git commit -m "feat: add login"
# CreoGuard reviews automatically

See It In Action

Beautiful, actionable output

CreoGuard provides clear issue reports with line numbers, severity levels, and suggested fixes — all in your terminal.

terminal
$ git commit -m "feat: add user authentication"
╭────────────────────────────────────────────────╮
CreoGuard reviewing 3 staged files...
╰────────────────────────────────────────────────╯
Reviewing src/auth/login.ts ········ done
Reviewing src/auth/utils.ts ········ done
Reviewing src/api/routes.ts ········ done
┌─ src/auth/login.ts ─────────────────────────
✖ CRITICAL [line 45] SQL Injection
Current:
│ - const q = `SELECT * FROM users WHERE id='${id}'`
Suggested fix:
│ + const q = 'SELECT * FROM users WHERE id = $1'
│ + await db.query(q, [id])
└────────────────────────────────────────────────
╭────────────────────────────────────────────────╮
✖ Commit blocked: 1 critical issue found
╰────────────────────────────────────────────────╯

Providers

Choose your AI provider

Bring your own API key and use the model you prefer. Switch providers anytime with a single command.

OpenAI

GPT-4o, GPT-4o-mini, and other OpenAI models with industry-leading code understanding.

creoguard config set provider openai
creoguard config set apiKey sk-your-key
creoguard config set model gpt-4o-mini

Anthropic

Claude Sonnet and Haiku models known for nuanced, thorough code analysis.

creoguard config set provider anthropic
creoguard config set apiKey sk-ant-your-key
creoguard config set model claude-sonnet-4-20250514

Ollama

Free & Local

Run AI models locally for free. No API keys needed. Full privacy — your code never leaves your machine.

creoguard config set provider ollama
creoguard config set ollamaUrl http://localhost:11434
creoguard config set ollamaModel codellama

Start catching bugs
before they ship

Install CreoGuard in under a minute. No sign-up required — just your API key and a Git repository.

$npm install -g @creowis/creoguard-cli