Stop shipping vulnerable
AI-generated code

CodeTrust scans every PR for security flaws, hallucinated dependencies, and quality issues in AI-generated code. 2 lines of YAML. Works with Copilot, Cursor, Claude, and every AI coding tool.

# Install and scan in 10 seconds
$ pip install codetrust
$ codetrust score app.py

# Or add to GitHub Actions (2 lines)
- uses: autoailabs/codetrust-action@v1
with:
    api-key: ${{ secrets.CODETRUST_API_KEY }}
400+
Hallucination patterns detected
6
Security analyzers
<2s
Average scan time
50%
Cheaper than Snyk

Built for the AI coding era

Every scan checks 6 dimensions of trust. Zero false positive mode included.

🛡

Security Vulnerabilities

SQL injection, command injection, path traversal, hardcoded secrets, insecure random, eval/exec usage, prototype pollution. OWASP Top 10 covered.

👻

Hallucination Detection

400+ phantom API patterns. Catches when AI invents non-existent methods, cross-language confusion (.trim() in Python), fictional HTTP codes, phantom decorators.

📦

Dependency Risk

Detects hallucinated packages (AI commonly invents "utils", "helpers"), deprecated APIs, and unnecessary dependencies with stdlib alternatives.

Correctness Patterns

Off-by-one errors, missing null checks, type mismatches, unreachable code, inconsistent returns, error handling gaps. Multi-language support.

📏

Code Consistency

PEP 8 violations, naming convention mismatches, wildcard imports, mixed require/import, mixed tabs/spaces. Keeps AI code consistent with your style.

🧪

Test Coverage Gaps

Functions without tests, missing error path testing, API endpoints without integration tests. Ensures AI-generated code is actually tested.

Works everywhere

CLI, API, GitHub Action, or MCP server. Your choice.

GitHub Actions
GitLab CI
Azure DevOps
CLI / Terminal
REST API
MCP Server
VS Code (soon)

Try it now — paste any code

Paste AI-generated code below and see the trust score instantly.

Simple pricing

50% cheaper than Snyk. Pay per developer, not per repo.

Free

$0

For open source & personal projects

  • 3 repositories
  • 100 scans / month
  • All 6 analyzers
  • CLI + GitHub Action
  • Community support
Get Started

Enterprise

Custom

For regulated industries & large teams

  • Everything in Pro
  • SSO / SAML
  • On-premise deployment
  • Compliance reports
  • SLA guarantee
  • Dedicated support
  • Custom analyzers
Contact Sales

Stop trusting AI code blindly

45% of AI-generated code contains vulnerabilities. CodeTrust catches them before they reach production.

pip install codetrust