diff options
| author | Nipuna Perera <[email protected]> | 2025-07-16 07:31:38 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-16 08:31:38 -0400 |
| commit | add81b97396730ed3e838e8ca8e3a20a64013113 (patch) | |
| tree | 8b28f514afee63bfb5e14ef472e65a762c9665a1 /packages/web/src/content/docs | |
| parent | 81bdb8e2698135c68e9300744672cc6316aa162f (diff) | |
| download | opencode-add81b97396730ed3e838e8ca8e3a20a64013113.tar.gz opencode-add81b97396730ed3e838e8ca8e3a20a64013113.zip | |
Enhance private npm registry support (#998)
Diffstat (limited to 'packages/web/src/content/docs')
| -rw-r--r-- | packages/web/src/content/docs/docs/enterprise.mdx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/docs/enterprise.mdx b/packages/web/src/content/docs/docs/enterprise.mdx index a493dd8a4..0d1ac11b3 100644 --- a/packages/web/src/content/docs/docs/enterprise.mdx +++ b/packages/web/src/content/docs/docs/enterprise.mdx @@ -61,3 +61,30 @@ This can be switched to a centralized authentication system that your organizati The share feature can be self-hosted and the share pages can be made accessible only after the user has been authenticated. + +--- + +### Private NPM registries + +opencode supports private npm registries through Bun's native `.npmrc` file support. If your organization uses a private registry (such as JFrog Artifactory, Nexus, or similar), ensure developers are authenticated before running opencode. + +To set up authentication with your private registry: + +```bash +# Authenticate with your enterprise registry +npm login --registry=https://your-company.jfrog.io/api/npm/npm-virtual/ + +# This creates ~/.npmrc with authentication +# opencode will automatically use it through Bun's native support +``` + +Alternatively, you can manually configure a `.npmrc` file: + +```bash +# ~/.npmrc +registry=https://your-company.jfrog.io/api/npm/npm-virtual/ +//your-company.jfrog.io/api/npm/npm-virtual/:_authToken=${NPM_AUTH_TOKEN} +``` + +**Important**: Developers must be logged into the private registry before running opencode +to ensure packages can be installed from your enterprise registry. |
