Skip to main content
Profiles, vaults, and proxies are fields on a browser, inline in an agent or on a catalog environment. One-time codes from an inbox come through a tool you pass to the session. Accessibility mode takes none of these, and only visual mode fills from a vault.

Browser profiles

A browser profile is a cloud browser’s saved state: cookies, local storage, and session data. Load one and the session starts signed in. Name a profile with browser_profile_id or follow your default, not both.

Your default profile

Every user has a default profile per browser flavor (for example chromium): a browser that remembers you across sessions. You upload nothing and track no IDs.
  • If you have no default yet, the session creates an empty profile and marks it as your default when it starts. Sign in to your sites once (for example in the session’s Agent View) and the state carries forward. Delete it and the next default-profile session starts from a fresh empty default.
  • Each session writes its final state back when it ends, under the one-writer rule.

Save state back

A profile named with browser_profile_id is read-only by default: the session discards whatever it changes (new cookies, refreshed tokens, dismissed banners), so its logins age out. Set persist_browser_profile: true to write the final state back when the session ends. Sessions that follow your default profile persist without the flag.
One session writes to a profile at a time. The first session to persist a profile, by flag or as a default-profile session, holds its write lock until it ends. Later sessions asking to persist still start, but read-only, instead of failing. Any number of sessions can load a profile read-only in parallel.
  • Last write wins: the session’s final state replaces the stored state.
  • Request persistence when creating the session, not when attaching to one.
  • If the write-back fails, the session still stops cleanly and the profile keeps its previous state.

Upload your own profile

Upload a profile when you want to bring logins built outside H. You build a Chrome user-data directory, zip it, and upload it. H keeps only its sign-in data: cookies and site storage (Local Storage, Session Storage, IndexedDB). Extensions, saved passwords and preferences are dropped.

Creating a profile

Build a dedicated profile, on Linux, on the runner’s Chromium:
  • Never upload your personal Chrome directory (~/Library/Application Support/Google/Chrome on macOS, ~/.config/google-chrome on Linux). It holds every password, token, and history entry you have. Treat the archive as a secret.
  • Cookies only carry over from Linux builds. On macOS and Windows, Chrome always encrypts cookies with the OS keychain (Keychain or DPAPI), so the profile loads logged out, with site storage only. No flag changes that: build in Docker.
  • Sessions run Chromium 150.0.7871.124. A profile built on a newer version does not load.
  • Shut Chromium down cleanly. It writes cookies to disk only on a clean shutdown or an occasional autosave. Killing it (docker stop sends SIGTERM, docker rm -f sends SIGKILL) can lose the logins you just made.
--password-store=basic makes cookies portable: Chrome encrypts them with a built-in key that the session runner also uses. Without it, the agent starts logged out.
You need Docker. The image tag is pinned to the runner’s Chromium, so do not use :latest.

Uploading a profile

1

Initiate the upload

POST /initiate-upload returns a profile_id, a presigned upload_url, and the upload_fields to send with the file.
2

Upload the archive to storage

POST the .zip to upload_url as multipart/form-data, with every entry of upload_fields, unmodified. The archive must be application/zip, at most 1 GB. The URL and fields expire after upload_expires_in seconds, so upload right away.
3

Complete the upload

POST /{profile_id}/complete-upload with name, browser_name, and browser_version within 1 day, or the pending upload is deleted. The platform verifies the archive and creates the profile.
Load it by setting browser_profile_id on the browser. List, retrieve, or delete your profiles with the browser profile endpoints.

Choose your own default

Promote a profile you curated (for example one you uploaded). You can only mark profiles you created yourself. Profile objects report their status in is_default.

Vaults

A vault holds the logins an agent signs in with, one item per login: the sites it applies to and up to five fields. The agent asks for a field such as password, the session picks the item from the page URL, and types the value into the page. The agent never sees it. Vaults work on cloud browsers only, since secrets never leave H’s infrastructure, and in visual mode, through the fill_secret_at action. To start already signed in instead, use a browser profile.

Set up a vault

Create the vault, then set its vault_id on a browser: inline in an agent’s environments, or on a catalog environment.
The secrets stay in a 1Password vault you own. When the agent fills a field, H fetches the item from 1Password and decrypts it. Pass a service account token for that vault: H validates it against 1Password and never returns it.
List, update, delete, rotate a 1Password token, or health-check a vault with the vault endpoints, and manage an H-hosted vault’s items with the item endpoints.

What an item holds

An item carries up to five fields, each a value the agent can fill: username, password, email, totp, and api_key. For totp, fill_secret_at types the current code, never the secret. In an H-hosted vault, set them in the item’s values. For totp, store the authenticator secret (base32, or an otpauth://totp/ URI). In 1Password, each one maps to a field on the item. Other fields are ignored:

How secrets are matched

Agents never name an item. The page URL picks one, from the sites stored on each item (a 1Password item’s websites, or an H-hosted item’s urls), and the agent can fill only that item’s fields:
  • The page host must equal a stored site’s host, or be a subdomain of it.
  • The closest host wins: an exact host beats a parent domain, and a deeper subdomain beats a shallower one.
  • Among equal hosts, the stored path sharing the most leading segments with the page wins, then the one with the fewest segments the page lacks. A path is never required.
  • In an H-hosted vault, items still tied resolve to the most recently created one. Store one item per login to avoid ties.
For a page at test.hcompany.ai/app/login:

One-time codes

How the agent gets a one-time code depends on where the code shows up.

Authenticator apps

Store the authenticator’s TOTP secret in 1Password, or as an H-hosted item’s totp value, then set up the vault. On a matching page, the session generates the current code and fill_secret_at with totp types it in. The agent never sees the code. The SDKs ship a custom tool for this: the agent calls request_otp, your process finds the code or link, and the session continues with that single value. Pass otp_tool (otpTool in TypeScript) in tools, with a handler for where the code arrives:

Read the code from email

The IMAP handler runs in your process. It polls unread mail (newest first), extracts a code or confirmation link, marks that message read so a retry can’t reuse a stale code, and returns only that value. IMAP credentials never leave your machine, and the agent never sees mailbox contents, subjects, or senders. For Gmail or Google Workspace, use an app password. Every option, with its default:

What the agent sends

Your handler receives the tool’s fixed input schema as an OtpRequest:
OtpRequest
Return a non-empty string. An empty value fails as a tool error, so the agent can retry or stop cleanly.

Proxies

Use a proxy when a site blocks datacenter IPs or geofences by region, or when a session needs traffic from a specific network. Set network to exactly one of managed_proxy or proxy_url.

Managed proxy

H provisions the proxy. You pick pool, country, and stickiness. H resolves credentials server-side, so they never appear in your requests, session data, or logs.
Residential addresses come from real ISPs, best for sites that block datacenter ranges. A pool not available in your environment fails with 400, an invalid country with 422. sticky applies to residential pools only: datacenter endpoints rotate on their own.

Bring your own proxy

For a proxy you already operate, set its URL with credentials inline. HTTP, HTTPS, and SOCKS schemes work. Treat the value as a secret.
Bring your own
To reuse a proxied browser across agents, create it in your catalog with the same network object.