cd /news/ai-agents/how-can-a-coding-agent-work-behind-m… · home › topics › ai-agents › article
[ARTICLE · art-180155] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

How can a coding agent work behind my login and 2FA?

A developer demonstrated a workflow in which a coding agent operates a password- and 2FA-protected supplier dashboard without ever receiving the credentials, using the local browser tool Grip to hand control to a human for sign-in and then return it to the agent. The agent reads last month's order totals into a local report, and the developer stresses verifying totals and row counts against the dashboard because a successful browser command does not prove the site accepted a filter or captured every row. Grip is paid software ($79/year Solo Dev, $499/year Pro Runner) and requires a separate AI agent.

recommendation

Use a dedicated browser profile and a human-drives/agent-drives handoff so credentials and 2FA never enter the agent's prompt, and give the signed-in account the smallest practical permissions.

more in playbook: Securing agents and AI tools
by read3 min views19 publishedDec 2, 2026

A supplier dashboard holds the order totals we need for a monthly report. It also asks for a password and a code sent to our phone. We can sign in ourselves and let a coding agent do the reading afterwards, without putting either credential in its prompt.

This is a worked example using a fictional supplier portal. The job is to read last month's order totals and write a local report. It has no authority from us to change or place orders.

With Grip installed, activated and connected to our agent, we give the job a dedicated browser profile. Grip drives Chrome or Firefox on our machine; the coding agent supplies the reasoning.

gripui attach supplier-report
gripui go https://portal.example.com/orders
gripui hud

The address is fictional. Use the supplier's actual address. Tell the agent to stop if it reaches sign-in, a change to an order, or a payment. A report with no data because the agent never got past the login is a failed run.

At the sign-in screen, run gripui human-drives. Grip reopens the profile in a visible browser without automation attached. Enter the password and complete 2FA, then run gripui agent-drives and gripui hud. The agent checks that it reached the signed-in page before continuing. Sites can expire sessions or deny automated access; Grip does not bypass those checks.

A full handoff reopens the browser and can lose unsaved form state. If a passkey or phone approval appears in the middle of an unfinished form, stop the agent, approve it in the visible browser or on the device, and have the agent refresh its page view. Do not cycle through a full handoff halfway through that form.

Ask the agent to filter the orders to last month using the controls the portal actually provides. Have it include the date range and source page with each total. If orders span multiple pages, it needs to check the page count and read them all. If a human check interrupts pagination, it should identify the rows it saw and the pages it missed.

Compare the report's totals and row count with the dashboard before using it. A successful browser command does not prove that the site accepted a filter or that every row was captured. Investigate any difference before sending the report on.

The signed-in account's permissions still apply to the agent, even though it never received the password. Use an account with the smallest practical permissions and review the work. Page content shared with the agent may be processed by its AI provider. The profile can retain the session, but the supplier decides when it expires, so check the signed-in state on each run.

Grip is local software and needs a separate AI agent. If untrusted pages must stay off the developer's machine, use a hosted browser. For an unattended test of an application we control, a test account or staging authentication may be simpler.

Grip requires a paid licence. Solo Dev is $79 per year for one developer's local work on up to two of their own machines. Pro Runner is $499 per year for headless, CI and production workflows on up to three machines or runners at a time. Both renew annually until cancelled; AI provider charges are separate.

── more in #ai-agents 4 stories · sorted by recency
── more on @grip 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-can-a-coding-age…] indexed:0 read:3min 2026-12-02 · —