Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>CodeGuard AI — Local SecurityNew to Visual Studio Code? Get it now.
CodeGuard AI — Local Security

CodeGuard AI — Local Security

CodeGuard AI

| (0) | Free
Real-time security guardrails for AI-generated code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Write or paste code in your editor.
  2. Check the Problems tab or highlighted lines for security warnings.
  3. Press Ctrl + . (or click the light bulb) to apply a Quick Fix and move secrets to environment variables (process.env or os.environ.get).
  4. Run CodeGuard AI: Scan File Security from the Command Palette (Ctrl + Shift + P) to scan the active file manually.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft