--- name: arize-ai-provider-integration description: Creates, reads, updates, and deletes Arize AI integrations that store LLM provider credentials used by evaluators and other Arize features. Supports the LLM providers in the `--provider` enum (e.g. OpenAI, Anthropic, Azure OpenAI, AWS Bedrock, Vertex AI, Gemini, NVIDIA NIM, Fireworks AI, Together AI, DeepSeek). Use when the user mentions AI integration, LLM provider credentials, create integration, list integrations, update credentials, delete integration, or connecting an LLM provider to Arize. metadata: author: arize version: "1.0" compatibility: Requires the ax CLI and a configured Arize profile. --- # Arize AI Integration Skill > **`SPACE`** — `--space` flags accept a space **name** (e.g., `my-workspace`) or a base64 space **ID** (e.g., `U3BhY2U6...`). Resolve a known name with `ax spaces get NAME`; `ax spaces list` is for browsing when the name is unknown. > **Note:** `ai-integrations create` does **not** accept `--space` — AI integrations are account-scoped. Use `--space` only with `list`, `get`, `update`, and `delete`. ## Concepts - **AI Integration** = stored LLM provider credentials registered in Arize; used by evaluators to call a judge model and by other Arize features that need to invoke an LLM on your behalf - **Provider** = the LLM service backing the integration (e.g., `OPEN_AI`, `ANTHROPIC`, `AWS_BEDROCK`) - **Integration ID** = a base64-encoded global identifier for an integration (e.g., `TGxtSW50ZWdyYXRpb246MTI6YUJjRA==`); required for evaluator creation and other downstream operations - **Scoping** = visibility rules controlling which spaces or users can use an integration - **Auth type** = how Arize authenticates with the provider: `DEFAULT` (provider API key), `PROXY_WITH_HEADERS` (proxy via custom headers), `BEARER_TOKEN` (bearer token auth), or `OAUTH2_CLIENT_CREDENTIALS` ## Prerequisites Proceed directly with the task — run the `ax` command you need. Do NOT check versions, env vars, or profiles upfront. If an `ax` command fails, troubleshoot based on the error: - `command not found` or version error → see [references/ax-setup.md](references/ax-setup.md) - `401 Unauthorized` / missing API key → run `ax profiles show` to inspect the current profile. If the profile is missing or the API key is wrong, follow [references/ax-profiles.md](references/ax-profiles.md) to create/update it. If the user doesn't have their key, direct them to https://app.arize.com/admin > API Keys - Space unknown → see [Space](references/ax-profiles.md#space) - LLM provider call fails (missing provider credentials) → run `ax ai-integrations list --space SPACE` to check for platform-managed credentials. If none exist: - **Preferred:** Give the user the exact `ax ai-integrations create` command from Supported Providers below (reference env var names like `$OPENAI_API_KEY`, never raw values). Ask them to export the provider key in **their own terminal** and run the command there — never paste the key into chat. Do not run the create command yourself unless the var is already exported in **this** terminal session. - **Bedrock/Vertex:** use `--provider-metadata` instead of `--api-key` (see Supported Providers below). - **Security:** Never read `.env` files or search the filesystem for credentials. Exception: the non-secret `ARIZE_SPACE_ID` line (see [Space](references/ax-profiles.md#space)). Use `ax profiles` for Arize credentials and `ax ai-integrations` for LLM provider keys. Never ask the user to paste secrets into chat. For missing credentials, see [references/ax-profiles.md](references/ax-profiles.md). --- ## List AI Integrations List all integrations accessible in a space: ```bash ax ai-integrations list --space SPACE ``` Filter by name (case-insensitive substring match): ```bash ax ai-integrations list --space SPACE --name "openai" ``` Paginate large result sets: ```bash # Get first page ax ai-integrations list --space SPACE --limit 20 -o json # Get next page using cursor from previous response ax ai-integrations list --space SPACE --limit 20 --cursor CURSOR_TOKEN -o json ``` Run `ax ai-integrations list --help` for flags. When the integration name or ID is known, use `ax ai-integrations get` (below) instead of paging the list; `list` is for browsing. **Response fields:** | Field | Description | |-------|-------------| | `id` | Base64 integration ID — copy this for downstream commands | | `name` | Human-readable name | | `provider` | LLM provider enum (see Supported Providers below) | | `has_api_key` | `true` if credentials are stored | | `model_names` | Allowed model list, or `null` if all models are enabled | | `enable_default_models` | Whether default models for this provider are allowed | | `function_calling_enabled` | Whether tool/function calling is enabled | | `auth_type` | Authentication method: `DEFAULT`, `PROXY_WITH_HEADERS`, `BEARER_TOKEN`, or `OAUTH2_CLIENT_CREDENTIALS` | --- ## Get a Specific Integration ```bash ax ai-integrations get NAME_OR_ID ax ai-integrations get NAME_OR_ID -o json ax ai-integrations get NAME_OR_ID --space SPACE # required when using name instead of ID ``` Use this to inspect an integration's full configuration or to confirm its ID after creation. --- ## Create an AI Integration Before creating, always list integrations first — the user may already have a suitable one: ```bash ax ai-integrations list --space SPACE ``` If no suitable integration exists, create one. The required flags depend on the provider. Every create command follows this shape; the provider-specific flags come from the table below: ```bash ax ai-integrations create \ --name "My OpenAI Integration" \ --provider OPEN_AI \ --api-key $OPENAI_API_KEY \ --enable-default-models ``` Every integration except LiteLLM, Fireworks AI, Together AI and DeepSeek needs a model source: pass `--enable-default-models` (Arize's default model list for the provider) and/or one or more `--model-name` flags. Without either, the server rejects the create with `400: An integration must have at least one model available`. For a provider's full example and notes (Bedrock/Vertex metadata, base URLs, flags to avoid), open only that provider's file from the **Details** column below. ### Supported Providers The table covers providers with provider-specific flags or notes. Run `ax ai-integrations create --help` for the full `--provider` enum. | Provider | Required extra flags ("model source" = `--enable-default-models` or `--model-name`) | Key env var | Details | |----------|---------------------|-------------|---------| | `OPEN_AI` | `--api-key `, model source | `$OPENAI_API_KEY` | [provider-openai.md](references/provider-openai.md) | | `ANTHROPIC` | `--api-key `, model source | `$ANTHROPIC_API_KEY` | [provider-anthropic.md](references/provider-anthropic.md) | | `AZURE_OPEN_AI` | `--api-key `, `--base-url `, `--model-name ` | `$AZURE_OPENAI_API_KEY` | [provider-azure-openai.md](references/provider-azure-openai.md) | | `AWS_BEDROCK` | `--provider-metadata '{"role_arn": ""}'` (no API key), model source | — | [provider-aws-bedrock.md](references/provider-aws-bedrock.md) | | `VERTEX_AI` | `--provider-metadata '{"project_id": "", "location": "", "project_access_label": "