{"slug": "how-can-a-coding-agent-work-behind-my-login-and-2fa", "title": "How can a coding agent work behind my login and 2FA?", "summary": "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.", "body_md": "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.\n\nThis 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.\n\nWith 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.\n\n```\ngripui attach supplier-report\ngripui go https://portal.example.com/orders\ngripui hud\n```\n\nThe 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.\n\nAt 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.\n\nA 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.\n\nAsk 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.\n\nCompare 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.\n\nThe 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.\n\nGrip 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.\n\nGrip 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.", "url": "https://wpnews.pro/news/how-can-a-coding-agent-work-behind-my-login-and-2fa", "canonical_source": "https://dev.to/dosaygo/how-can-a-coding-agent-work-behind-my-login-and-2fa-376p", "published_at": "2026-12-02 12:05:27+00:00", "updated_at": "2026-12-02 12:14:29.733583+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Grip", "Chrome", "Firefox"], "also_reported_by": [], "takeaway": "Hand off to a visible, unattached browser for password and 2FA entry, then return control to the agent and have it confirm the signed-in page before continuing, since the agent never holds the credentials.", "recommendation": {"advice": "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.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/how-can-a-coding-agent-work-behind-my-login-and-2fa", "markdown": "https://wpnews.pro/news/how-can-a-coding-agent-work-behind-my-login-and-2fa.md", "text": "https://wpnews.pro/news/how-can-a-coding-agent-work-behind-my-login-and-2fa.txt", "jsonld": "https://wpnews.pro/news/how-can-a-coding-agent-work-behind-my-login-and-2fa.jsonld"}}