NEW: MCP Server for Claude Code & Cursor

Your AI Writes the Code.
CodeGuard Makes Sure It's Safe.

The only security tool built for AI-generated code. Catches hallucinated packages, slopsquatting attacks, and leaked secrets — inside VS Code, Claude Code, Cursor, and Windsurf.

$ claude mcp add codeguard -- npx -y @koilabs/codeguard-mcp

Works with VS Code, Cursor, Windsurf, Claude Code & any MCP client View on npm →

30+
Hallucinated Packages in Database
28
Secret Detection Patterns
10
MCP Tools Available

The Problem

AI Coding Tools Have a Blind Spot

Your AI assistant writes great code — until it doesn't. These are the risks it will never warn you about.

Hallucinated Packages

AI Hallucination

AI models confidently suggest npm packages that were never published. You install, get a 404, and waste hours debugging. Worse — attackers know which packages AI hallucinates.

npm install react-form-hooks-validator
npm ERR! 404 Not Found
# GPT-4 hallucinated this. It doesn't exist.

Slopsquatting Attacks

Supply Chain Attack

Attackers register the fake package names that AI commonly hallucinates, then fill them with malware. Your AI suggests it, you install it, your app is compromised.

npm install python-dateutil-helpers
# Published 2 days ago. 3 downloads.
# Name hallucinated by GPT-4. Contains crypto miner.

Leaked Secrets

Credential Exposure

AI doesn't think about security context. It embeds API keys, database URLs, and auth tokens directly in source files. Bots scrape public repos and exploit them within minutes.

const STRIPE_KEY = "sk_live_abc123...";
// Pushed to GitHub. Charges appear in 4 minutes.

Typosquatting

Dependency Attack

AI misspells package names just often enough. lodahs instead of lodash. Attackers register these near-miss names and wait for installs.

npm install expresss
# Not express. One extra 's'.
# This one has a keylogger.

What CodeGuard Catches

Multi-Layered Protection for AI-Generated Code

Every scan checks for hallucinated packages, supply chain attacks, leaked secrets, and code quality issues. Works inside your editor and your terminal.

Free

Hallucinated Artifact Database

Curated database of 30+ packages AI commonly hallucinates. Knows which LLM generates each one and suggests the real alternative.

Free

Slopsquatting Detection

Multi-signal analysis catches packages registered after AI started hallucinating them. Flags: low downloads + recently published + hallucination match.

Free

Typosquatting Detection

Levenshtein distance analysis against 18 popular npm packages catches look-alike names designed to deliver malware.

Free

Secret Detection

28 patterns covering AWS, OpenAI, Stripe, Supabase, Firebase, Vercel, and 20+ more. Catches hardcoded credentials before they reach your repo.

Free

Vibe Coder Score™

Gamified 0-100 score across security, code quality, and dependencies. Know at a glance if your codebase is ready to ship.

Free

MCP Server

Runs inside Claude Code, Cursor, and Windsurf via MCP. Your AI assistant scans code in real-time as it writes — zero extra steps.

Pro

Deep Analysis Tools

Architecture scanning, performance analysis, TypeScript audit, and deep code review. Powered by your own LLM API keys (BYOK).

Pro

Ship Report & Quality Gate

Pre-deploy confidence report with go/no-go decision. Quality gate for CI/CD pipelines with configurable thresholds.

How It Works

Three Steps to Safer AI Code

1

Install

One command for MCP. One click for VS Code. Works in under 30 seconds.

2

Code with AI

Use your AI assistant normally. CodeGuard monitors in the background, scanning as you work.

3

Ship Safely

Hallucinated packages blocked. Secrets caught. Dependencies verified. Ship with confidence.

Your Vibe Coder Score™

One number that tells you if your codebase is ready to ship.

90-100
Ship with confidence
70-89
Review before shipping
0-69
Do not ship
87 /100
CAUTION

Review before shipping

Security
28/30
Code Quality
22/25
Architecture
18/20
Dependencies
12/15
Documentation
7/10

Simple Pricing. No Surprises.

Free tools work fully with no monthly limits. Pro unlocks the full arsenal.

🚀 Launch Special: $7/mo or $49/yr for the first 200 subscribers

Free Forever

Free

$0

Full scanning tools. No limits.

  • Hallucinated package detection (HAD)
  • Typosquatting detection
  • Secret scanning (10 patterns)
  • Vibe Coder Score™
  • VS Code extension + MCP server
  • No monthly limits
Get Started Free

No credit card required

BYOK (Bring Your Own Key): Pro analysis tools use your own LLM API keys. That's how we keep free tools free and Pro at $9/mo.

Install in Under 30 Seconds

Choose your workflow. CodeGuard works everywhere you write AI code.

MCP Server

For Claude Code, Cursor & Windsurf

Recommended
$ claude mcp add codeguard -- npx -y @koilabs/codeguard-mcp
View on npm →

VS Code Extension

For VS Code, Cursor & Windsurf

Install on VS Code

Or via command line:

$ code --install-extension koilabsio.koilabs-codeguard

GitHub Actions

CI/CD Integration

Coming Soon
# .github/workflows/codeguard.yml
- uses: koilabsio/codeguard-action@v1

Run CodeGuard on every pull request. Block PRs that fail security checks.

Frequently Asked Questions

Is CodeGuard really free?

Yes. Free tier includes 4 fully functional tools (scan_file, scan_workspace, check_package, vibe_score) with no monthly limits. Basic HAD (10 entries) and secret detection (10 patterns) are bundled and work offline.

What does Pro add?

Full HAD database (30+ entries vs 10), full secret detection (28 patterns vs 10), slopsquatting detection, plus 6 advanced analysis tools: deep review, architecture scan, performance scan, TypeScript audit, ship report, and quality gate.

What is BYOK?

Bring Your Own Key. Pro analysis tools use your own LLM API keys (e.g., OpenAI, Anthropic). We never store or proxy your keys. This keeps our costs near zero, which is why Pro is only $9/mo.

What is slopsquatting?

A supply chain attack where malicious actors register npm package names that AI commonly hallucinates. When your AI suggests the package and you install it, you get malware instead. CodeGuard detects this using multi-signal analysis: low downloads + recently published + hallucination match.

Which editors and tools are supported?

VS Code, Cursor, and Windsurf (via extension). Claude Code, Cursor, and Windsurf (via MCP server). Any MCP-compatible AI assistant. GitHub Actions coming soon.