{
  "slug": "agent-browser-chat-command-adds-ai-browser-control-7ee4e5b379b3",
  "title": "agent-browser chat command adds AI browser control",
  "tools": [
    "agent-browser"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-06T15:27:59.000Z",
  "announced_at": "2026-04-06T15:27:59.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When using AI Gateway for natural-language browser control, set `AI_GATEWAY_API_KEY` and run `agent-browser chat \"open google.com\"` for a single instruction or `agent-browser chat` for the interactive REPL. Add `--model <name>` or set `AI_GATEWAY_MODEL` to choose a model; add `--json` for structured output.",
    "examples": [
      "agent-browser chat \"open google.com\"",
      "agent-browser chat",
      "agent-browser --json --model <model-name> chat \"open google.com\""
    ],
    "gotchas": [
      "Version: v0.25.0",
      "AI_GATEWAY_API_KEY (required): Vercel AI Gateway API key; required to enable AI chat.",
      "<instruction>: Natural-language browser instruction; include it for single-shot mode, or omit it to start the interactive REPL.",
      "--model <name>: Select the AI model for the chat command; CLI flags take precedence over environment variables.",
      "AI_GATEWAY_MODEL: Select the default AI model for chat; the README example gives `anthropic/claude-sonnet-4.6` as the default.",
      "--json: Request structured output suitable for agent consumption.",
      "Prerequisite: Set `AI_GATEWAY_API_KEY` to enable AI chat.",
      "Requires `AI_GATEWAY_API_KEY`.",
      "In interactive mode, type `quit` to exit."
    ]
  },
  "why_it_matters": "When using AI Gateway for natural-language control while inspecting or testing a browser session, run a chat instruction through agent-browser.",
  "sources": [
    "https://github.com/vercel-labs/agent-browser/releases/tag/v0.25.0",
    "https://github.com/vercel-labs/agent-browser/blob/v0.25.0/README.md",
    "https://github.com/vercel-labs/agent-browser/blob/v0.25.0/docs/src/app/configuration/page.mdx"
  ],
  "rank": 0.97046,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-1fa6494be6e9a0ee-0:gate",
    "evidence_hash": "1401b601ae60e8ad06180e7f5b08cb910a70a5f2b0a577511cadaa5e9660d99d"
  },
  "review": {
    "draft_hash": "c4d6f34d8ca63c58f30388de3efce3b4f8f82e3c33cb5fa8810ddcd1a3507924",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
