Run browser agents on your Companion
A browser agent works with a website the way a person does: it opens the site, signs in, clicks through pages and reads what it needs. You use one for sites that have no usable API, such as a supplier portal, a marketplace seller account or a carrier's tracking site.
When a browser agent is pinned to your Konstera Companion, its browser runs on that PC, in a window you can see.
1. Add a Website login#
A Website login is a connection that holds the sign-in details for one account on one site. You enter them once in the portal; agents never see them.
In the portal sidebar, open Integrations › Connections › New Connection and pick Website login.
| Field | What to enter |
|---|---|
Site address (site_url) | The site's https address, e.g. https://portal.example-supplier.com. Sign-in details are only ever typed on this site and its subdomains, over https |
Extra domains (extra_domains) | Optional. Other sites the sign-in passes through, comma-separated, e.g. login.microsoftonline.com for "Sign in with Microsoft" |
| Username, email or phone | What you type in the site's sign-in box |
| Password | Kept in Konstera's credential store |
| Authenticator key (optional) | Only if the account uses an authenticator app: the text setup key the site shows instead of the QR code. Konstera then generates the 6-digit codes. Leave it blank to enter codes yourself when asked |
| Other sign-in fields (optional) | Only if the site asks for more, e.g. a PIN or customer number. Format: name=value; name=value, for example pin=1234; customer_id=AB12. The agent's documentation tells you which names it uses |
Create one Website login per account. If two agents use the same account, they can share the connection.
2. Grant it to the agent#
Open the agent (sidebar Agents › the agent) › Bindings › Add connection, and choose the Website login. An agent can only open a browser on a connection it has been granted, and you can remove the grant at any time.
3. Pin the agent to your Companion#
Open your account menu › Settings › Companions, choose the Companion, then Pin an agent, pick the agent and click Pin agent.
- An agent is pinned to one Companion at a time. Pinning it to another Companion moves it.
- To stop an agent using this PC, click Unpin next to it.
- The Companion app's Agents tab lists the agents pinned to it.
From now on, whenever the agent runs (on a schedule, a trigger or from the portal) and needs a browser, the browser opens on the pinned Companion's PC. If that Companion is not online, the run stops with an offline message rather than waiting.
The first sign-in and hand-offs#
The first time an agent uses a Website login, the browser on the Companion PC has never seen the site. The agent goes to the site's sign-in page and Konstera types the username and password into it.
Many sites then ask for more:
| The site asks for | What happens |
|---|---|
| A code from an authenticator app | If you set an Authenticator key, Konstera types the current code. Otherwise the agent hands off to a person |
| A code by SMS or email | The agent hands off to a person |
| A passkey, security key or "approve on your phone" | The agent hands off to a person |
| A CAPTCHA, "unusual activity" check, or a page the agent doesn't recognise | The agent hands off to a person |
A hand-off means the agent pauses and waits, with the browser window open on the Companion PC, for a person to finish that step in the window: type the code, approve on the phone, solve the CAPTCHA. When the page the agent is waiting for appears (for example the account's home page), the agent carries on by itself. If nobody completes the step before the agent's time limit, the run fails and says what it was waiting for.
After the first sign-in, the browser keeps the site's session in a profile on the PC (see below), as your own browser would. Later runs usually go straight in with no sign-in at all, until the site itself ends the session. Then the agent signs in again and, if the site asks, hands off again.
How secrets are handled#
- The password, authenticator key and other sign-in fields are stored in Konstera's credential store, on the Website login.
- The agent never receives them. Agent code asks Konstera to "type the password into this field"; Konstera types the value itself. Secret values are kept out of the agent's code, prompts, logs and results.
- Konstera only types a secret on the site you entered (or an extra domain you listed), over https. If the page is anywhere else, it refuses.
- Secrets are never stored on the Companion. For each field Konstera sends the value to the Companion over the encrypted, signed connection, and the Companion types it into the page. It doesn't write it to disk or to its logs.
Where browser profiles are stored on the PC#
Each Website login gets its own browser profile on the Companion PC, in:
%LOCALAPPDATA%\Konstera\browser-profiles
There is one folder per connection. The folder names are derived codes
(they start with kp_) rather than site or account names.
- A profile holds live sign-ins (cookies and site data). Treat the folder like a password store: limit who can sign in to the PC, and don't copy it elsewhere.
- To force a fresh sign-in, quit the Companion from the tray and
delete the folder (or all of
browser-profiles). The next run starts with an empty profile and signs in again, with hand-offs as needed. - Profiles are not yet encrypted beyond the protection Windows gives your user folder.