/vercel:botidfrom vercel
Protects specific routes and server actions from bots using Vercel BotID. Covers installation, initBotId(), checkBotId(), BotIdClient, verified bots, and Deep Analysis.
Ships in vercel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Vercel BotID — invisible, per-route bot protection added in code.
protectcheckBotId() sends those headers to Vercel and returns a verdict for the current requestnext startcheckBotId() calls, Enterprise custom). Only checkBotId() calls are billednpm i botid
No config wrapper or rewrites needed: Vercel routes BotID requests automatically. Remove any old withBotId, botid/nuxt or BotID vercel.json rewrites.
// instrumentation-client.ts (Next.js 15.3+)
import { initBotId } from 'botid/client/core';
initBotId({
protect: [
{ path: '/api/signup', method: 'POST' },
{ path: '/api/user/*', method: 'POST' },
{ path: '/checkout', method: 'POST' }, // server action invoked from /checkout
],
});
* matches any characters, including / and nothing; method: '*' matches any method<BotIdClient protect={routes} /> from botid/client in the root layout <head>plugins/botid.client.ts with enforce: 'pre'. SvelteKit: init() in src/hooks.client.tsfetch or XHR. Traditional <form action method> posts aren't supported; use onSubmit + fetch or a server actionimport { checkBotId } from 'botid/server';
export async function POST(request: Request) {
const { isBot } = await checkBotId();
if (isBot) return Response.json({ error: 'Access denied' }, { status: 403 });
// inference, writes, payments
}
Same call at the top of a server action. Result fields: isBot, isHuman, isVerifiedBot, verifiedBotName, verifiedBotCategory, bypassed. Pages Router in development: pass advancedOptions: { headers: req.headers }.
Allow specific agents (botid 1.5.0+) from the verified bots directory:
const { isBot, isVerifiedBot, verifiedBotName } = await checkBotId();
if (isBot && !(isVerifiedBot && verifiedBotName === 'chatgpt-operator')) {
return Response.json({ error: 'Access denied' }, { status: 403 });
}
For a trusted service not in the directory, use a separate authenticated route or a WAF bypass rule scoped to its IPs. Bypassed traffic returns bypassed: true.
vercel firewall rules update bot-id --action deep-analysis (staged; basic reverts). Billed, so confirm with the user and let them publishadvancedOptions.checkLevel: 'deepAnalysis' | 'basic' (1.4.5+) on both the protect entry and checkBotId(); a mismatch fails verificationcheckBotId({ advancedOptions: { extraAllowedHosts: ['app.example.com'] } })isHuman && !bypassed. It's a bearer credential; keep auth, rate limits and CSRF protectionNODE_ENV=development): returns human. Force a verdict with checkBotId({ developmentOptions: { bypass: 'BAD-BOT' } }) (or 'HUMAN', 'GOOD-BOT')fetch on a page that loaded the script. curl, Postman and the address bar are reported as bots, as expectedprotect, path/method mismatch, or a non-browser caller. The logged misconfiguration warning names the { path, method } to addcheckBotId() not called in the handler, or its result ignoredVERCEL_OIDC_TOKEN is not set: running outside Vercelvercel-firewall skill)vercel-firewall skill)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vercel/vercel-plugin --plugin vercel-plugin41 skills in this plugin
/access-protected-vercel-deploymentAccess and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection. Use when curl, agent-browser, Playwright, or another automated request reaches a Vercel login or protection page; when a protected preview or production URL returns 401 or 403; when TRUSTED_SOURCES_ENVIRONMENT_MISMATCH appears; or when choosing between `vercel curl` and the `x-vercel-trusted-oidc-idp-token` header./ai-gatewayVercel AI Gateway guidance for setup, model discovery, authentication, routing, fallbacks, virtual models, evaluation models, BYOK, budgets, spend reporting, observability, compatible APIs, and coding-agent configuration. Use when adding AI Gateway to an app, migrating provider calls, choosing models or providers, centralizing model configuration, evaluating application state, debugging gateway requests, or running `vercel ai-gateway` commands./ai-sdkOther plugins' skills for the same job