/ 3 min read / Hussien Hussien

Let your browser agent sign-in securely

Your browser agent can open a page, read it, scrape it, and click through a flow. Then it reaches a sign-in page and stops.

So you work around it. Your script types the password from an env var, you save a signed-in profile and hope the session doesn't expire, you type it in yourself, or you paste it into the prompt and now it's in the chat history.

Today we're launching Credentials. Your agent signs in without being handed the password. Store a login as a credential once, Steel signs your agent in automatically, only on the sessions you want, and the values are write-only so not even you can read them back.

How should your browser agent sign in?

Best for trying it out, or the one site your agent needs.

  1. In the Steel dashboard, go to Credentials → New credential, enter the site's origin, username and password, and save. Steel encrypts it and never shows it again.
  2. Start a session with credentials turned on:
    const session = await client.sessions.create({ credentials: {} });
  3. Send your agent to the site's sign-in page. Steel fills the form and submits it.

The Credentials docs have the full example.

What changed since Beta

2.6×

more clean sign-ins

0

wrong fills vs. 30

27 ms

to find the form on a 2,000-field page vs. 1.8 s

Measured on Steel's sign-in test suites. Compared to results in Beta.

In the Beta sent the browser the whole login, and the browser generated one-time codes itself. Now the browser asks for one field at a time, and one-time codes are made on Steel's servers with the seed never leaving them.

Upgrading from the beta? If you use exactOrigin: false, your logins might not fill as you expect. Rebuilding Credentials explains what changed, why it did, and what to do.

Tell us what breaks

Sign-in pages are endlessly creative and we haven't seen them all. Try Credentials on the sites your agent actually uses and tell us what happens: the ones that signin cleanly and especially the ones that don't. Share with us on X or Discord.

We believe the future of browser automation is open source.

Steel Browser is built in the open on GitHub.
Run it yourself, read every line, and help shape what comes next.