Connect your IDE to Artifactory

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

To use Artifactory as the extension gallery for your IDE, you need to modify the product.json file to point to Artifactory. You can connect VSCode, Cursor, or Windsurf.

Prerequisite: Before connecting your IDE to Artifactory, you must have an existing AI Editor Extensions repository in Artifactory. For more information, see Create an AI Editor Extension Repository.

Important

  • This configuration modifies product.json, and is a sensitive change. It is highly recommended to make a backup of the original file before editing.

Requirements: Write permissions for all parent folders nesting product.json, and privileges to open and edit product.json. The file locations and parent folders vary by OS and IDE. For more information, see product.json File Locations

To connect your IDE to Artifactory:

Disable Automatic Updates

Automatic IDE updates will cause the marketplace connection to revert from Artifactory to the default. Before configuring Artifactory as your marketplace connection, disable automatic updates to prevent overwriting your changes.

To disable automatic updates:

  1. Open your settings.json file in a text editor. You can open the file by searching for workbench settings in the Command Palette:

    • Linux and Unix (macOS): Cmd+Shift+P

    • Windows: Ctrl+Shift+P

  2. Add the following line to the settings.json file:

    "update.mode":"none"
  3. Save your changes and close the file.

Set Artifactory as the Marketplace Connection

To configure your IDE to connect to Artifactory, set the serviceUrl destination to the Artifactory proxy of the extensions marketplace.

To edit the serviceURL to connect to Artifactory:

  1. Open the product.json file in a text editor. The file location varies by OS, for example:

    • Linux and Unix (macOS): /Applications/Visual Studio Code.app/Contents/Resources/app

    • Windows: C:\Program Files\Microsoft VS Code\resources\app

  2. In the product.json file, edit the extensionsGallery-serviceUrl object as follows:

    "extensionsGallery": {
    	...
    	"serviceUrl":"https://[JFrogPlatformURL]/artifactory/api/aieditorextensions/<REPO_NAME>/_apis/public/gallery",
    	...
    }

    Where:

    • [JFrogPlatformURL]: Your orgainzation's Artifactory URL

    • <REPO_NAME>: The name of the target repository

    For example:

    "extensionsGallery": {
    	...
    	"serviceUrl":"https://company.jfrog.io/artifactory/api/aieditorextensions/vscode-remote/_apis/public/gallery",
    	...
    }
  3. Save the changes to your file.

  4. Close all instances of your IDE and restart the program.

Note

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.

Next steps:

product.json File Locations

The following table provides the locations of the product.json file for each supported IDE and OS. Use this information to verify the parent folders that you need write access to.

IDE

OS

product.json File Location

VSCode

Linux and Unix (macOS)

/Applications/Visual\ Studio\ Code.app/Contents/Resources/app

Windows

%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\resources\app\product.json

Cursor

Linux and Unix (macOS)

/Applications/Cursor.app/Contents/Resources/app

Windows

%USERPROFILE%\AppData\Local\Programs\Kiro\resources\app\product.json

Windsurf

Linux and Unix (macOS)

/Applications/Windsurf.app/Contents/Resources/app

Windows

%USERPROFILE%\AppData\Local\Programs\Windsurf\resources\app\product.json