codegate-ai). You can run it without a global install or install it globally for regular use.
Initialize your config
~/.codegate/config.json with default settings, giving you an explicit starting point to tune behavior — severity thresholds, output format, user-scope scanning, and tool discovery preferences.Run your first scan
From inside any project directory:CodeGate walks the directory, discovers AI tool configuration files, and evaluates them with the static rule engine. Findings are printed to the terminal with severity levels and remediation guidance.To export results as JSON or SARIF instead:
Use wrapper mode
Instead of scanning and launching separately, use Valid targets are
codegate run to scan first and only launch your AI tool if the policy allows it:claude, codex, opencode, cursor, windsurf, and kiro.If CodeGate finds dangerous findings at or above your configured severity threshold, tool launch is blocked. If files change between the scan and the launch check, launch is also blocked and a rescan is required.Next steps
Introduction
Learn what CodeGate is, what it scans, and what it does not guarantee.
scan command reference
Full list of scan flags, collection modes, and persona options.
Configuration
Tune severity thresholds, suppression rules, and trusted directories.
CI integration
Upload SARIF results to GitHub Code Scanning.