How can a coding agent work behind my login and 2FA?
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 putti
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.
Set the boundary before sign-in
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.
Make the report auditable
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.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.