Skip to main content

This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Permissions and security

Edit page

Learn how the Runner role, scoped tokens, and separate machines let an agent act on untrusted input without access to production or your credentials.


An agent job can act on input that you do not control, such as an Expo Observe error, an issue, or a pull request description. That input can contain a prompt injection. An agent can also misread a task. Agent Sessions limits what a confused or attacked agent can do. With the default Runner role, such an agent cannot:

  • Release updates or submit builds to the app stores.
  • Read your provider token, your production environment variables, or your signing credentials.
  • Use more builds, simulator minutes, or sandbox minutes than its budget allows.

Runner role

An agent job uses the Runner role by default. Runner is one step above Viewer. It can view your projects, start builds, run sandboxes and simulators, and start workflows. It has none of the permissions that the Developer role adds, such as releasing updates and managing credentials. Runner also cannot read protected environment variables.

If a task needs more access, request a role for that one job:

jobs: test: type: agent permissions: account: role: developer params: ...

For example, submitting a build to the app stores needs the Developer role. The person or robot that starts the run must have the requested role or a higher one.

Scoped tokens

Expo creates the tokens that an agent job uses. You do not add an EXPO_TOKEN or a provider token to the workflow file.

  • Agent virtual machine (VM): The agent gets an Expo token limited to the job's role and budget. A workflow that the agent starts gets the same role and budget, and it cannot create a new budget.
  • Sandbox: Each sandbox gets a token that works only for its own connection to Expo.

Separate machines for the agent and your code

The agent runs on its own VM. Your project code runs in a sandbox, on a separate VM from the agent. Expo creates a new VM for each agent job and for each sandbox.

This separation matters because project code is untrusted. A dependency's install script, the code in a pull request, or a reproduction from an issue runs only in the sandbox. The sandbox has none of the agent's credentials, so that code cannot steal them. A running sandbox also cannot get a new token for your repository.

The agent runs without a shell or web tools. It can act only through Model Context Protocol (MCP) tools, and Expo checks each call against the job's role and budget.

Provider token protection

Expo stores your Claude Code or Codex connection on Expo servers. Each agent job gets a short-lived access token, never the refresh token. The agent cannot read the access token, and the token never enters a sandbox.

What you still review

  • Secrets you add: A value in the prompt or in an environment that the job reads is visible to the agent. Do not put production secrets there.
  • GitHub access: The Expo role does not describe access to your GitHub repository. Review the Expo GitHub App's permissions separately.
  • The agent's output: A report or a patch is a proposal. Check the evidence before you merge or deploy anything.