Skip to content

This guide walks you through enabling AI features in Nx Cloud.

To enable AI features for your organization, go to your organization's settings on Nx Cloud and select the organization where you want to enable AI.

In the settings menu, find the AI Features section and toggle it On.

enable ai features

Make sure you accept the AI terms to start using the AI features.

Once AI features are enabled, turn on Self-Healing CI from your workspace settings. For how the fix runs in your pipeline, see the Self-Healing CI documentation.

An organization can use its own AI provider API key for Self-Healing CI instead of the installation's key. BYOK doesn't require NX_CLOUD_AI_TOKEN_PROVIDER_TYPE.

Enabling Bring Your Own API Key requires an installation admin (a user with installationAdmin: true). Regular organization admins see the toggle disabled.

  1. Log in as an installation admin.
  2. Open the organization settings.
  3. Enable the AI Features toggle and accept the AI terms.
  4. Enable the Bring Your Own API Key toggle.

Supply the key in one of two ways:

  • Configure the provider and API key on the organization's AI provider settings page. The key is stored encrypted.
  • Leave the UI unset and provide ANTHROPIC_API_KEY in the CI runner environment.

AI features aren't available for the EU cluster in public cloud installations due to regional restrictions. Providing your own Anthropic API key (BYOK) for Self-Healing CI isn't subject to this restriction.