Profiles →Start signed in, from saved cookies and site storage.
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_profile_idVaults →The agent fills logins without seeing them.vault_idOne-time codes →Authenticator codes from a vault, email and SMS codes through your code.totp, otp_toolProxies →Choose the network and country traffic exits from.networkBrowser 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 withbrowser_profile_id or follow your default, not both.
Your default profile
Every user has a default profile per browser flavor (for examplechromium): 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 withbrowser_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.
- 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/Chromeon macOS,~/.config/google-chromeon 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 stopsendsSIGTERM,docker rm -fsendsSIGKILL) 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.
- Docker (any OS)
- Linux Chrome
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.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 inis_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 aspassword, 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 itsvault_id on a browser: inline in an agent’s environments, or on a catalog environment.
- 1Password
- H-hosted
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.
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.
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’stotp 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.
Email, SMS, and confirmation links
The SDKs ship a custom tool for this: the agent callsrequest_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 anOtpRequest:
OtpRequest
Proxies
Use a proxy when a site blocks datacenter IPs or geofences by region, or when a session needs traffic from a specific network. Setnetwork 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.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
network object.