Can AI agents log in to websites? What works, what’s allowed and what it costs
An agent signs in the way your browser does, by filling in the form, passing any code and keeping the session cookie. One-time codes, bot checks and expiring sessions decide how far it gets, and the site’s terms and the law decide whether it should.
- Your agent, your accountChatGPT’s cloud browser, ClaudeYouapprove the sign-inYour agentacts as youYour account
- Your code, a saved sessionBrowserbase, Browser UseYour codereuses the cookieCloud browseruntil it expiresYour account
- A customer of its ownAn Obsession agentYour teamlooks up by APIObsession agentsigns up as itselfIts own account
All 3 reach pages behind Larkfield’s login. The third holds an account of its own, so nobody lends it a password. Larkfield is an invented company.
Yes, AI agents can log in to websites: ChatGPT’s cloud browser, Claude’s computer use, Browserbase and Browser Use fill in sign-in forms and keep the session cookie, though one-time codes and bot checks still need a person. Whether an agent may log in turns on the site’s terms and on computer misuse law, which US courts still apply to agents case by case. Obsession keeps each company’s emails, texts, member prices and offers behind the login, dated with a screenshot, so agents look them up by API or MCP (the standard way AI agents call tools) without anyone’s password.
ComparedWays to give an agent access behind a loginGo straight to the comparisonOn this page
- How AI agents log in to websites today
- How an agent stays logged in: cookies, tokens and codes
- Why bot checks and CAPTCHAs stop agents
- Is it legal for an AI agent to log in to a website?
- What it costs to run an agent that logs in
- Ways to give an agent access behind a loginCompared
- The other route: a customer of its own
- Questions about AI agents and logins
Yes, AI agents can log in to websites. ChatGPT’s cloud browser, Claude’s computer use, Browserbase and Browser Use fill in sign-in forms, keep the session cookie the site sets and come back later without signing in again. A one-time code, a bot check or an expired session still sends the run back to a person.
Logging in is a check that happens once, at the start. The site checks a password, and often a code, then stores a small token called a session cookie in the browser. The browser sends that cookie with every later request, so the site knows who is asking. The internet standard for cookies describes them as a way for servers to “maintain a stateful session over the mostly stateless HTTP protocol” (RFC 6265).
An agent that logs in therefore has to pass the sign-in, keep the cookie and cope when the site asks again. The products differ on each step, and the site’s terms and the law decide whether the agent should be there at all.
Most agents act as a person inside that person’s own account. Another kind holds an account of its own at the company, as a customer that says it’s an AI. The web behind the login explains what each kind can reach, and the guide to how teams scrape data behind a login covers the code.
How AI agents log in to websites today
ChatGPT’s cloud browser
OpenAI’s cloud browser gives ChatGPT Work “its own browser on a separate computer in the cloud” (OpenAI Help Center). It reads pages, clicks buttons and fills in forms on public and signed-in websites. When a task reaches a sign-in page, it pauses and asks the person to sign in through a secure form, including any two-factor code. OpenAI says the username and password entered there go straight to the remote browser, are “not visible to the model”, and aren’t stored by ChatGPT.
The session then persists for later tasks until it expires. The cloud browser keeps its own cookies and never uses the person’s own browser, saved passwords or existing sign-ins. By default it asks before visiting a new website, and it asks for confirmation before a booking, a payment or another step that is hard to reverse. It runs on paid ChatGPT plans, excluding Free and Go.
Claude’s computer use
Anthropic’s computer use gives Claude a toolset of 17 actions, such as taking a screenshot, clicking and typing, and the developer runs each action on a machine they control (Anthropic’s docs). Claude sees the screen through screenshots and chooses the next click, so it signs in the way a person at that desktop would. For tasks that stay inside webpages, Anthropic points developers to its browser use tool.
Anthropic’s documentation warns that Claude may follow instructions it finds on a webpage, and tells developers to isolate it from sensitive data and actions. It advises against tasks that need “sensitive user information without human oversight”. For passwords, 1Password announced an integration with Claude on 16 July 2026. A person approves the logins a task needs with one biometric prompt, and “the password and the MFA one-time code are never accessible to the model” (1Password).
Browserbase, Browser Use and Firecrawl
Browserbase runs browsers in the cloud for code to drive. Its Contexts keep cookies, localStorage and IndexedDB between sessions, encrypted at rest. A later session that loads the same Context starts signed in (Browserbase docs). Its documentation warns that sites can still force a logout, for example after a password change or suspicious activity, and that 2 sessions sharing one Context at once can trigger one.
Browser Use keeps logins in profiles: “A profile persists cookies, local storage, and login state across browsers” (Browser Use docs). For two-factor prompts, its guide names “a saved profile or a human checkpoint” as the most reliable options (Browser Use docs). At a checkpoint, a person types the code into a live view of the browser.
Firecrawl turns pages into clean text for AI models. Its Interact feature can “sign in once, then read the pages that only appear after authentication”, and saves cookies and localStorage to a named profile for later scrapes (Firecrawl docs).
| Product | How it signs in | How it stays signed in | Who handles codes |
|---|---|---|---|
| ChatGPT’s cloud browser | The person, in a secure form | Session kept until it expires | The person |
| Claude computer use | Screenshots, clicks and typing | Whatever your machine keeps | Your setup |
| Browserbase | Your code drives a cloud browser | Contexts, encrypted at rest | Your code or a person |
| Browser Use | The agent, or a person in a live view | Profiles | A person at a checkpoint |
| Firecrawl Interact | A prompt or Playwright code | Named profiles | Not described |
How an agent stays logged in: cookies, tokens and codes
The session cookie is the agent’s pass after sign-in. RFC 6265 lets a site set its lifetime with Max-Age or Expires, and notes that browsers often evict cookies sooner. An HttpOnly cookie is hidden from scripts on the page, and an agent driving a real browser never needs to read it, because the browser attaches it to every request by itself.
The same standard names the main risk of a logged-in agent. It calls cookies “a form of ambient authority”, because a browser attaches them even when another site triggered the request. An agent that reads a page carrying hidden instructions still holds the user’s session when it acts. OpenAI and Anthropic call those hidden instructions prompt injection. OpenAI tests its cloud browser against them, and Anthropic scans computer use screenshots for them.
OAuth, the standard for giving an app access to an account without handing over the password, exists because sharing passwords goes wrong. Its RFC lists how (RFC 6749). The app has to store the password, gains “overly broad access”, can be cut off only by changing the password, and exposes it if the app is breached. OAuth replaces the password with an access token limited in scope and lifetime. Where a site offers only a sign-in form, an agent is back to typing a password, which is why OpenAI and 1Password route it through channels the model can’t read.
Multi-factor authentication (MFA) asks for a second proof after the password, usually a one-time code. An authenticator app makes a time-based code (TOTP) from a secret shared with the site, and RFC 6238 recommends a new code every 30 seconds (RFC 6238). An agent can make that code itself only if it holds the secret, and Browser Use’s guide says never to put passwords or TOTP secrets in a prompt. A code sent by text needs a phone number that receives it, or a person who reads it out.
NIST’s digital identity guidelines explain why a code can be passed to an agent and a passkey can’t. Codes a person types are not phishing-resistant, because “the manual entry does not bind the authenticator output to the specific session being authenticated” (NIST SP 800-63B-4). The same property lets a person read a code to an agent. WebAuthn, the web standard that passkeys use, ties each sign-in to the site’s domain name, so there is no code to pass on. The person’s device or password manager has to approve every passkey sign-in.
| What the site checks | What the agent holds | How long it lasts | Where a run stops |
|---|---|---|---|
| Password | Typed in a secure form or filled by a password manager | Until it changes | A new device check |
| Session cookie | Saved in the browser profile | Until it expires or the site signs it out | Expiry or a forced logout |
| OAuth access token | A scoped token, no password | Its set lifetime | Sites that offer only a form |
| Authenticator code | The shared secret, or a person reads the code | 30 seconds each | No secret and nobody on hand |
| Text message code | A number that receives texts | Set by the site | No phone and nobody on hand |
| Passkey | Nothing; the person’s device approves | Until removed | Every sign-in needs the person |
| Bot check or CAPTCHA | Nothing it can hold | Each visit | The step itself |
larkfield.example · an agent’s session
- Day 1, 09:00Agent fills in email and passwordFrom a secure form or a password manager
- Day 1, 09:00Site texts a 6-digit codeA person reads it out
- Day 1, 09:01Session cookie set for 30 daysSaved with the browser profile
- Day 4, 07:00Agent opens the account pageCookie sent, no sign-in needed
- Day 9, 07:00New device check asks for a codeThe run waits for a person
- Day 31, 07:00Session expiredBack to the sign-in form
- Day 31, 07:01Bot check on the sign-in pageThe run stops at that step
Every pause waits for a person. Larkfield is an invented company.
Why bot checks and CAPTCHAs stop agents
A CAPTCHA, a “Completely Automated Public Turing Test, to Tell Computers and Humans Apart”, exists to tell software from people (W3C). An agent is exactly what it is built to catch. The same W3C note says sites keep these checks even for signed-in users, because “even authenticated login provides inadequate protection from malicious actors”.
Many checks now run without a puzzle. The note describes Google’s reCAPTCHA v3, released in 2018, which returns a score for how likely a visitor is to be human, without “the need to interrupt users with challenges at all”. Where the score is unclear, the note quotes Google advising sites to add a second challenge, such as two-factor authentication.
OpenAI’s help page says some websites restrict automated browser agents, and that “each website ultimately decides whether to allow cloud browser traffic”. Some browser providers list ways past these checks. Browserbase’s paid plans list automatic CAPTCHA solving and stealth modes (Browserbase pricing). Browser Use lists CAPTCHA solving as included, and routes traffic through home IP addresses rather than data centres (Browser Use pricing). Whether getting past a site’s check is allowed depends on that site’s terms and on the law where each side is.
The cooperative route is for the agent to say who runs it. Web Bot Auth, a signature that tells a website which company’s agent is visiting, does that. Each request is signed with a private key under the HTTP Message Signatures standard (RFC 9421). The site checks the signature against a public key the agent’s operator publishes (Cloudflare docs). OpenAI’s cloud browser sends a Signature-Agent header naming chatgpt.com with each request and publishes its keys at a fixed address on chatgpt.com (OpenAI Help Center). A site, or the network that serves its pages, can then verify the traffic and allow it.
A signature identifies the company running the agent. The person behind it stays unknown to the site. The IETF working group writing the Web Bot Auth standard says it “will focus on authentication of the agent; authentication of the end user is out-of-scope” (IETF). A signed agent still has to log in like anyone else, and a site can recognise it and still refuse it. Site owners choosing what to allow will find the checks in agent ready website.
Is it legal for an AI agent to log in to a website?
Whether an agent may log in usually turns on the site’s terms, on whether computer misuse law treats the access as authorised, and on whose account it is. Each point here names the place it applies. It is general information, not legal advice.
The site’s terms come with the account
Opening an account usually means accepting the site’s terms, and terms can set rules on automated access. An agent signed in to that account acts under them. In August 2026 the US Court of Appeals for the Ninth Circuit lifted an injunction against Perplexity’s shopping agent. It noted that its ruling “does not impair Amazon’s ability to regulate access to Amazon.com via private terms of service for its users” (Amazon v. Perplexity, Ninth Circuit).
US: the Computer Fraud and Abuse Act
The Computer Fraud and Abuse Act (CFAA) is the main US federal law on computer access. It covers anyone who “intentionally accesses a computer without authorization or exceeds authorized access” and obtains information from a protected computer, and it lets people who suffer loss sue (18 U.S.C. §1030).
In Van Buren v. United States in 2021, the Supreme Court read the law as a “gates-up-or-down inquiry” (Supreme Court). A person either can or cannot access a computer system, or a part of it. The Court left open whether the gate has to be technical, or can also be set by contracts and policies.
A login is the clearest gate. In hiQ Labs v. LinkedIn in 2022, the Ninth Circuit concluded that “the concept of ‘without authorization’ does not apply to public websites”. It quoted the view that “an authentication requirement, such as a password gate, is needed to create the necessary barrier that divides open spaces from closed spaces on the Web” (hiQ v. LinkedIn, Ninth Circuit). It added that parts of a public site that require authorisation are different.
The same opinion recalls an earlier case that looks much like a password-holding agent today. Power Ventures collected Facebook users’ data after the users gave it their Facebook usernames and passwords. Facebook sent Power Ventures an individual cease-and-desist letter, Power Ventures kept working around Facebook’s IP blocks, and the court held that its continued access was “without authorization”.
The first appeal about a shopping agent came in 2026. Amazon sued Perplexity over the AI assistant in its Comet browser, which shops on Amazon.com at the user’s direction. The court said the core of the dispute was Perplexity’s decision not to use a user-agent string “that would communicate that the user has activated an AI agent”. A user-agent string is the line of text a browser sends to say what it is. After a hearing in March 2026, a district court granted Amazon a preliminary injunction.
On 4 August 2026 the Ninth Circuit vacated that injunction. On the facts before it, “It is the user who ‘accesses’ Amazon’s computers, with the help of the Assistant”, so Amazon was unlikely to show that Perplexity had accessed them. The court left open whether a developer’s control over an agent could amount to access on other facts. It did not reach the rest of the CFAA claim, and it sent the case back to the district court.
We do not establish a new legal regime governing agentic AI.
UK: the Computer Misuse Act
In the UK, section 1 of the Computer Misuse Act 1990 makes it an offence to use a computer to secure access the person knows is unauthorised (legislation.gov.uk). Section 17(5) treats access as unauthorised where the person is not entitled to control it and has no consent from someone who is (legislation.gov.uk). Whether an account holder’s permission is enough, once the site itself has said no, is a question for a lawyer.
| Where | Rule | What it means for the agent |
|---|---|---|
| Every site | Its terms of service | The account’s rules apply to it |
| US federal | CFAA, 18 U.S.C. §1030(a)(2) | No access “without authorization” |
| US Supreme Court | Van Buren, 2021 | A login is a gate, up or down |
| Ninth Circuit | Power Ventures, as hiQ recalls it | Stop once the site revokes access |
| Ninth Circuit | Amazon v. Perplexity, 2026 | On those facts, the user accessed |
| UK | Computer Misuse Act, ss.1 and 17(5) | Consent from whoever controls access |
When to ask a lawyer
Ask a lawyer where your company and the site operate before any of these:
- Someone else’s account. A client’s or a colleague’s login, even with their permission, where the site’s terms limit who may use it.
- A site that has said no. A cease-and-desist letter, a block or a changed setting, after which continued access looks like Power Ventures.
- Getting past a bot check. Solving or avoiding a CAPTCHA or another check the site put in front of a step.
- Changing how the agent identifies itself. Altering its user-agent string, or anything else that tells a site what it is, after a site has blocked it.
- Other people’s data. Accounts that hold customers’ or employees’ details, where data protection law adds duties of its own.
- More than one country. An agent run from one country on a site in another, where both sets of rules can apply.
What it costs to run an agent that logs in
Most of the bill is the model reading screenshots, step after step. Anthropic’s docs say declaring the computer use tools adds about 4,500 input tokens to each request, and each screenshot is billed as an image. An image costs one token per 28 by 28 pixel patch, so a 1280 × 800 screenshot is about 1,334 tokens (Anthropic’s docs).
Take a run that opens a saved session, checks 3 pages and reads an offer in 25 steps. Say each step sends about 12,500 tokens and returns 250. The tokens sent cover the tools, the 3 latest screenshots and the instructions and history so far. On Claude Sonnet 5.5, at $2 per million input tokens and $10 per million output (Anthropic pricing), that is about $0.69 of model time. Five minutes of Browserbase at its $0.12 hourly rate adds about a cent. On Claude Haiku 5.5, at $0.10 and $0.50 per million, the same run costs about 3 cents, if it completes the task as reliably.
- Tokens in, 12,500 a step for 25 stepsClaude Sonnet 5.5, $2 per million
- $0.63
- Tokens out, 250 a step for 25 steps$10 per million
- $0.06
- 5 minutes of cloud browserBrowserbase, $0.12 an hour
- $0.01
- One runExample inputs, before retries
- $0.70
At volume the run price compounds. Checking 10,000 companies a week at $0.70 a run is about $7,000 a week, or about $364,000 a year, before retries. At 1,000 companies it is about $700 a week, and at 100 about $70. Prompt caching cuts the repeated part of each request, and dropping old screenshots from the history cuts more.
The larger cost is people and upkeep. Every one-time code, new-device check and expired session pauses a run until someone steps in, and Browserbase’s docs tell developers to detect logged-out states and sign in again. Across thousands of accounts, those pauses become a staffing question as much as a token bill.
Ways to give an agent access behind a login
We make Obsession, so every other option is described from its provider’s own pages as of 11 November 2026.
| Option | What it does well | Price | Where it stops | Best for |
|---|---|---|---|---|
| By handa person signs in | Reads every screen, passes every check | Staff time per check | One account and one company at a time | A few accounts, checked now and then |
| ChatGPT’s cloud browserin ChatGPT Work | Secure sign-in form, session kept between tasks | Paid ChatGPT plans, excluding Free and Go | Sites that block automated browsers | A person’s own accounts |
| Claude computer useAnthropic’s API | Screenshots, mouse and keyboard on your machine | Claude Sonnet 5.5: $2 / $10 per million tokensTools: about 4,500 tokens a request | You run and isolate the machine | Teams building their own agent |
| Browserbasehosted browsers | Contexts keep cookies and storage, encrypted at rest | Developer: $20 a month, 100 hoursThen $0.12 an hour | Forced logouts; one session per Context | Many browsers run from code |
| Browser Usehosted browsers and agents | Profiles keep cookies, local storage and login state | $0.02 a browser hourAgents from $0.006 a task | A person at the 2FA screen | High-volume browser runs |
| ObsessionOurscompetitor tracking, trial teardown, the API and MCP | Its own account at each company, every email, text, price and offer dated | Early access, onboarding teams now. Priced per call or per company watched | Never gets round a CAPTCHA or a bot block, never invents identity details | What many companies show their customers, over months |
For what companies show their customers, across many companies and for months, use Obsession. It holds its own account at each company and returns every email, text, price and offer dated with a screenshot. For acting inside a person’s own account, use ChatGPT’s cloud browser, or Claude with a password manager that keeps the password from the model. For many browsers driven by your own code, Browserbase and Browser Use keep sessions in Contexts and profiles. For a handful of accounts checked now and then, a person signing in is enough.
The other route: a customer of its own
Obsession collects what companies show only to customers, step by step: their screens, emails and texts, member prices, trial limits, quotes and cancel offers, each dated with a screenshot. Teams and AI agents look up any company through the API or MCP, and a company not yet covered is added on request.
Each Obsession agent signs up with its own inbox, phone number and browser, says it’s an AI when it talks to a person, and keeps the account open for months (Obsession agents). The account is its own, so nobody lends it a password and no colleague waits up for a code. Every email and text the company sends lands in its inbox, dated, for as long as anyone follows that company.
Search APIs give agents what companies publish. Exa describes itself as searching “the largest index of public web and private information” (Exa), and the guide to web search APIs for AI agents compares it with the rest. Obsession gives agents what a company shows only to its customers, behind the login, dated, and kept for as long as anyone follows the company. Agents call both: search for what a company publishes, and Obsession for what it sends and shows its customers.
Developers reach it with 5 verbs (lookup, facts, evidence, index and notify) over the API, MCP and the TypeScript and Python SDKs. Each new fact can post to a webhook, an address in your app that receives it the moment it lands (the API and MCP). Obsession’s agents have run 1,500 sign-ups, baskets and checkouts at real companies, and counting. If your agents need what companies show their customers behind the login, at any company you name, use Obsession.
Questions about AI agents and logins
Yes. ChatGPT’s cloud browser, Claude’s computer use, Browserbase and Browser Use can fill in a sign-in form and keep the session cookie, so later visits skip the form. One-time codes, bot checks and expired sessions still hand the run back to a person.
Yes, where the sign-up asks only for what the agent can receive, such as an email address for the confirmation link or a phone number for a text. Anthropic says Claude’s ability to create accounts on social media platforms is limited. An identity check or a bot check in front of the step can end the sign-up there.
What an Obsession agent doesThrough the tools they are given. A search API returns pages from an index, a browser tool opens pages and clicks through them, and a signed-in browser reaches what an account can see. An agent with none of these answers from what its model learned in training.
Web search APIs for AI agentsIt is safer when the model never sees it. OpenAI’s cloud browser takes credentials in a secure form that goes straight to the remote browser. 1Password’s integration with Claude fills logins after a biometric approval, without showing the password or code to the model. OpenAI’s help page also tells people never to paste passwords, security codes or payment details into the conversation.
With help. An agent can enter a code a person reads out, or make an authenticator code if it holds the secret, and a saved session skips the prompt until the cookie expires. A passkey ties the sign-in to the site’s domain and the person’s device, so the person or their password manager has to approve it.
It depends on the site’s terms and the law where each side is. In the US, the Ninth Circuit held in August 2026 that, on the facts in Amazon v. Perplexity, the user accessed Amazon with the agent’s help, and said sites can still set rules in their terms. In the UK, access is unauthorised without consent from whoever is entitled to control it. This is general information, not legal advice.
From what it says about itself, and from how it behaves. A user-agent string names the browser or agent, and Web Bot Auth adds a cryptographic signature the site checks against keys the operator publishes. OpenAI’s cloud browser signs its requests this way. Sites also score each visit and show a CAPTCHA to visitors they can’t place.
Agent ready websiteSources
In the order the article cites them. Every link was checked on 11 Nov 2026.
- RFC 6265: HTTP State Management Mechanism
- Using cloud browser in ChatGPT
- Computer use tool
- 1Password and Anthropic bring secure credential access to Claude
- Contexts
- Profiles
- 2FA
- Interact
- RFC 6749: The OAuth 2.0 Authorization Framework
- RFC 6238: TOTP, Time-Based One-Time Password Algorithm
- SP 800-63B-4: Digital Identity Guidelines, Authentication and Authenticator Management
- Inaccessibility of CAPTCHA: alternatives to visual Turing tests on the web
- Pricing
- Pricing
- RFC 9421: HTTP Message Signatures
- Web Bot Auth
- ChatGPT Work’s cloud browser allowlisting
- Web Bot Auth (webbotauth) working group charter
- Amazon.com Services, LLC v. Perplexity AI, Inc., No. 26-1444, opinion
- 18 U.S.C. §1030: fraud and related activity in connection with computers
- Van Buren v. United States, No. 19-783, opinion
- hiQ Labs, Inc. v. LinkedIn Corp., No. 17-16783, opinion on remand
- Computer Misuse Act 1990, section 1
- Computer Misuse Act 1990, section 17
- Vision: image limits and costs
- Pricing
- Exa: search API for AI agents