-
Notifications
You must be signed in to change notification settings - Fork 159
Add vercel ai gateway provider docs #318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hannesrudolph
merged 3 commits into
RooCodeInc:main
from
joshualipman123:add-vercel-ai-gateway-provider
Aug 26, 2025
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| description: Configure the Vercel AI Gateway in Roo Code to robustly access 100+ language models from various providers through a centralized interface. | ||
| keywords: | ||
| - roo code | ||
| - vercel ai gateway | ||
| - ai provider | ||
| - language models | ||
| - api configuration | ||
| - model selection | ||
| - prompt caching | ||
| - usage tracking | ||
| - byok | ||
| sidebar_label: Vercel AI Gateway | ||
| image: /img/social-share.jpg | ||
| --- | ||
|
|
||
| # Using Vercel AI Gateway With Roo Code | ||
|
|
||
| The AI Gateway provides a unified API to access hundreds of models through a single endpoint. It gives you the ability to set budgets, monitor usage, load-balance requests, and manage fallbacks. | ||
|
|
||
| Useful links: | ||
| - Team dashboard: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai | ||
| - Models catalog: https://vercel.com/ai-gateway/models | ||
| - Docs: https://vercel.com/docs/ai-gateway | ||
|
|
||
| --- | ||
|
|
||
| ## Getting an API Key | ||
|
|
||
| 1. **Sign Up/Sign In:** Go to the [Vercel Website](https://vercel.com/) and sign in Sign in. | ||
| 2. **Get an API Key:** Go to the [API Key page](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys&title=AI+Gateway+API+Key) in the AI Gateway tab. Create a new key. | ||
| 3. **Copy the Key:** Copy the API key. | ||
|
|
||
| --- | ||
|
|
||
| ## Supported Models | ||
|
|
||
| the Vercel AI Gateway supports a large and growing number of models. Roo Code automatically fetches the list of available models. Refer to the [Vercel AI Gateway Models page](https://vercel.com/ai-gateway/models) for the complete and up-to-date list. | ||
|
|
||
| --- | ||
|
|
||
| ## Configuration in Roo Code | ||
|
|
||
| 1. **Open Roo Code Settings:** Click the gear icon (<Codicon name="gear" />) in the Roo Code panel. | ||
| 2. **Select Provider:** Choose "Vercel AI Gateway" from the "API Provider" dropdown. | ||
| 3. **Enter API Key:** Paste your Vercel AI Gateway API key into the "Vercel AI Gateway API Key" field. | ||
| 4. **Select Model:** Choose your desired model from the "Model" dropdown. | ||
|
|
||
| --- | ||
|
|
||
| ## Tips and Notes | ||
|
|
||
| * **Model Selection:** OpenRouter offers a wide range of models. Experiment to find the best one for your needs. | ||
| * **Pricing:** The Vercel AI Gateway charges based on the underlying model's pricing. See the [Vercel AI Gateway Models page](https://vercel.com/ai-gateway/models) for details. | ||
| * **Bring Your Own Key (BYOK):** The Vercel AI Gateway has **no markup** if you decide to use your own key for the underlying service. | ||
| * **More info:** Vercel does not add rate limits. Upstream providers may. New accounts receive $5 credits every 30 days until the first payment. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicate 'Sign in' phrasing in the API key step.