← Files VercelARCHIVED FILE

skills/vercel-cli/references/agent-and-ai.md

1.5 KB · Oct 6, 2026 · 18:03 UTC

↓ Download file

See the change to this file →

# Agent, MCP, Skills, and AI Gateway

Use these commands for AI-agent setup and AI Gateway key management. Confirm flags with `vercel <command> --help` before scripting client-specific setup.

## Agent Instructions

`vercel agent` generates an `AGENTS.md` file with Vercel deployment best practices.

```bash
vercel agent init
vercel agent init --yes
```

## MCP Setup

`vercel mcp` sets up MCP agents and configuration for Vercel integration.

```bash
vercel mcp                                      # interactive setup
vercel mcp --project                            # project-specific access
vercel mcp --clients "Cursor,VS Code with Copilot"
```

In non-interactive mode, pass `--clients`. Supported client labels are listed in `vercel mcp --help`.

## Skill Discovery

`vercel skills` discovers agent skills relevant to a project.

```bash
vercel skills
vercel skills nextjs --format json
vercel skills --json
```

## AI Gateway

`vercel ai-gateway` manages AI Gateway API keys, routing rules, and models.

```bash
vercel ai-gateway api-keys create
vercel ai-gateway api-keys create --name my-key --budget 500 --refresh-period monthly
vercel ai-gateway api-keys create --include-byok

vercel ai-gateway rules ls
vercel ai-gateway rules add --type rewrite --source anthropic/claude-fable-5 --destination anthropic/claude-opus-4.8

vercel ai-gateway models ls
vercel ai-gateway models endpoints anthropic/claude-opus-4.8
```

Use the dashboard or `vercel api` only when first-class CLI commands do not expose the needed operation.

SHA-256: 015963f1ecd320f86cb58677bc5ed6adc6ec51295a844dca5940afdd07ccd2f3