vercel setup
The vercel setup command prepares your machine for coding agents in two steps:
- Vercel plugin: Installs the Vercel plugin for Claude Code, Codex, and OpenCode 2 or later.
- AI Gateway: Connects your local coding agents to AI Gateway. This runs the same flow as
vercel ai-gateway setup.
The command prompts you before each step and skips agents it doesn't find on your machine. To run one step on its own, use a subcommand.
vercel setupUsing the vercel setup command to install the Vercel plugin and connect
coding agents to AI Gateway.
vercel setup gatewayvercel setup plugin --agent codexvercel setup skillsWrite the Vercel CLI skill that matches your installed CLI version to
~/.agents/skills/vercel-cli. Run it again after upgrading the CLI to
update the skill.
vercel setup --dry-runTo run only the Vercel plugin step, use the vercel setup plugin subcommand:
vercel setup pluginOnly install the Vercel plugin for Claude Code, Codex, and OpenCode.
To run only the AI Gateway step, use the vercel setup gateway subcommand:
vercel setup gatewayvercel setup gateway also accepts the --all, --key, --reconfigure, and --no-session-migration options of vercel ai-gateway setup. To use that command's other options, such as a spend limit for a new key, run vercel ai-gateway setup.
The Vercel CLI skill guides a coding agent through deployment, configuration, and troubleshooting with the CLI version you have installed. To write the skill to ~/.agents/skills/vercel-cli, use the vercel setup skills subcommand:
vercel setup skillsvercel setup without a subcommand doesn't write the skill. Run vercel setup skills again after you upgrade the CLI to update the skill.
If your agent reads skills from another directory, pass the directory for the skill with the --output option:
vercel setup skills --output .agents/skills/vercel-cliThis subcommand doesn't prompt, and it doesn't accept the --agent or --yes options.
These are options that only apply to the vercel setup command.
The --agent option, value NAME, limits setup to one coding agent. Repeat it to select more than one. The values each step accepts are different:
- Vercel plugin:
claude-code,codex, oropencode. - AI Gateway: any agent in the supported coding agents list, such as
cursororopencode.
vercel setup --agent claude-codeThe --dry-run option shows what would change without writing any files.
vercel setup --dry-runThe --yes option, shorthand -y, skips the confirmation prompts.
vercel setup --yesThe following global options can be passed when using the vercel setup command:
For more information on global options and their usage, refer to the options section.
Was this helpful?