> ## Documentation Index
> Fetch the complete documentation index at: https://docs.helicone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Xcode Integration (AI Gateway)

> Configure Xcode's Intelligence model provider to route through Helicone's AI Gateway for observability.

This guide shows how to add Helicone as a model provider in Xcode so your chats route through the Helicone AI Gateway and show up in your Helicone dashboard.

## Prerequisites

* A Helicone account and API key
* Org/provider keys configured in Helicone (so models can be listed)

## Steps

1. Open Xcode Settings

   * Xcode → Settings…

   <img src="https://mintcdn.com/helicone/psm-vDV7pnoZSp6H/images/integrations/xcode/xcode-settings.png?fit=max&auto=format&n=psm-vDV7pnoZSp6H&q=85&s=0c7aef6a2e44d29f086e99fd7adda433" alt="Xcode Settings - Intelligence section" width="310" height="330" data-path="images/integrations/xcode/xcode-settings.png" />

2. Add Helicone as a model provider

   * Select the Intelligence tab
   * Click "Add a model provider…"

   <img src="https://mintcdn.com/helicone/psm-vDV7pnoZSp6H/images/integrations/xcode/xcode-add-model.png?fit=max&auto=format&n=psm-vDV7pnoZSp6H&q=85&s=2f49c0077699aa9f618e171ad7178813" alt="Add model provider dialog in Xcode" width="726" height="466" data-path="images/integrations/xcode/xcode-add-model.png" />

   * Fill the form with:
     * URL: `https://ai-gateway.helicone.ai`
     * API Key: `Bearer <helicone-api-key>`
     * API Key Header: `Authorization`
     * Description: `Helicone` (you can name this however you like)

   <img src="https://mintcdn.com/helicone/psm-vDV7pnoZSp6H/images/integrations/xcode/xcode-configure-helicone.png?fit=max&auto=format&n=psm-vDV7pnoZSp6H&q=85&s=c9d8adbe0595490e1cf4090ce34379d1" alt="Add model provider dialog in Xcode" width="498" height="406" data-path="images/integrations/xcode/xcode-configure-helicone.png" />

3. Confirm models are available

   * After saving, Xcode should list available models from Helicone
   * There are many models; use Favorites to pin the ones you use most

   <img src="https://mintcdn.com/helicone/psm-vDV7pnoZSp6H/images/integrations/xcode/xcode-models-list.png?fit=max&auto=format&n=psm-vDV7pnoZSp6H&q=85&s=01bf920b7f51a293a7e5c185ea887a82" alt="Models list in Xcode with favorites" width="696" height="447" data-path="images/integrations/xcode/xcode-models-list.png" />

4. Start chatting and view logs in Helicone

   * Use the chat in Xcode with your selected model
   * Open the Helicone dashboard to see your requests, tokens, and costs

   <img src="https://mintcdn.com/helicone/psm-vDV7pnoZSp6H/images/integrations/xcode/xcode-chat.png?fit=max&auto=format&n=psm-vDV7pnoZSp6H&q=85&s=da726052286cd410000f5036f6b54088" alt="Chatting in Xcode and viewing requests in Helicone" width="929" height="739" data-path="images/integrations/xcode/xcode-chat.png" />

5. Switch chat model

   * In the chat widget, press the dropdown to select a new model.

   <img src="https://mintcdn.com/helicone/psm-vDV7pnoZSp6H/images/integrations/xcode/xcode-chat-model-select.png?fit=max&auto=format&n=psm-vDV7pnoZSp6H&q=85&s=37c3f32760adf5d661525b7808358cb1" alt="Chatting in Xcode and viewing requests in Helicone" width="453" height="446" data-path="images/integrations/xcode/xcode-chat-model-select.png" />

## Notes

* URL points to the Helicone AI Gateway. Your Helicone API key is sent via the `Authorization` header.
* If you don’t see models, verify your org/provider keys are set in Helicone and that your key has access.
