// Guide

BYOK and AI Agent Governance

Governance for AI agents is the combination of two questions: where does the agent run, and who controls the keys it spends. This page covers both for the driftless platform: sandboxed execution surfaces, BYOK key sovereignty, the audit trail action by action, and the human gates around completion and deployment.

Verified on November 29, 2026 against the shipped /byok page (vault encryption, server-side proxying, masked storage, revocation, audit trail, exportability) and the /security page (sandbox contexts, execution surface, git worktree isolation, intent-registry dispatch checks, audit trails, human-in-the-loop gates). Capabilities the shipped pages do not document are absent from this page; export claims carry the stated mechanism and never a speed figure.

What does AI agent governance cover?

Governance means the runtime boundary plus the evidence trail: what an agent can read, write, and run, inside which sandbox, with every credential action and task transition captured in an audit trail, and human gates deciding completion and production deployments. Agents cannot self-certify their work or ship to production on their own.

The shipped security page states the boundary plainly; the BYOK page carries the key side in full.

Where do the agents actually run?

Two sandboxed contexts, documented on the security page. Hosted agents, the business-analyst agent, run in the platform's multi-tenant server. Coding agents, the orchestrator's builder agent, run on your machine inside the checkout you designated: your code stays with you, and the agent reaches it only through the Orchestrator you run.

  • Read scope. The working copy of the repository you designated for that agent, and nothing else on your machine.
  • Write scope. Code changes on a feature branch inside that working copy, pushed with your own git credentials.
  • Run scope. Build, test, and lint commands inside that working copy as a local process; the agent cannot reach the network unless you allow it.

How are concurrent coding agents kept apart?

Each dispatched agent works in its own git worktree of your repository checkout, so two agents never edit the same files in the same working copy at once. Before dispatch, the files an agent intends to touch are recorded in an intent registry and checked against other agents' intents, catching overlap before it becomes a merge conflict.

Rate limiting adds the outer bound: agent traffic is subject to the same 100 requests per minute per API key limit as every other caller of the platform API.

How does BYOK keep provider keys sovereign?

Keys stay yours. Each provider key is validated against its provider, then encrypted with AES-256-GCM into a credential vault that belongs to you; the platform holds only a vault reference. Model calls run through a server-side proxy that resolves your key, so the key never reaches browser JavaScript, any page, any API response, or a log line.

  • Providers. OpenAI and Anthropic keys, validated before saving; OpenRouter for its full model catalog; Ollama hosts for local and self-hosted models; and any OpenAI-compatible endpoint via its base URL, with named instances so several can coexist.
  • Revocation. Deleting a provider connection removes the vault entry immediately; the blast radius is that provider, for your account, in that organization, and it does not touch any other provider, project, task, or user.
  • Exportability. Tasks, initiatives, PRDs, tech specs, projects, comments, and media are exportable or accessible through the REST API and MCP tools; the credential audit trail exports to JSON and CSV with a compliance report in a format suitable for SOC 2 and security review.

What audit surface do agent actions leave?

Every credential action (created, rotated, resolved for use, revoked) is recorded with the acting identity, the credential name, a timestamp, and the source address, and the audit schema has no field for key values. Task status transitions, comments, agent activity, and administrative changes are captured with identity, timestamp, and affected target.

Both the BYOK and security pages state the same no-values rule from their own sides: credential audit entries carry who, when, and what was affected, and key material appears nowhere in them.

Who controls completion and deployments?

People, at the gates that matter. A task reaches done only after a human confirms it in their environment; agents cannot mark their own work complete. Production deployments are initiated by a human operator, and agent self-execution is bounded: transient failures retry at most three times before the work stops and escalates to a human blocker.

Spec gates add the upstream check: an agent cannot ship against an unresolved or contradictory spec, because the gate blocks work until the spec is clean.

Which questions do buyers ask about agent governance?

The four questions below cover what governance covers on this platform, which providers BYOK accepts, who can read a stored key, and how revocation lands. Each answer restates the shipped BYOK and security pages, verified on November 29, 2026, with export claims carrying their stated mechanism and never a speed figure.

  • What is AI agent governance? Governance means the runtime boundary plus the evidence trail: what an agent can read, write, and run, inside which sandbox, with every credential action and task transition captured in an audit trail, and human gates deciding completion and production deployments. Agents cannot self-certify their work or ship to production on their own.
  • Which providers does BYOK support? OpenAI and Anthropic keys, validated against the provider before saving; OpenRouter for its full model catalog; Ollama hosts for local and self-hosted models; and any OpenAI-compatible service via its base URL, with named instances so several can coexist. Each key is encrypted with AES-256-GCM into a per-user vault.
  • Who can read a stored provider key? Nobody, by design. After the key is stored there is no interface, for any role, that shows it in the clear: admins see the same masked representation, the audit schema has no field for values, and no application log line or API response contains it.
  • How does key revocation work? Deleting a provider connection removes the vault entry and the connection immediately. Revoking one provider key stops model calls through that provider, for your account, in that organization; it does not touch any other provider, project, task, comment, document, or user.

Ready to put your keys and your audit trail to work?

Start free with two agents and BYOK, or inspect the shipped surfaces directly. The BYOK page documents the vault and proxy mechanics in full, and the security page carries the execution surface, sandbox, audit trail, and the shipped quality record with its methodology.

Get started free

Ask Driftless Ask Driftless