Skip to content
ThirdLayer

Docs > Integrations and CLI

Permissions and tools

Understand how provider OAuth scopes, per-user tool permissions, Access Scopes, and approval policies govern what Dex agents can execute.

Connecting an app gives Dex only the underlying OAuth authorization for your account. What an agent is actually allowed to call—and whether it must pause for approval—is controlled by four layered guardrails.

LayerWhere it is configuredWhat it enforces
1. Provider authorizationOAuth consent / MCP auth in Connectors or Settings > MCPHard ceiling on what the external provider allows that user’s token to do
2. Access Scope/nexus/scopes or dex scopesPer-user allowlist restricting a personal agent, shared agent membership, or coordinator to a subset of your connected integrations
3. Per-tool permissionUser tool permission settings (always_allow, needs_approval, blocked)Controls whether a specific tool runs automatically, pauses for inline approval, or is hidden/blocked
4. Agent write policyAGENT.md (requireWriteApproval, autoMode)Routes automation integration writes into durable Pending Action cards (with drift checks) unless permitted by an explicit Auto Mode policy

User-delegated execution (never shared credentials)

Section titled “User-delegated execution (never shared credentials)”

Dex runs every tool call under the acting user’s own credentials:

  • Personal chats and automations run with your connected integrations and your chosen Access Scope.
  • Shared agent member runs (both fan-out and coordinator-called child runs) run strictly with that member’s connected integrations and Access Scope.
  • Coordinator runs run with the assigned Admin coordinator’s own Scope—never borrowing member tokens.
  • Cross-owner Pending Action approvals execute under the card owner’s credentials and Access Scope, even when an agent Admin clicks Approve.
  1. Create purpose-built Access Scopes for background agents. If a weekly triage agent only needs Slack and Linear, bind it to an Access Scope containing just slack and linear rather than leaving it on Default (all connected apps).
  2. Keep requires minimal in AGENT.md. Declare only apps—and specific tools (attio: [update_record])—that the agent genuinely cannot run without.
  3. Keep requireWriteApproval: true by default. Move routine internal writes (like posting a status update to one named Slack channel) into a narrow plain-language autoMode policy rather than disabling write approvals globally.
  4. Separate read-only context from write tools. Let agents read structured history through the knowledge graph (dex zeta and read-only Agent SQL) first, reserving external write tools for deliberate, reviewable proposals.

Interactive vs. headless tool availability

Section titled “Interactive vs. headless tool availability”
  • Chrome extension browser tools (reading active tabs, clicking/filling web pages) and macOS Desktop companion tools (local filesystem, Reminders, iMessage) are available only in interactive sessions where the local client is connected.
  • Headless background automation runs automatically strip all client-side browser and desktop tools and execute only authorized server integrations, MCP servers, Factory tools, and sandbox tools.