VSXRank
Publisher guide

How to publish a VS Code extension to Open VSX

Publish your VS Code extension to Open VSX, from account setup and tokens to uploading the package, checking the listing, and fixing errors.

Yash Agarwal

Builds VSXRank · 5 min read

Three publishing stages show an account, matching namespace, and VSIX arriving at a public extension listing.

TL;DR: To publish on Open VSX, connect your GitHub and Eclipse accounts, accept the Publisher Agreement, create a token, and create the namespace that matches your extension's publisher name. Then build and inspect the VSIX package, upload it with ovsx, and check the listing. Getting the verified badge is a separate step.

How to publish a VS Code extension to Open VSX#

Open VSX makes your extension available through an open registry used by editors and products configured to use it. The first release needs some account setup. After that, publishing can be a single command.

Start by checking these fields in package.json:

Three-stage Open VSX publishing flow: prepare the extension, publish with an account, agreement, namespace and token, then verify the listing
Prepare the VSIX, publish it, then verify the listing. Namespace ownership is a separate step.
{
  "name": "your-extension",
  "publisher": "your-publisher",
  "version": "1.0.0",
  "license": "MIT"
}

The extension will be listed as your-publisher.your-extension. The publisher value is the namespace, or publishing name, you need to create on Open VSX.

The registry also requires a licence declared in the manifest. It does not have to be an OSI-approved open-source licence. The Eclipse publisher FAQ explains the requirements.

1. Connect your accounts and accept the agreement#

Open VSX uses GitHub for sign-in, while the Publisher Agreement is linked to an Eclipse account. The GitHub username in your Eclipse profile must match the account you use on Open VSX, according to the official setup guide.

  1. Create an Eclipse account, or check the GitHub Username field on your existing account.
  2. Sign in to Open VSX with that GitHub account.
  3. Open Settings → Profile, select Log in with Eclipse, and authorize the connection.
  4. Select Show Publisher Agreement, read it to the end, and accept it.

If the agreement button does not appear, check that both accounts use the same GitHub identity. The Eclipse Contributor Agreement is a different document and is not required for publishing here.

2. Create a token and namespace#

In Settings → Access Tokens, generate a token and copy it before closing the dialog. It is shown only once. A separate token for each machine or CI environment makes it easier to revoke one without interrupting the others.

The CLI reads the token from the environment variable OVSX_PAT. Set it using your shell's secret-handling method, then create your namespace:

npx ovsx create-namespace your-publisher

For later local releases, ovsx login your-publisher can save the token in your operating system's credential manager. If no credential manager is available, the CLI can fall back to a plaintext ~/.ovsx file. Read its warning and use OVSX_PAT if you want to avoid that fallback.

For CI, save the token in the CI system's secret store and expose it to the publishing step as OVSX_PAT. Keep it out of committed files such as package.json, workflow files, and .env files.

Creating a namespace makes you a contributor who can publish there. Ownership and verification require a separate request through the namespace access process. If the namespace already exists, ask its owner for access or use that process; a lookalike name may be rejected by the registry's similarity checks.

3. Build and inspect the package#

A VSIX is the package you upload to the registry. Building it first lets you check what will ship:

npm ci
npx @vscode/vsce package --out extension.vsix
unzip -l extension.vsix

Look for the compiled entry point, README, licence, and runtime assets. Also check for anything that should stay local, such as private keys, local configuration, test fixtures, and unnecessary generated files. Use .vscodeignore to exclude files, then rebuild if needed.

ovsx uses vsce to package the extension and runs the vscode:prepublish script from package.json. If your project uses Yarn to run scripts, the official guide says to pass --yarn.

4. Publish and check the listing#

With OVSX_PAT set, or a token saved by ovsx login, upload the package you inspected:

npx ovsx publish extension.vsix

Use the same command in CI with the token supplied through the secret store. If you publish to both registries, reusing the same VSIX helps keep their packages aligned.

You can also package and publish directly from the extension directory:

npx ovsx publish

After the upload, open https://open-vsx.org/extension/your-publisher/your-extension. Check the title, version, README, images, icon, repository link, and licence. The upload response tells you the package was accepted; viewing the page helps catch missing files or broken links.

Fix common publishing errors#

“You must log in with an Eclipse Foundation account and sign a Publisher Agreement”#

Go back to Settings → Profile and reconnect the Eclipse account. Check its GitHub Username, then reopen and accept the Publisher Agreement. Accepting the Contributor Agreement alone does not complete this step.

“Unknown namespace” or permission denied#

Compare the publisher field in package.json with the namespace on Open VSX. Create it if it does not exist. If it already exists, you need membership: an owner can add you as a contributor, or you can follow the namespace access guide.

Contributor access is usually enough for a CI bot. It allows publishing without permission to manage members.

Authentication fails in CI#

Check that the publishing step receives the secret as OVSX_PAT and that the token has not been revoked. Some CI runs, such as untrusted pull requests, may receive no secret value.

Use a dedicated CI token. Avoid printing environment variables or passing the token directly in a command, where it could appear in logs or shell history.

The package fails scanning#

Read the error to see which check failed. Open VSX can check for leaked secrets, known harmful files, and names resembling existing extensions, as described in its scanning guide.

Inspect the VSIX and exclude unnecessary files. If it contains a real secret, remove and rotate that secret; excluding the file from a later package is not enough. For a false positive or a legitimate related name, contact the registry operator as the guide directs.

The listing has a warning icon#

Check namespace ownership. A new namespace has no owner, even though its creator can publish. Request ownership and make sure later versions are published by a namespace member.

Our verification guide explains the badge and how it differs from Marketplace verification.

Keep future releases aligned#

Use the same version and reviewed VSIX for each registry. If one upload fails, treat the release as incomplete and fix it before announcing that both listings are updated. Check both listing pages after publishing.

Keep their counters separate too: Open VSX counts downloads, including updates, while Marketplace installs use a different definition. The download-count guide explains how to compare them.

VSXRank groups listings with the same publisher.name on one extension page. Open the live demo to see both registry views and the four-hour Open VSX download intervals.