Secrets & API Keys
Vorflux without secrets is a very talented engineer locked out of the building.
With credentials in place, agents connect to real infrastructure: they run integration tests against your staging database, trace a Sentry alert to its root cause, and verify a payment flow with actual API calls — all before the PR opens. Add secrets under Settings → Machines → Secrets, one at a time or by dragging a .env file onto the page.
How secrets work
Secrets are stored in a secure vault (AWS Secrets Manager) and injected into sessions at runtime as environment variables. They never appear in plain text in logs, PRs, or session transcripts, and are never shared across accounts. Sensitive values are redacted in the UI, and each secret can be scoped to your whole account or to specific repos.
Repo scoping is enforced when the value is delivered, not just when it's listed. If you scope a key to acme/web, a session sees it in its catalog tagged with that repository, but it only receives the value once the agent has selected acme/web as one of the repositories it's working on — a step the agent takes itself, not something you do. Sessions on other repos never see the value. Once delivered, the value is exported under the secret's own name and also under a repository-qualified alias (for a key named DB_URL, that's REPO__GITHUB_COM__ACME__WEB__DB_URL), so an agent touching several repos can tell the values apart. When a repo-scoped secret and an account secret share a name, the repo-scoped one wins for sessions on that repo.
When you add a secret, give it a name, a value, and a short description of what it's for — the description is what tells agents when to reach for it. You don't have to guess what your repos need, either: during machine setup, the agent scans your code and recommends the keys it references.
If a session needs a secret that isn't in your vault, the agent asks — it never guesses or skips. The session shows a Needs Input status until you respond, and picks up right where it stopped once the key is in place.
Start with staging or dev credentials — you get full integration testing without touching production.
Personal secrets
Not every key belongs to the team. When you add secrets under Settings → Machines → Secrets, the dialog has a Visibility toggle: Team shared (or Workspace shared inside a workspace) is the default and behaves as described above; Personal keeps the secret to you. Personal secrets carry a Private only tag in the list and load only in your own private sessions — "Loads only in private sessions." — because they are sensitive. In a shared session the catalog still lists them, but the value is never delivered; when the agent needs one it asks you to make the session private instead. The same rule covers personal integrations such as Gmail and Google Calendar connected with Sign in with Google.
Session secrets
Some credentials should live exactly as long as one task. Inside a private session, the composer's plus menu has an Add session secret item that opens the Private session secrets dialog: enter a Name (env-var style, uppercased for you), a Value, and an optional Label, then Save. A session secret is injected only into that session, wins over an account or repo secret with the same name, never appears under Settings → Machines → Secrets, and is deleted when the session is archived. The session's owner and anyone they've invited to it can add or edit them; nobody else can, and only private sessions accept them.
What to add first
- Database credentials (staging) — integration tests run against your actual schema, not mocks
- Datadog API + application keys — the agent pulls the firing monitor and traces to go from alert to root cause
- Linear / JIRA API key — the agent reads tickets directly and links PRs to issues
- AWS / GCP credentials — deploy to staging, validate infrastructure changes
- Stripe test keys — payment flows tested end-to-end with real API calls
- Figma API key — the agent pulls design specs straight from your files
Vorflux API keys
Vorflux API keys for programmatic access — triggering sessions from CI, reading results — live in the API docs.
When you create one under Settings → API, choose a Type: a Personal key acts as you and stops working if you leave the account, while a Service account key acts as the account's system user and stays valid after its creator leaves — the right choice for CI/CD. See Service account keys for the details.