English
Documentation
Enterprise

Enterprise

Using OpenCode securely in your organization.

OpenCode Enterprise is for organizations that want to ensure that their code and data never leaves their infrastructure. It can do this by using a centralized config that integrates with your SSO and internal AI gateway.

Note: OpenCode does not store any of your code or context data.

To get started with OpenCode Enterprise:

  1. Do a trial internally with your team.
  2. Contact us to discuss pricing and implementation options.

Trial

OpenCode is open source and does not store any of your code or context data, so your developers can simply get started and carry out a trial.


Data Handling

OpenCode does not store your code or context data. All processing happens locally or through direct API calls to your AI provider.

This means that as long as you are using a provider you trust, or an internal AI gateway, you can use OpenCode securely.

The only caveat here is the optional /share feature.


Sharing Conversations

If a user enables the /share feature, the conversation and the data associated with it are sent to the service we use to host these share pages at opencode.ai.

The data is currently served through our CDN's edge network, and is cached on the edge near your users.

We recommend you disable this for your trial.

opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "share": "disabled"
}

Learn more about sharing.


Code Ownership

You own all code produced by OpenCode. There are no licensing restrictions or ownership claims.


Pricing

We use a per-seat model for OpenCode Enterprise. If you have your own LLM gateway, we do not charge for tokens used. For further details about pricing and implementation options, contact us.


Deployment

Once you have completed your trial and you are ready to use OpenCode at your organization, you can contact us to discuss pricing and implementation options.


Central Config

We can set up OpenCode to use a single central config for your entire organization.

This centralized config can integrate with your SSO provider and ensures all users access only your internal AI gateway.


SSO Integration

Through the central config, OpenCode can integrate with your organization's SSO provider for authentication.

This allows OpenCode to obtain credentials for your internal AI gateway through your existing identity management system.


Internal AI Gateway

With the central config, OpenCode can also be configured to use only your internal AI gateway.

You can also disable all other AI providers, ensuring all requests go through your organization's approved infrastructure.


Self-Hosting

While we recommend disabling the share pages to ensure your data never leaves your organization, we can also help you self-host them on your infrastructure.

This is currently on our roadmap. If you're interested, let us know.


Private NPM Registry Support

OpenCode supports enterprise npm registries through .npmrc authentication files. This allows organizations to install OpenCode from private registries such as JFrog Artifactory, Nexus Repository, or other enterprise npm registry solutions.

Configuration

Before running OpenCode, ensure your .npmrc file is configured with the appropriate registry and authentication:

.npmrc
registry=https://your-registry.example.com/npm/
//your-registry.example.com/npm/:_authToken=${NPM_TOKEN}

Supported Registries

OpenCode works with common enterprise npm registries:

  • JFrog Artifactory - Configure your npm virtual repository URL
  • Sonatype Nexus - Use your Nexus npm proxy or hosted repository
  • GitHub Packages - Authenticate with your GitHub token
  • GitLab Package Registry - Use your GitLab deploy token
  • Azure Artifacts - Configure with your Azure DevOps feed

Authentication Methods

Depending on your registry, you can use:

  • Token-based authentication - Set _authToken in .npmrc
  • Basic authentication - Use _auth with base64-encoded credentials
  • Environment variables - Reference tokens via ${VAR_NAME} syntax

FAQ

What is OpenCode Enterprise?

OpenCode Enterprise is a solution for organizations that need to ensure their code and data remain within their infrastructure. It provides centralized configuration, SSO integration, and internal AI gateway support.

How do I get started with OpenCode Enterprise?

Start by running a trial with your development team. OpenCode is open source and doesn't store your code, so you can begin immediately. Then contact us to discuss enterprise deployment options.

How does enterprise pricing work?

We use a per-seat licensing model. If you bring your own LLM gateway, there are no additional token charges. Contact us for detailed pricing based on your organization's needs.

Is my data secure with OpenCode Enterprise?

Yes. OpenCode does not store any of your code or context data. All processing happens locally or through direct API calls to your designated AI provider. For maximum security, disable the /share feature and use your internal AI gateway.

Can we use our own private NPM registry?

Yes. OpenCode supports enterprise npm registries through standard .npmrc authentication. This works with JFrog Artifactory, Nexus Repository, GitHub Packages, GitLab Package Registry, Azure Artifacts, and other npm-compatible registries.