Skip to content

Built for an agent that can act

An assistant that changes orders and calls your systems has to be held to a higher standard than one that only chats. Here is how Relay does it, described plainly, without badges we haven’t earned.

  1. Your website
    • Loader in a closed Shadow DOM
    • Runs only on domains you allow
  2. Widget frame
    • Separate origin and strict CSP
    • Messages pinned to their origin
  3. Your workspace
    • Every query scoped to it
    • Secrets encrypted at rest
  4. Your tools
    • Allowlisted per agent
    • Outbound calls through an egress guard
  5. Model provider
    • Your own API key
    • Credentials never in prompts

The controls, area by area

Each of these is enforced in code on our servers, not left to the model’s good behavior.

Workspace isolation

Scoped queries
Every read and write is filtered by the workspace from your session, never from request input.
Row-level security
PostgreSQL row-level security adds a second wall between workspaces.
Private files
Uploads live in private storage and are shared through links that expire after five minutes.

Secrets and keys

Envelope encryption
Provider keys, tool secrets and visitor tokens are encrypted with AES-256-GCM and a per-secret key.
Write-only
Once saved, a key is never shown again. You see its last four characters.
Bound to their row
Each secret is encrypted for the record it belongs to, so it can’t be replayed elsewhere.

What the agent can do

Allowlist only
The agent can call only the tools enabled for its published version.
Approval on the server
Calls that need approval are held by the server, not by a prompt.
Content is data
Visitor messages, documents and tool output can’t change policies or unlock tools.

Visitors and identity

Signed identity
Signed-in users are verified with an HMAC signature from your server.
Tokens out of reach
A visitor’s own credentials are encrypted and never shown to the model, in steps or in API responses.
Rate limits
Messages, uploads and sign-ins are rate limited, and limits fail closed.

Outbound requests

Egress guard
Crawling, custom tools and MCP servers all go through one guarded fetch.
No private networks
Requests to private and internal addresses are blocked, and HTTPS is required in production.
Careful redirects
Requests that carry credentials never follow redirects.

Accounts and access

Deny by default
Every endpoint requires a session and a capability unless it is deliberately public.
Sessions
CSRF protection, session rotation, and every session revoked when a password changes.
Audit log
Security-relevant changes are recorded with who made them and when.

Where the limits are

Language models can be talked into things. We don’t pretend otherwise, so the protections that matter don’t depend on the model at all.

Relay fences untrusted content as data in every prompt, which helps, but it relies on the model following instructions. The hard guarantees sit outside the model: the tool allowlist, approvals enforced by the server, and redaction of secrets from anything the model or your team can see.

That is why the most useful thing you can do is also the simplest: give each agent only the tools it needs, and require approval for anything that writes, spends or can’t be undone.

How changes reach production

No change merges until every check passes.

  • Strict type checking and linting on every package
  • Unit and integration tests against real PostgreSQL and Redis
  • End-to-end tests in Chromium, Firefox, WebKit and mobile
  • Migration checks on empty and upgraded databases
  • Dependency audit, secret scanning and CodeQL on every change
  • Releases with health checks, smoke tests and automatic rollback

Questions from your security team?

Start a workspace to see every control for yourself: roles, approvals, the audit log and write-only keys.