agent-vercel
Vercel CLI for AI agents
- Language
- Go
- Version
- 0.1.2
- License
- PolyForm Perimeter 1.0.0
- Category
- CLI Tool
A Vercel CLI for AI agents that triages and carefully acts on Vercel through compact, structured output. It is read-default and cross-project: inspect deployments, build and runtime logs, what is live in production, env-var diffs across environments, domains, DNS, certs, aliases, and billing — without exposing the Vercel token to the agent.
Features
LLM-shaped output — lists default to NDJSON, single resources to JSON, and errors include fixable_by plus hints
Read-default triage — deployments, builds, logs, runtime logs, projects, env, domains, DNS, certs, aliases, and billing
Cross-project and history-aware — answers questions the deploy-loop vercel CLI cannot, straight from the Vercel REST API
Credential vs scope model — one Keychain-stored token reaches many teams; --auth picks the secret, --scope picks the team
Keychain-first credentials — the access token is stored securely and there is no command to read it back out
Env diffing — compare environment variables across production and preview without printing secret values
Mutation safety — promote, rollback, cancel, redeploy, env writes, and domain/alias changes require --yes
Raw API escape hatch — call any Vercel REST endpoint when a dedicated command does not exist yet
Mock Vercel fixture — HTTP logic is dependency-injected and tested without touching the real API
Install
Homebrew
$ brew install shhac/tap/agent-vercel AI Agent Skill
$ npx skills add shhac/agent-skills --skill agent-vercel --global GitHub Release (macOS)
$ curl -L https://github.com/shhac/agent-vercel/releases/latest/download/agent-vercel-darwin-arm64.tar.gz | tar xz Go Install
$ go install github.com/shhac/agent-vercel/cmd/agent-vercel@latest Build from Source
$ git clone https://github.com/shhac/agent-vercel.git && cd agent-vercel && make build Getting Started
agent-vercel needs a Vercel access token before it can triage deployments or account state. Tokens live in the OS keychain, and one credential can reach many teams via scopes.
01 · Add a Vercel token
$ agent-vercel auth add personal Create a token at vercel.com/account/tokens and store it in the Keychain. The token is never printed back and there is no command to read it out.
02 · Verify the credential
$ agent-vercel auth test Checks the stored token against GET /v2/user without printing the secret.
03 · Pick a team to act on
$ agent-vercel scope set-default acme Lists the teams the credential can reach and sets a default scope; override per call with --scope.
04 · See what is live in production
$ agent-vercel deployment current --prod Reads the current production deployment, including rolling releases, as JSON.
Usage
$ agent-vercel deployment list --limit 20 $ agent-vercel deployment current --prod $ agent-vercel deployment logs dpl_... --limit 100 $ agent-vercel env diff --project web production preview $ agent-vercel domain records example.com $ agent-vercel alias set staging.example.com dpl_... --yes $ agent-vercel api call GET /v2/user