Teams and web access

A server runner can be a shared place for your team. The people you invite open it in a browser, on a computer or a phone, and work like in the app: threads, factories, loops, approvals and their inbox, and, for admins, the team itself. Nobody needs the app or SSH access to the server.

Before you start

  • A server runner with phone access turned on. Web access uses the same HTTPS address (for example https://203-0-113-10.nip.io), so it only works over HTTPS.
  • The environment's name, for example acme-team. People type it when they sign in. It is your server's name in the app, shown as Environment: in Team & web access; the app sets it each time it connects.

People and roles

You, the runner's owner, always have full control from the app. Everyone else is a member with one role:

RoleWhat they can do
AdminEverything: invite and remove people, change roles and PINs, change the governance policy, approve and deny, and everything an Operator can do.
OperatorStart threads, factory runs and loops, reply, stop, change models and modes, comment, assign, delete threads. Can't approve, change the policy or manage people.
ViewerRead only: follow threads and runs, read files and changes, see who's online, read their inbox.

The same governance rules apply to everyone: tool permissions, allowed network, budgets and the audit log.

Invite someone

  1. Connect to the server, open Settings → Runners and find Team & web access on its card.
  2. Under Invite someone, type the person's name, pick a role and press Invite. Names are one word of up to 32 letters, digits, -, _ or . (for example ana or bob.smith); owner and everyone are reserved.
  3. The app shows a Sign-in link and an 8-digit PIN, once. Send them both, ideally the PIN through a different channel than the link. They open the link and sign in on your environment's page with their name and this PIN.

Each person in the list has a role menu, New PIN and Remove. A new PIN replaces the old one and ends their sessions at once. Changing a role or removing someone signs them out everywhere immediately.

Emergency stop and sign out everyone

Admins have two incident actions, on the web app's Team page and in the app under Settings → Runners → Team & web access. Both ask for a typed confirmation and are recorded in the team's audit log.

  • Stop all agents stops every running sandbox on this runner. Threads keep their history and workspace, and the next prompt starts the agent again. A provider call that was already in flight may still be billed.
  • Sign out everyone ends every web session on this runner, so everyone signs in again with their PIN or company account. The owner's app connection, invites and the people themselves are unchanged.

Sign in

Members sign in on the environment's own page: its address followed by /app/, for example https://203-0-113-10.nip.io/app/.

  1. Open the invite link. It opens threadrun.dev/app with the Environment, its Address and Your name filled in. Without the link, type them in.
  2. Click Continue to and the address. The page sends you to your environment's own sign-in page.
  3. Check that your browser's address bar shows your environment's address. Then enter your PIN and click Sign in.

Threadrun.dev never asks for a PIN: you type it only on your environment's page, so it goes only to your own server. You can also skip threadrun.dev and open the environment's address directly.

The browser remembers the environment's name and address for next time, never PINs. A sign-in lasts 30 days, or until you haven't used it for 7 days.

Sign in with your company account

A runner can use an OpenID Connect provider, on its own or alongside PINs: Okta, Microsoft Entra ID, Google Workspace, Keycloak and others.

  1. Connect to the runner, open Settings → Runners, choose its card and open Access.
  2. Under Company sign-in, fill in the provider's Issuer URL (for example https://accounts.google.com or https://login.microsoftonline.com/<tenant>/v2.0), the application's Client ID and Client secret, and the email domains allowed in.
  3. Pick the role a first-time person gets, tick Company account only to turn off PINs for members, and press Save.

The settings apply at once, without restarting the runner. The card shows the callback address to register with the provider: <public address>/app/sso/callback. It needs phone access turned on, because sign-in happens over the runner's public HTTPS address. Use your own domain for that address, so the callback stays the same: see Use your own domain. The client secret is encrypted on the runner with its storage key and is never sent back to the app.

A runner that has not been set up in the app reads these from its environment (an older runner, or one managed by automation). Once the app saves sign-in settings, they replace the provider and domain settings from the environment; the public address still comes from the environment:

VariableMeaning
THREADRUN_OIDC_ISSUERThe provider's issuer address. The discovery document and signing keys are read from it.
THREADRUN_OIDC_CLIENT_IDThe application's client ID at the provider.
THREADRUN_OIDC_CLIENT_SECRETIts client secret.
THREADRUN_PUBLIC_URLThe runner's public HTTPS address, used for the callback. Defaults to THREADRUN_PHONE_URL; it always comes from the environment.
THREADRUN_SSO_DOMAINSComma-separated email domains allowed in, for example acme.com,acme.co.uk. Someone on these domains who is not a member yet is created on their first sign-in.
THREADRUN_SSO_ROLEThe role those people get: viewer (default), operator or admin. Admins can change it per person afterwards.
THREADRUN_SSO_ONLY1 turns off PIN sign-ins for members: the company account is the only way in. The owner and API tokens are unaffected.

The runner verifies the provider's signed ID token (signature, issuer, audience, expiry and nonce), and the browser must present the short-lived cookie from the sign-in it started, so a link cannot sign someone in as another person. The email must be verified. Every sign-in, refusal and created member goes into the team's audit log.

SAML 2.0

Providers that speak SAML 2.0 (for example Okta, Entra ID or ADFS) work too. Export the provider's metadata XML and point the runner at it:

VariableMeaning
THREADRUN_SAML_IDP_METADATA_FILEPath to the identity provider's metadata XML, read when the runner starts.
THREADRUN_SAML_ENTITY_IDThis runner's entity ID at the provider. Defaults to the public address.

Register with the provider: the entity ID above, and the assertion consumer service <public address>/app/saml/acs (HTTP-POST binding). The provider must sign its responses. The runner checks the signature against the certificate in that metadata, the destination, the audience, the validity window and that the response answers the sign-in this browser started. The email comes from an email attribute, or from the name ID when it is an address.

SAML comes with an Enterprise license: the official server image carries it, and the license turns it on. Without that license the provider's sign-in button is not offered and the SAML settings are ignored. Source builds compile it with cargo build --release --features saml, which needs the libxml2, xmlsec1 and OpenSSL development libraries. SAML providers are set only through the environment (the app's Company sign-in form configures OpenID Connect); the THREADRUN_SSO_* settings above apply to both protocols, and THREADRUN_SSO_ONLY turns off PINs for either. See Enterprise.

