aiIntegrationToggle

Enable or disable an AI integration for the calling account. Works for both account-owned and shared Spacelift-provided integrations. Enabling a Spacelift-provided integration requires Spacelift Intelligence to be on. Disabling one is always allowed, so an account can opt out before it turns Spacelift Intelligence on.

Arguments

Returns

AIIntegration!
AIIntegration!
Collapse
  • id
    The unique ID for managing the integration within Spacelift.
  • The friendly name of the integration.
  • description
    Optional description of the integration.
  • User-defined labels set on the integration.
  • provider
    AI provider (Anthropic, OpenAI, Google, Bedrock).
  • providerIntegrationId
    ULID of the underlying provider integration (e.g. AWS integration for Bedrock).
  • providerIntegrationName
    Friendly name of the underlying provider integration (e.g. AWS integration name for Bedrock).
  • baseURL
    Custom base URL for self-hosted OpenAI-compatible / Anthropic / Google gateways (e.g. LiteLLM). Empty means use the provider default. Not used for Bedrock integrations.
  • models
    Models explicitly pinned on this integration. Null means the integration follows the provider's default model list; modelDetails reports what that resolves to. For Bedrock integrations this is never null: it lists the inference profile IDs stored on the integration, with no live AWS lookup.
  • isSpaceliftProvided
    Indicates this is a Spacelift-managed integration that is read-only and visible to all accounts.
  • enabled
    Whether the integration can be used for LLM calls. Disabled integrations remain visible and editable but are rejected by the AI provider proxy. Spacelift-provided integrations read as disabled while the account has Spacelift Intelligence off. Turning it on restores the account's last choice for each one.