Security

Org secrets vault for adapter credentials

Store MCP and adapter tokens in Relay org secrets instead of hook files or developer laptops.

4 min read Updated Aug 2026

Coding agents often need MCP servers, database adapters, or third-party API keys. Relay org secrets keep those credentials out of hook JSON and local dotfiles while still allowing audited agent runs.

Why use org secrets

Risk without vaultRelay approach
Tokens in capture JSONSecrets referenced by ID, resolved server-side
Shared .env on laptopsCentral org vault with role-based access
Rotated keys scatteredUpdate once in Architect, sync to environments

Hook captures should never contain raw adapter tokens. If you see secrets in local JSON, rotate immediately and move values to the vault.

Add a secret in Architect

  1. Open Settings → Secrets (org admin required).
  2. Create a secret with a descriptive name (github-mcp-prod, staging-db-read).
  3. Assign environments or teams that may reference the secret ID.

Developers reference secrets by ID in agent configuration — not by pasting values into Cursor rules.

Validate capture stays clean

After configuring an adapter:

grep -RIi "sk_\|api_key\|token" ~/.relay/captures --include='*.json' || echo "clean"

The command should print clean. Architect timelines show tool names and inputs; vault-backed values appear as redacted placeholders.

Rotation workflow

  1. Add the new secret version in Architect.
  2. Update agent or MCP config to the new secret ID.
  3. Revoke the old secret version.
  4. Run relay sync on pilot machines and spot-check one session timeline.

Enterprise considerations

Enterprise plans add SSO, longer retention, and audit exports. Secrets vault access should follow the same admin roles as billing and environment registration.

Ready to try it in your workflow?