Analytics

The web app's Analytics page shows what a runner spent and did over the last 7, 30 or 90 days, or all time. A summary strip gives reported cost, turns, tool calls, failures, tokens and threads; below it a dated chart shows cost per day, and a table compares people by cost, turns, calls, failures and their share of the cost. Filter by person or harness, or search for a tool, skill or project; the search narrows the lists, not the totals. Admins see every person; everyone else sees their own numbers. The desktop app has the same dashboard on the active runner's card under Settings → Runners → Analytics.

The page also breaks the work down by what it was done with: the tools called (and how many failed), the skills the sandboxes installed, the models used, the harnesses that ran them (OpenCode, Codex and so on), and the projects the calls went into. Each list shows its top few names, with a bar to compare them and the total behind it, so the page costs the same whether a runner has seen a thousand events or a billion. On a wide window the lists sit side by side; on a narrow one they stack. When there is no data, or the runner is offline, the card says what to change instead of showing zeroes. The arrow button next to Refresh in the desktop card exports the window you are looking at as CSV: one number per row (section,name,metric,value), so a spreadsheet can pivot it.

The analytics database

Analytics live in their own database beside the runner's main one, separate from the logs. It is capped at 200 MB by default, which fits a 4 GB server with room for the sandbox image and the logs. When it reaches the cap the oldest work is dropped first, so the runner keeps a sliding window of recent activity instead of growing forever. Admins can raise or lower the cap on the Analytics page; the change applies at once and trims the window. The file is <THREADRUN_DB>.analytics, and the cap can be set between 20 MB and 4 GB.

Cost counts only what the agents report. Some agents and plans report tokens but no cost: those turns are counted and marked without cost rather than estimated. Scheduled and webhook runs count under Owner until the loop records who created it.

You see this on threadrun.dev when a link gives a new address for an environment this browser already knows. The page shows the address it knew (Before) and the one in the link (This link), and won't continue until you choose.

  • If your admin told you the environment moved, press Use the new address.
  • Otherwise, close the page. Someone may be trying to collect your PIN with a look-alike server.

Sign in from the desktop app

Members can also use the Threadrun app instead of a browser: same threads, factories, loops and inbox, with their role.

  1. Open Settings → Runners and press Join a team.
  2. Paste the invite link. It fills in the Environment, its Address and Your name.
  3. Check the address under the PIN field: your PIN goes only there. Type your PIN and press Sign in.

The team's runner then appears in Run on next to this computer and your own servers. Its card shows who you are there and your role. It also has Open in browser, Sign in again (after your sign-in ends) and Leave (signs this app out and removes the runner from it; your threads stay on the runner).

  • Nothing to install, and no SSH. The app uses the same HTTPS address as the web app. The owner keeps managing the server: members can't update, restart or reconfigure it.
  • The app keeps your sign-in, never your PIN. Sign-ins last as long as on the web. A new PIN, a role change or removal ends them at once; the card then shows Signed out.
  • Addresses are remembered. If a link gives a new address for an environment you joined, the app shows both and asks before sending your PIN.
  • Your logins. Under Your logins here, Send my GitHub login and API keys copies the ones in this app's Settings → Accounts to the runner as your own logins, and Remove my logins deletes them there. The app never sends them on its own. Subscription sign-ins (ChatGPT, GitHub Copilot) aren't sent: sign in to them inside your threads.
  • Previews and copies. Opening a file in the browser and copying a thread's work to this computer (Copy to this Mac or Copy to this PC) work with links made for you. They stop working when you're removed or get a new PIN.
  • Admins invite people and change team settings in the web app.

