Let an AI coding agent drive your logged-in browser from the terminal

A coding agent can inspect a real browser, choose a visible action and check what happened, without a separate browser script for every task. Grip (gripui) exposes that browser through terminal commands. Claude Code, Codex or Cursor can call the CLI from a shell when their tool permissions allow it. The agent sees a numbered action sheet (hud), chooses a ref number, and reads the next sheet before acting again.

This fits a dashboard that you already use: open the relevant page, inspect a record, or prepare a change for your review. An existing session in a dedicated persistent profile may save repeated sign-ins. It also gives the agent the authority of that account, so give it a narrow job and review consequential changes. A browser profile separates browsing data; it does not sandbox an agent that can also access your files or shell.

Grip requires an active paid licence for browser actions and an AI agent you supply; there is no free tier for browser actions, and commands stop if a licence ends or becomes invalid. Solo Dev ($79/year) covers one developer for local personal and commercial work on up to 2 machines (excluding CI runners and shared machines).

Pro Runner ($499/year) covers headless, CI, multi-machine and production workflows on up to 3 activations, while Platform (from $10k/year) covers redistribution, bundling or external user access. Solo Dev and Pro Runner renew annually until cancelled and are refundable within 2 days of activation or renewal; Grip keeps a signed lease on your machine and renews it with gripui.com every 5 hours. See the pricing page for full plan details.

Connect an agent and bind a profile

Install and activate Grip using the download and licence instructions (gripui license activate <your-key>, checked with gripui license status). To wire the Grip skill into supported CLI agents from your project directory, run gripui teach, which installs the skill for Claude Code, Codex, Gemini CLI, Copilot and Grok. If you prefer MCP over stdio, gripui mcp exposes Grip as a tool (claude mcp add gripui -- gripui mcp for Claude Code, [mcp_servers.gripui] in ~/.codex/config.toml for Codex, or command gripui with arg mcp in another MCP client).

Each coding agent governs shell execution with its own documented controls, and Grip does not modify those settings for you. Claude Code evaluates its Bash tool through deny, ask and allow rules in settings files such as ~/.claude/settings.json or .claude/settings.json and via /permissions. Codex CLI separates sandboxing from approval policies configured in ~/.codex/config.toml, /permissions and .codex/rules/. Cursor controls agent terminal runs through Run Modes (Auto-review, Allowlist, Run Everything), permissions.json (terminalAllowlist), and CLI Shell(...) tokens.

For real work that needs a persistent login across runs, bind a dedicated profile to your project with gripui attach <name> (saved in .gripui.json) and release it later with gripui detach. Sign in only to the accounts the job needs, and protect the profile's browsing data as you would a logged-in device. An explicit @<name> or --profile <name> flag overrides the profile for a single command without transferring job ownership.

First, observe a page

The small public-page exercise below uses a fresh temporary profile (@grip-review01-20261204) that starts headless and is deleted on quit. It does not touch your existing logins. Run each command separately; headless runs fall under Pro Runner when used for unattended or CI workflows.

gripui @grip-review01-20261204 set temporary
gripui @grip-review01-20261204 set headless
gripui @grip-review01-20261204 go https://example.com
gripui @grip-review01-20261204 hud

On a macOS test host with Grip 6.5.1, go completed synchronously in 2.05 seconds wall time (ok: navigated tab=1 url=https://example.com). Any one-shot command still running after 2 seconds returns a background handle instead, which you inspect with gripui handle (or pass GRIPUI_SYNC=1 to block). The first hud call took 0.41 seconds wall time after navigation completed and showed one action:

[1] click link:"Learn more"

That 0.41-second measurement is a single CLI invocation on an already-loaded page, not a browser startup benchmark. Your network speed, browser startup time and page complexity will change the numbers.

Act, then look again

The agent selects the number from its own latest observation, not a number copied from an example. In this run, action 1 was the link above:

gripui @grip-review01-20261204 do 1
gripui @grip-review01-20261204 hud

The do 1 call returned ok: clicked tab=1 Learn more, and the next hud showed the IANA Example Domains page (https://www.iana.org/help/example-domains) with an updated sheet (s1 to s2). Because the available actions changed, that hud invocation printed the new refs and exited nonzero (1). Read the output rather than treating a changed-sheet exit code alone as a browser failure; a subsequent hud on the unchanged page exited 0.

The same loop is the agent's operating rule: inspect the current page, choose an unambiguous action, execute it, and inspect the result. A receipt that says a click was sent does not prove that an asynchronous save or upload succeeded. Look for the actual confirmation or changed record before claiming the job is done. If two controls share a label, use the surrounding context= text in the HUD and stop when the target remains ambiguous.

A concise instruction for a coding agent can say: "Use the attached browser profile. Inspect the page with gripui hud, act on one current ref, and refresh the HUD after each action. Do not submit a purchase or change an account setting, and stop for my review at any login or verification challenge."

Let a person handle authentication

A real sign-in, password prompt or two-factor check belongs to the person authorized for the account. Grip's human-drives mode hands control over, and agent-drives returns it. From a headless session, the default gripui human-drives restarts the browser visibly so a person can interact; Grip restores open tabs from the profile, though unsaved form state may not survive. Authenticate before filling a long form, and keep passwords, recovery codes and one-time codes out of the agent conversation.

If you need to check mode transitions in automation without opening a window, gripui human-drives --no-restart keeps the browser headless, but a person cannot see or click in a headless window. After a visible handoff, wait for the person to finish, run gripui agent-drives, and take a fresh gripui hud to confirm the expected account is signed in. Neither a visible human login nor two-factor verification was executed in this public-page check; see the handoff guide for that full sequence.

Close the test and choose the right tool

gripui quit --profile grip-review01-20261204

On the test host, quit confirmed that the daemon stopped and the temporary profile was deleted. Temporary profiles are right for disposable public checks, whereas a named persistent profile is right when a task needs an existing session across runs. A profile isolates browser storage, not the wider machine where the agent runs.

If the agent cannot see a control, refresh the HUD, check gripui hud --layer active for overlays, check gripui frame list, or scroll the page. When you own an application and want a repeatable regression suite with fixtures, web-first assertions, Trace Viewer artifacts and cross-browser CI runs, Playwright is the better fit. Use Grip when the task is exploratory or when a person and an agent share a live browser session.

Next: for a remote browser you own on your own server, use gripui connect browserbox '<login-link>' --engine with your BrowserBox login link; that remote connection was not exercised in this test. Evaluate BrowserBox or see Grip pricing.

Your agent. Your browser.

Put it to work.

Get started

macOS · Linux · Windows
Paid licence required. Bring your own AI agent.

Demo recording

Player unavailable? Watch on YouTube ↗