[KongchangAI]
· 2 min read· 1,134 words

New Vercel CLI Feature: Let AI Agents Investigate and Manage the Firewall Directly

New Vercel CLI Feature: Let AI Agents Investigate and Manage the Firewall Directly

Vercel CLI adds firewall commands, letting AI agents investigate traffic and draft firewall changes that require human approval to take effect.

Vercel updated its CLI with new firewall subcommands, enabling AI coding agents to investigate and manage Vercel Firewall. Agents can view firewall status, traffic, alerts, and bot management, with all commands supporting --json output; they can also toggle the OWASP Core Ruleset, Bot Protection, and AI Bots via managed-rulesets and adjust rule actions. On the Pro plan, enabling OWASP requires a Priority project. All changes are staged as drafts and take effect only after vercel firewall diff review and vercel firewall publish, forming an "agent investigates, human approves" workflow. This reflects the trend of agentic infrastructure operations while Vercel stays cautious about agent autonomy.

Vercel recently updated its CLI tool to let AI coding agents investigate and manage Vercel Firewall directly through the command line. This change means coding assistants are no longer limited to writing code—they can also participate in reviewing and configuring security policies.

Vercel Firewall CLI feature introduction

Starting from the project directory: investigating traffic and alerts

In a project directory linked via vercel link, developers can run the following commands:

  • vercel firewall status: check firewall configuration and recent activity
  • vercel firewall traffic list: list traffic
  • vercel firewall alerts list: view the alert list
  • vercel firewall bot-management: check bot management status

All of these commands support a --json flag, producing structured data that is easy for agents to parse and act on. Vercel also provides a typical agent prompt example: "Why did my project see a spike in rejected requests over the past hour?"—the agent can call the commands above to pinpoint anomalous traffic without a human manually digging through dashboards.

Configuring managed rulesets: OWASP, Bot Protection, and AI Bots

The vercel firewall managed-rulesets command lets agents enable or disable the OWASP Core Ruleset, Bot Protection, and AI Bots, and adjust the action of individual rule groups.

One noteworthy detail: on the Pro plan, enabling the OWASP Core Ruleset requires the project to be set as a Priority project. This means availability of security capabilities is still tied to plan tier, and agents may hit permission or plan limits when attempting configuration.

The official prompt example is: "Turn on log mode for AI Bots on this project so I can see what it would have blocked." This shows that Vercel wants agents to intervene in observation mode first, reducing the risk of misconfiguration.

OWASP Core Ruleset (CRS) is a set of open-source web application firewall rules maintained by the OWASP Foundation. Originally designed for the ModSecurity engine, it has become the de facto industry standard. It covers common attack patterns such as SQL injection, cross-site scripting (XSS), local file inclusion, and command injection, and is organized by rule group—for example, request method restrictions, protocol enforcement, and anomaly detection. Each rule carries a severity level and an action (such as block or log only), so policies can be tightened gradually without breaking normal business traffic. Vercel offers it as a managed ruleset, meaning users don't need to write rule logic themselves—they just choose the scope and action to enable and get baseline protection.

Bot Protection and AI Bots are two related but distinct layers. Bot Protection broadly refers to the ability to identify and handle automated traffic, typically distinguishing good crawlers (such as search engines) from malicious bots (such as credential stuffing, scraping, and scanning) based on request characteristics, behavioral analysis, and signature libraries. AI Bots specifically refers to automated agents or crawlers driven by large language models; their behavior patterns differ from traditional crawlers and may simulate human interaction or make high-frequency API calls. Listing AI Bots as a separately manageable item reflects a new need in traffic governance: sites need to decide whether to allow AI agents to access content, and whether to block, allow, or merely log them. Log mode lets rules observe without blocking, a safe practice before rolling out a new policy.

Draft mechanism: changes don't take effect immediately

All changes made through the CLI are first staged as drafts. Developers can use vercel firewall diff to review the changes, and only after confirmation does running vercel firewall publish make them take effect officially.

This design separates "agent operations" from "human approval," preventing agents from directly altering production security policies. For security-related configuration, this buffer is important—a misconfigured firewall rule could block legitimate traffic or expose the attack surface.

The draft mechanism is essentially a "changeset" or "plan-apply" model, common in infrastructure-as-code (IaC) tools such as Terraform's plan/apply workflow. Its core is separating the generation of configuration changes from their application: CLI commands only modify local or server-side staging state, vercel firewall diff shows the difference between staged changes and the current production configuration, and vercel firewall publish triggers atomic application. This design brings several benefits: changes can be reviewed, rolled back, and submitted in batches, and it avoids configuration inconsistency caused by partial application.

For AI agents, the draft mechanism provides a safety boundary. Agents can freely explore and propose rule adjustments but cannot unilaterally change the production environment. Humans can see in the diff exactly which rule changed and what action changed from what to what, enabling informed decisions. This also means agent output needs to be explainable and comparable; otherwise, diff review becomes a formality. In team collaboration, drafts can also serve as a change record, making it easy to audit after the fact who proposed what security policy adjustment and when.

How to get started

First upgrade the CLI to the latest version, then install the Vercel Firewall skill for your coding agent:

vercel upgrade
npx skills add vercel/vercel-plugin --skill vercel-firewall

After installation, the agent can call the commands above. For more details, see the Vercel Firewall CLI reference documentation.

What this means

Exposing firewall management to the CLI and agents is another step in Vercel's push to make infrastructure operations "agentic." In the past, security configuration often relied on clicking through dashboards or API scripts; now, coding agents can complete traffic investigation, rule adjustments, and change previews within the same conversational context.

However, the draft-plus-approval workflow also shows that Vercel remains cautious about agent autonomy. For teams, the real value may not lie in letting agents automatically change rules, but in having them quickly aggregate information during the investigation phase—such as locating the source of rejected requests and identifying anomalous bot behavior—before humans make the final decision.

This "agent investigates, human approves" model may become a common paradigm for infrastructure management tools.

One-line Summary

Vercel CLI adds firewall commands, letting AI agents investigate traffic and draft firewall changes, but changes require human approval to take effect.

Paragraph Summary

Vercel updated its CLI with new firewall subcommands, enabling AI coding agents to directly investigate and manage Vercel Firewall. Agents can view firewall status, traffic, alerts, and bot management information, with all commands supporting structured --json output; they can also use the managed-rulesets command to toggle the OWASP Core Ruleset, Bot Protection, and AI Bots, and adjust rule actions. Notably, enabling OWASP on the Pro plan requires the project to be set as a Priority project. All changes are first staged as drafts and take effect only after review with vercel firewall diff and release via vercel firewall publish, forming an "agent investigates, human approves" workflow. Before use, you need to upgrade the CLI and install the vercel-firewall skill. This reflects the trend of making infrastructure operations agentic, while Vercel remains cautious about agent autonomy.

#Vercel CLI#Vercel Firewall#AI Agents#OWASP Core Ruleset#Bot Protection#draft approval workflow
Share:

Related articles