---
title: Amp with AI Gateway
description: "Connect Amp to AI Gateway through Amp's Model Routing settings. Add an AI Gateway API key, choose models for Amp's modes, and monitor requests."
url: "https://vercel.com/docs/ai-gateway/coding-agents/amp"
last_updated: 2026-09-13
related:
  - /docs/cli/ai-gateway
  - /docs/ai-gateway/authentication-and-byok/api-keys
  - /docs/ai-gateway/observability-and-spend/logs
  - /docs/ai-gateway/observability-and-spend/observability
  - /docs/ai-gateway/observability-and-spend/budgets
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
search_kb_with_vercel_cli: npx vercel@latest kb search "<query>"
---

# Amp with AI Gateway

[Amp](https://ampcode.com) is a coding agent and development environment. Connect Amp to AI Gateway through Amp's Model Routing settings to use your AI Gateway API key for supported models.

> **💡 Note:** Vercel AI Gateway is currently available in Amp as early access for Megawatt
> and Gigawatt members. Enable **More AI Routers & Subscriptions** before
> configuring the provider. See [Amp's early-access
> announcement](https://ampcode.com/news/free-agent) for availability details.

Amp requires manual configuration. The [Vercel CLI setup command](/docs/cli/ai-gateway#setup) does not configure Amp.

## Prerequisites

- An Amp Megawatt or Gigawatt membership while the integration is in early access
- An [AI Gateway API key](/docs/ai-gateway/authentication-and-byok/api-keys)

## Configure Amp

- ### Create an API key
  Go to the [**AI Gateway**](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway\&title=Go+to+AI+Gateway) section in the Vercel dashboard sidebar and click **API keys** to create a new API key.

- ### Enable AI routers in Amp
  Sign in to Amp and open [**More AI Routers & Subscriptions**](https://ampcode.com/settings/experimental-features#ai-routers) in Experimental Features. Enable the feature for your Amp account.

- ### Connect Vercel AI Gateway
  Open [**Model Routing**](https://ampcode.com/settings/model-routing) in your personal or workspace settings. Select **Vercel AI Gateway**, then follow Amp's prompts to connect your AI Gateway API key.

- ### Choose a model and verify the connection
  Open [**Mode Dial**](https://ampcode.com/settings/dial) and choose a model from the Vercel AI Gateway connection for the Amp roles you want to route. Amp lets you configure the main agent, Oracle, and subagents independently.

  Send a prompt in Amp, then check [AI Gateway logs](/docs/ai-gateway/observability-and-spend/logs) for the request.

## Monitor usage and spend

View your usage, spend, and request activity in the [**AI Gateway**](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway\&title=Go+to+AI+Gateway) section in the Vercel dashboard sidebar. See the [observability documentation](/docs/ai-gateway/observability-and-spend/observability) for more details.

## Next steps

- Read [Amp's Modes and Models documentation](https://ampcode.com/docs/models-and-subagents)
- Configure [spend limits](/docs/ai-gateway/observability-and-spend/budgets) for your AI Gateway API key
- Review [AI Gateway provider and model support](/docs/ai-gateway/models-and-providers)

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
