CodeGuard AI
Real-time security guardrails for AI-generated code in VS Code.
What it detects
- Exposed API keys (such as OpenAI
sk-... and AWS AKIA...)
- Dangerous functions (
eval and exec)
- Hardcoded passwords in plain text
How to use
- Write or paste code in your editor.
- Check the Problems tab or highlighted lines for security warnings.
- Press
Ctrl + . (or click the light bulb) to apply a Quick Fix and move secrets to environment variables (process.env or os.environ.get).
- Run CodeGuard AI: Scan File Security from the Command Palette (
Ctrl + Shift + P) to scan the active file manually.
| |