Secrets & egress

Company and per-agent secrets, key naming, host allowlists, and the placeholder architecture that keeps keys off the model.

Company and agent secretslink

You can store secrets at two scopes: company-wide (available to every agent on your account) and per-agent (specific to one). Both are fully customer-editable — you set the key name and value, and can update or delete them at any time.

The company secrets page, the agent's resolved secrets list, and the provider list on Model configuration all treat a secret scheduled for deletion as not yet configured. Viewing a list does not restore them or cancel deletion. Saving into a scope that is still being deleted remains unavailable; contact support if this persists.

Naming your keyslink

A secret key name must start with an uppercase letter, followed by any mix of uppercase letters, digits, underscores, or hyphens — the same shape as an environment variable, like MY_SERVICE_API_KEY. Names that don't match are rejected before they're ever written.

Note

Some key names are reserved by the platform — saving one returns a validation error rather than overwriting anything. Enterprise plans that bring their own provider credentials are the one exception to this; see Model configuration.

The trust architecture: placeholders, not keyslink

Your agent never sees the raw value of a secret you store for it. It only ever holds a placeholder. When the agent makes a request to the specific host that key is bound to, the real value is substituted in transit — the agent itself can use the key without ever being able to read it.

This is the same structural principle behind the platform's broader security posture: keys are useful to the agent, but never legible to it, so a compromised or manipulated agent has nothing worth exfiltrating.

Host allowlists for your own integrationslink

Beyond the secrets the platform wires up for you (model providers, messaging channels), you can register your own secrets for integrations you build yourself. Give each one a list of allowed hosts telling the platform which destination(s) that key may travel to. A secret with allowed hosts is protected: your agent only ever sees a placeholder, and the real value is sent only to those hosts. A secret with no allowed hosts is not protected, so your agent can read the value directly.

Setting and editing hostslink

  • When you add a secret, fill in the optional Allowed hosts field.
  • To change hosts later, use Edit hosts on the secret's row. On an agent's page it appears on that agent's own secrets. On the organization secrets page it appears on every secret you added (not on platform-managed ones).
  • Removing every host and saving clears the restriction, so the secret is unprotected again.
  • An agent's hosts for a key replace the organization's hosts for that key. If you clear an agent's own hosts for a key the organization also has hosts for, that agent falls back to the organization's hosts. Otherwise it can read the value.

Each secret row shows its status:

  • Protected, listing the hosts the value is sent to, means your agent only sees a placeholder. A secret using organization hosts adds "Set by your organization".
  • Protected, hosts are managed by the platform appears on platform-managed secrets, whose hosts you can't edit.
  • Can read this value. Add hosts to protect it means the secret has no allowed hosts.
  • won't match flags a stored host that no longer passes the rules below. Edit the hosts to fix it.

Host ruleslink

  • Enter a host name only, like api.example.com. Each part of the name may use only letters, digits and hyphens, so underscores are rejected.
  • Case and one trailing dot are fixed for you, and duplicates are merged.
  • *.example.com covers example.com and every subdomain. A wildcard is accepted only at the start.
  • Not accepted: a scheme (https://), a path, a port, spaces, an IP address, a wildcard anywhere else, or a single-word name with no dot.
  • A secret can have up to 50 hosts.

Warning

If a request goes to a host that isn't on that key's allowlist, the platform does not fill in the real value. The literal placeholder ships instead, and the destination almost always rejects it (a 401 or an "invalid credential" style error naming the placeholder). If your own integration is failing with an auth error like that, check the allowed hosts for the secret it's using first. It's the most common cause.

Visible to your Teammatelink

Some settings are not secrets: a port, a region, a mode flag. Put these in the Visible to your Teammate card under an agent's secrets. Your Teammate reads them as ordinary environment variables in the commands it runs, so it can use them without a placeholder.

  • Not for secrets. These values are readable by your Teammate and its model provider. A password, token or key belongs in a secret with allowed hosts, never here.
  • Credential check. A value that looks like a private key, a known API token, a JWT, a Bearer token or a URL with a password is refused outright. So is a key whose name ends in a password word (PASS, PASSWORD, PWD, PW, PSK, PASSPHRASE, PASSCODE, SECRET, API_KEY, PRIVATE_KEY); there is no way to override that. A key whose name contains PASS, TOKEN, SECRET, PRIVATE or similar anywhere else (for example DBPASS or PASSWORD_MIN_LENGTH), or a long random-looking value or id, is refused unless you tick I confirm this is not a secret. Changing the key or the value clears that tick.
  • A key is one or the other. Saving a visible value for a key that is already a secret, or a secret for a key that is already visible, is refused. An organization secret is refused if the key is visible on any of your agents.
  • This agent only. Visible values are per agent, reach the commands your Teammate runs (not its background jobs), and apply after the next deploy. Existing secrets are never moved here. Keys use capital letters, digits and underscores. Sleeping servers do not offer visible values yet.

If a connected service later starts managing a name you already made visible, the visible value is kept but marked Not in use, because your Teammate gets the service's value instead. You can remove it.

Multiline secretslink

Multiline secrets, such as PEM private keys and service-account JSON, go in the same Value box. Line endings are normalised to LF and surrounding whitespace is trimmed. A multiline value ends with exactly one newline, and a single-line value is only trimmed.

  • With allowed hosts: your agent holds a placeholder. The platform swaps the real value into request bodies for those hosts, encoded correctly for JSON and form bodies. A multiline secret is never allowed in a request header or the URL: that request is blocked.
  • Without allowed hosts: your agent receives the value as a file. <KEY>_FILE holds the file's path and <KEY> itself is not set.

A Teammate on a sleeping server without self-deploy can't save or delete secrets, because they can't wait for your approval. Add them in the dashboard, or turn on self-deploy for that server.

Secret changes require a full deploylink

Adding, editing, or deleting a secret — including allowed hosts — stages as a pending change (a sleeping server applies it on its own) and always classifies as a full agent-server refresh on deploy, never a quick reload. Secrets are only re-read from storage when a server boots. See Deploys & pending changes for the full hot-reload vs. refresh breakdown.

API and MCPlink

Company secrets, agent secrets, and their allowed hosts can all be managed through the API and MCP tools as well as the dashboard. See API & MCP for the resource map.

Saving a secret (the PUT secret endpoints, or the save_agent_secret and save_company_secret tools) accepts two host fields next to value:

  • allowed_hosts: a list of host names, following the rules above. A non-empty list replaces the current hosts. Leaving it out, or sending [] together with a value, keeps the current hosts.
  • clear_allowed_hosts: set to true to remove all hosts. Sending it together with a non-empty allowed_hosts is an error.

Change only the hosts of an existing secret by leaving value out and sending a non-empty allowed_hosts or clear_allowed_hosts: true. Sending allowed_hosts: [] with no value is an error ("value is required unless allowed_hosts is non-empty or clear_allowed_hosts is true."), and so is changing hosts on a secret that doesn't exist or on a reserved key. Invalid hosts are rejected before anything is written.


Build your team.

Your first AI Teammate, working by end of day.

Get product updates by email

What we shipped and what we learned.

Product updates, a few times a quarter. Unsubscribe any time. Privacy

Protected by reCAPTCHA. Privacy · Terms