Skip to main content

Getting Started with Snyk for Copilot

Get started with Snyk’s security scanning, directly in VSCode’s Copilot integration, in 3 simple steps.

1. 1-Click VSCode install

  1. Click the “1-Click Install” CTA below

  2. In Cursor, click “Install” to add the Snyk plugin to your workspace

  3. When prompted, select your desired scan frequency

2. Authenticate

  1. Snyk will ask to invoke an authentication flow upon install

  2. Choose your desired log-in method and grant the necessary permissions

  3. Close any browser windows and return to VSCode

Note: If you’re running an environment that does not support npx, you may need to install Snyk’s CLI. Click here to learn more. 

More details can be found in Snyk’s official Copilot for VSCode documentation.

3. Try it out!

Snyk will run as frequently as you selected during install. Start chatting with your LLM of choice in your current project, or start a new one with the following prompt:

In a new file, write a Python function named `is_palindrome` that takes a single string argument and returns `True` if the string is a palindrome and `False` otherwise. Per the secure at inception rules, this will demonstrate that all generated code is tested for security issues using the Snyk MCP server and any issues identified can be fixed automatically.