The runner needs Threadrun 0.10 or newer.

Working together

  • Shared threads. Everyone sees every thread and run on the runner, who started it, its state and who it's assigned to. Messages show who sent them.
  • Comments. Leave a note for the team in any thread, even a stopped or archived one. Agents never see comments, and commenting doesn't wake a sandbox.
  • Mentions and inbox. Write @name in a message or a comment to notify someone, @owner for the runner's owner and @everyone for the whole team. Mentions and assignments land in each person's inbox.
  • Assignment. Make a person responsible for a thread. They get a notice in their inbox.
  • Following. Click Follow in a thread's header to hear about it in your inbox: when the agent finishes a turn, fails or waits for a permission answer, when a factory run finishes or waits for approval, and when someone else writes or comments in it. You follow threads you start, write in, comment on or are assigned automatically. Nothing is sent while you have the thread open. Click Following to stop.
  • Links to a thread. Copy web link (in the app's More actions) and Link (in the web app) copy an address that opens the thread for anyone on the team.
  • Copy from a thread. Chat and Activity text can be selected in the web app, and every reply and Activity line has Copy in the app and in the web app.
  • Share a file with anyone. A share link opens one file and its folder in any browser, with no sign-in, for 7 days.
  • Presence. See who's online, which thread they have open, and who's typing.
  • On a phone. A thread's Reply and Comment switch sits above the message box, next to the current model. Tap the model to change it, or its effort and mode. The ⋯ button holds the thread's other actions, including Delete thread…. The menu opens the sidebar, and Sign out is at its bottom. Return starts a new line; tap Send to send. Controls are thumb-sized, the thread title wraps to two lines, and a Viewer always sees their role and a read-only composer.

Accounts: your own logins

Each member connects their own logins in the web app under Accounts: a GitHub token, their commit name and email, and model API keys (OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, xAI, DeepSeek, Groq). Subscription sign-ins (ChatGPT, GitHub Copilot) are personal: you sign in to them inside your own threads where the agent supports it. Accounts shows which ones you've set and your GitHub account, never their values. Leave a field empty to remove that login.

Threads, factory runs and loops you start use your logins first. When you haven't set one, the team settings decide whether the owner's is used. Each thread notes whose GitHub login it uses when it starts, for example Uses ana's GitHub login (ana-gh) or No GitHub login: connect one in Accounts to push. A login you change reaches your threads the next time they start or wake. Each thread gets only the logins its own agent uses, and your GitHub login only when it works on a GitHub repository.

Without a GitHub login your agents can read public repositories but can't push or open pull requests.

Team settings

Admins choose what members may use of the owner's logins when they have none of their own:

  • Members may use your API keys (usage is billed to you): off by default. When on, members' agents use the owner's API keys for providers they have no key of their own for, billed to the owner. The owner's subscription sign-ins (ChatGPT, GitHub Copilot, OpenCode Zen) are never shared: provider terms allow one person per login. Teams that had the old "owner's model logins" setting on find it off after upgrading (noted in the audit log).
  • Owner's GitHub login: off by default. When on, members without a GitHub login commit and open pull requests as the owner.

A thread keeps the logins of the person who started it. Anyone who can reply in it works with those logins, so share threads with care.

Shared kits

A kit is a named set of skills, agents, commands and MCP servers. Admins share them from the app; everyone picks one by name when starting a thread or for a factory stage. A loop's stages use the kit as it is at each run, so updates to a kit apply to the next run. Members see kit names, skill names and MCP server names, never file contents or MCP settings such as API keys.

Security

  • HTTPS only. Sign-in cookies are only sent over HTTPS, and only to your environment's /app/ pages.
  • PINs. Your server stores only a keyed hash of each PIN. Five wrong PINs in a row lock that person's sign-in until an admin gives them a new PIN. After too many failed sign-ins from one address in 15 minutes, that address must wait.
  • Sign-ins come only from your environment's own page. Threadrun.dev never sees a PIN, and other websites can't sign anyone in or use an open session.
  • Audit. Sign-ins, failed sign-ins (never the PIN) and changes to people are recorded in the team's audit log, which admins can open and verify like any thread's log.
  • Changing your server's storage key (see Security) means everyone needs a new PIN.

Limits

  • Web access needs phone access (HTTPS) on a server runner. It isn't available on This computer.
  • Members can't change the owner's logins, and only the app shows a member's PIN.
  • Removing a login or turning a team setting off reaches running threads the next time they start or wake.