Credentials
Select one of four options to supply your API keys:- Browser: Store the keys in the local storage of your browser.
- Database (Secrets): Save the keys encrypted in the Phoenix database.
- Database (Custom Providers): Configure named providers with specific credentials.
- Environment Variables: Set the keys as environment variables on the server.
Option 1: Store API Keys in the Browser
- In the playground, open the API Keys menu.
- Enter your API keys.

Option 2: Save Secrets (Encrypted) in the Database
- Go to the Settings page.
- Select the AI Providers tab.
- Click the edit icon for a provider.
- In the dialog, set the view to Secrets.
- Enter your keys.
secrets table.
Option 3: Custom Providers
A custom provider stores provider credentials and routing settings on the server. You can use it again in the playground and in prompt versions. To configure custom providers, see Custom AI Providers. Using Custom Providers in the Playground and Prompts Custom providers show in model selection menus as their own provider group. When you select one:- The model list is the same as the built-in model list for that SDK.
- Phoenix gets the routing fields (base URL, Azure endpoint, AWS region) from the custom provider configuration.
- You can add request-level custom headers from the model configuration panel.
Option 4: Set Environment Variables on Server Side
Set these variables in the server environment. Phoenix uses them when it invokes the API.
The OpenAI-compatible built-in providers (OpenAI, DeepSeek, xAI, Ollama, Cerebras, Fireworks, Groq, Moonshot, MiniMax, Perplexity, Together, Z.ai, and Meta) also read a
<PROVIDER>_BASE_URL variable, for example DEEPSEEK_BASE_URL or META_BASE_URL. Use it to send requests to a different endpoint, for example a proxy or a regional API. Ollama has no default endpoint, so this variable is required for Ollama.
For Azure, you can also set these server-side environment variables to use WorkloadIdentityCredential:
AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_FEDERATED_TOKEN_FILE.AWS Bedrock AuthenticationFor AWS Bedrock, Phoenix uses the standard boto3 credential chain or the
AWS_BEARER_TOKEN_BEDROCK environment variable. Thus you do not need to supply credentials explicitly in these conditions:- Phoenix runs on an EC2 instance with an assigned IAM role.
- You configured
~/.aws/credentials. - You exported
AWS_BEARER_TOKEN_BEDROCK.
Using OpenAI Compatible LLMs
Option 1: Configure the base URL in the prompt playground
You can set the base URL of the OpenAI client. Thus you can use the prompt playground with OpenAI-client-compatible LLMs such as Ollama and DeepSeek.If you use a different LLM provider, set the OpenAI API key to the API key of that provider.

Simply insert the URL for the OpenAI client compatible LLM provider
The built-in MiniMax provider uses the global endpoint by default. To use the China endpoint, set
MINIMAX_BASE_URL=https://api.minimaxi.com/v1.
Using the MiniMax Anthropic-compatible API
- Open Settings and select AI Providers.
- Create a custom provider with the Anthropic SDK and your MiniMax API key.
- Set the base URL for the region that you need. See the table below.
- In the model menu, enter
MiniMax-M3orMiniMax-M2.7.
Use the base URL exactly as shown. The Anthropic SDK adds
/v1/messages when Phoenix sends a request.
Option 2: Server side configuration of the OpenAI base URL
Set theOPENAI_BASE_URL environment variable on the server to send requests to any OpenAI-compatible REST API.
OpenAI and Azure OpenAI support two API types: Chat Completions (
chat.completions.create) and Responses (responses.create). Built-in and custom providers use the Responses API by default. For built-in providers, change the API type for each model in the model configuration panel of the Playground. For custom providers, set the API type in the provider configuration.Custom Headers
Add custom HTTP headers to the requests that Phoenix sends to AI providers. Use them for additional credentials, routing, or cost tracking with custom LLM proxies.Configuring Custom Headers
- Click the model configuration button in the playground.
- Scroll down to the “Custom Headers” section.
- Add your headers in JSON format:
Set a Default Provider and Model
Set the provider and model that the Prompt Playground selects by default.- Go to Settings → AI Providers.
- In the AI Provider Settings card, select a default provider and model.

