Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Levo LensNew to Visual Studio Code? Get it now.
Levo Lens

Levo Lens

Levo AI

|
2 installs
| (0) | Free
Detect API vulnerabilities directly in your code editor powered by Levo.ai
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Levo Lens

Detect API vulnerabilities directly in your code editor, powered by Levo.ai.

Features

  • API Endpoint Detection: Automatically detects API endpoints in your code using built-in LLM
  • Vulnerability Overlays: See security vulnerabilities directly in your editor with gutter icons and hover details
  • Problems Panel Integration: Vulnerabilities appear in VS Code's Problems panel for easy navigation
  • Multi-Framework Support: Works with Express.js, Flask, Django, FastAPI, and Spring Boot
  • Smart Caching: Results are cached for fast subsequent scans

Supported Editors

This extension works in:

  • VS Code (with GitHub Copilot)
  • Cursor
  • Windsurf

Prerequisites

  1. LLM Access: This extension requires a built-in Language Model API:

    • VS Code: Install GitHub Copilot
    • Cursor/Windsurf: Built-in LLM support included
  2. Levo Account: You need a Levo.ai account to fetch vulnerability data

    • Sign up at https://levo.ai
    • Get your refresh token from the Levo dashboard

Installation

From VSIX

  1. Download the .vsix file from the releases page
  2. Open VS Code/Cursor/Windsurf
  3. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS)
  4. Type "Install from VSIX" and select the command
  5. Choose the downloaded .vsix file

From Source

git clone https://github.com/levoai/vscode-extension.git
cd vscode-extension
npm install
npm run build
npm run package

Then install the generated .vsix file as described above.

Getting Started

  1. Set your authentication token:

    • Press Ctrl+Shift+P / Cmd+Shift+P
    • Run "Levo: Set Authentication Token"
    • Paste your Levo refresh token
  2. Scan a file:

    • Open a file containing API endpoints (JavaScript, TypeScript, Python, or Java)
    • Press Ctrl+Shift+P / Cmd+Shift+P
    • Run "Levo: Scan Current File for API Vulnerabilities"
  3. View results:

    • Gutter icons indicate severity (red = critical, orange = high, yellow = medium, blue = low)
    • Hover over endpoints to see vulnerability details
    • Check the Problems panel for a list of all issues

Commands

Command Description
Levo: Scan Current File for API Vulnerabilities Scan the current file for API endpoints and vulnerabilities
Levo: Clear Vulnerability Overlays Remove all vulnerability decorations from the current file
Levo: Set Authentication Token Configure your Levo refresh token
Levo: Logout Clear stored authentication tokens
Levo: Show Connection Status View extension status and diagnostics

Configuration

Configure the extension in VS Code settings (Ctrl+, / Cmd+,):

Setting Default Description
levo.apiBaseUrl https://api.levo.ai Levo API base URL
levo.autoScanOnOpen true Automatically scan files when opened
levo.autoScanOnSave false Automatically scan files when saved
levo.cacheTtlSeconds 300 Cache duration for scan results (seconds)
levo.showInProblemsPanel true Show vulnerabilities in Problems panel
levo.showGutterIcons true Show severity icons in editor gutter
levo.maxFileSizeKb 500 Maximum file size to scan (KB)

Severity Levels

Icon Severity Problems Panel
Red CRITICAL Error
Orange HIGH Error
Yellow MEDIUM Warning
Blue LOW Information
Gray INFO Information

Supported Frameworks

The extension detects API endpoints from:

  • JavaScript/TypeScript: Express.js
  • Python: Flask, Django, FastAPI
  • Java: Spring Boot

Troubleshooting

LLM Not Available

If you see "LLM not available" message:

  • VS Code: Ensure GitHub Copilot is installed and you're signed in
  • Cursor/Windsurf: The LLM should be available by default

Authentication Failed

If authentication fails:

  1. Go to Levo Dashboard
  2. Generate a new refresh token
  3. Run "Levo: Set Authentication Token" to update

No Endpoints Detected

  • Ensure the file contains actual API endpoint definitions
  • Check that the file language is JavaScript, TypeScript, Python, or Java
  • Try reducing file size if it exceeds the limit

View Logs

  1. Run "Levo: Show Connection Status"
  2. Select "Show Logs" to open the output channel

Privacy & Security

  • Your refresh token is stored securely in VS Code's encrypted SecretStorage
  • Access tokens are kept in memory only and never persisted
  • Source code is sent to the LLM for endpoint detection (same as code completion)
  • Only endpoint paths and methods are sent to Levo API

Support

  • GitHub Issues
  • Levo Documentation
  • Levo Community

License

MIT License - see LICENSE for details.


Made with love by Levo.ai

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft