Docs > Integrations and CLI
Permissions and tools
# Permissions and tools 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. ## The four permission layers | Layer | Where it is configured | What it enforces | | --- | --- | --- | | **1. Provider authorization** | OAuth consent / MCP auth in **Connectors** or **Settings** > **MCP** | Hard ceiling on what the external provider allows that user's token to do | | **2. Access Scope** | `/nexus/scopes` or `dex scopes` | Per-user allowlist restricting a personal agent, shared agent membership, or coordinator to a subset of your connected integrations | | **3. Per-tool permission** | User 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 policy** | `AGENT.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) 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. ## Least-privilege best practices 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](/context/knowledge-graph/) (`dex zeta` and read-only Agent SQL) first, reserving external write tools for deliberate, reviewable proposals. ## 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. ## Related pages - [Tools, scopes, and approvals](/agents/tools-and-approvals/) - Pending Actions state machine, drift checks, and Auto Mode - [Shared agents](/agents/shared-agents/) - Per-member credentials and Admin permissions - [Sources and data scopes](/context/sources-and-scopes/) - Knowledge graph Data Scopes vs. Access Scopes - [Connect and manage integrations](/integrations/connect-and-manage/) - Authorizing apps and custom MCP serversUnderstand 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.
The four permission layers
Section titled “The four permission layers”| Layer | Where it is configured | What it enforces |
|---|---|---|
| 1. Provider authorization | OAuth consent / MCP auth in Connectors or Settings > MCP | Hard ceiling on what the external provider allows that user’s token to do |
| 2. Access Scope | /nexus/scopes or dex scopes | Per-user allowlist restricting a personal agent, shared agent membership, or coordinator to a subset of your connected integrations |
| 3. Per-tool permission | User 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 policy | AGENT.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.
Least-privilege best practices
Section titled “Least-privilege best practices”- 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
slackandlinearrather than leaving it on Default (all connected apps). - Keep
requiresminimal inAGENT.md. Declare only apps—and specific tools (attio: [update_record])—that the agent genuinely cannot run without. - Keep
requireWriteApproval: trueby default. Move routine internal writes (like posting a status update to one named Slack channel) into a narrow plain-languageautoModepolicy rather than disabling write approvals globally. - Separate read-only context from write tools. Let agents read structured history through the knowledge graph (
dex zetaand 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.
Related pages
Section titled “Related pages”- Tools, scopes, and approvals - Pending Actions state machine, drift checks, and Auto Mode
- Shared agents - Per-member credentials and Admin permissions
- Sources and data scopes - Knowledge graph Data Scopes vs. Access Scopes
- Connect and manage integrations - Authorizing apps and custom MCP servers