Adding your API Key for Voyage AI
Learn how to get your API Key
To use codebase indexing in Xcode, we use Voyage AI’s code embedding models.
To use Voyage AI in Alex Sidebar without paying a subscription for Alex, you’ll need a Voyage AI API key.
Here’s how to get one:
-
Visit Voyage AI’s Console
-
Create an account or sign in if you already have one
-
Once logged in, navigate to the API Keys page
-
Click “Create New Secret Key”
-
Give your key a name (e.g., “Alex Sidebar”) and create it
-
Copy the API key - make sure to save it somewhere secure as you won’t be able to see it again
-
In Alex Sidebar:
- Open Settings (⚙️)
- Select “Models” at the bottom of the page
- Paste your Voyage AI API key in the Voyage AI text field
Keep your API key secure and never share it publicly. If you suspect your key has been compromised, you should immediately rotate it in the Voyage AI Console.
Usage & Billing
- Voyage AI bills based on the number of tokens used
- You can monitor your usage in the Voyage AI Console
- Set up billing alerts to avoid unexpected charges
- New accounts typically come with some free credits to get started
For more information about Voyage AI’s pricing and usage, visit Voyage AI’s pricing page.
Enabling Voyage AI does not give you access to all of Alex’s features. For other models like Claude Sonnet or GPT 4o, follow the Anthropic API Key Instructions and OpenAI API Key Instructions respectively. To enable Thinking mode, follow the FireworksAI API Key Instructions.
Was this page helpful?