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

Expo Simulators security, permissions, and data retention

Edit page

Learn who can start and view Expo Simulators sessions, how to protect session tokens and preview links, and how long Expo Simulators keeps recordings, screenshots, and logs.


An Expo Simulators session belongs to an Expo Services project. Account roles control who can start, view, and stop sessions. Session tokens and preview links give direct access to the remote device, so treat them as secrets.

For how long Expo Simulators keeps job logs and artifacts, see Retention and deletion.

For how the parts connect, see Expo Simulators security model.

Permissions

ActionRequired role
Start a sessionDeveloper role or higher
Stop a sessionDeveloper role or higher
Delete a finished sessionDeveloper role or higher
View sessions and their detailsAny role that can view the project, including View Only

For automation, create a robot user with the Developer role. Developer is the minimum role that can create and stop sessions.

If the user who started a session is deleted, Expo Simulators stops the session.

Session tokens

The connection details of a session include tokens for the controller. Expo Simulators stores the connection details encrypted.

Where the tokens appearWhat to do
.env.eas-simulatorAdd the file to .gitignore. Do not upload it as a CI artifact.
remoteConfig in --json outputDo not print it in CI logs.
remoteConfig in REST API responsesDo not log or cache it.
Model Context Protocol (MCP) configuration files for ArgentAdd the file to .gitignore.

The REST API returns remoteConfig only while the session is in-progress. After the session stops or fails, remoteConfig is null. EAS CLI (eas simulator:get) and the Expo GraphQL API still return the stored connection details after the session stops. By then, the remote device and its controller endpoints no longer exist. Session responses include Cache-Control: private, no-store and Pragma: no-cache.

The session page on expo.dev masks the token values by default. Anyone who can view the session page can reveal or copy them.

LinkWho can open itHow to get it
Private (default)A person who signs in to an Expo account that can view the projectEAS CLI output, Open preview on the session page, or Share in the preview
PublicAnyone who has the link, without an Expo loginEAS CLI output or Share in the preview, for a session started with --public-link or publicPreview: true. Also, from the preview token of any session

A private link has this format:

https://expo.dev/accounts/<account>/projects/<project>/simulator-sessions/<session-id>/preview

A public link contains the preview token. Treat a public link as a secret. Anyone with the link can see and use the simulator while the session runs. Share it only with the people who need it, and set a maximum duration on the session.

A session with private links still has a preview token. The REST API returns it as webPreviewToken to any member who can read the session. Keep the preview token secret, even when the session uses private links. Anyone who has the token can make a public link.

If a session starts with --frame-ancestor or --cors-origin, EAS CLI prints the preview host URL with the preview token. For a session that you create with frameAncestors or corsOrigins, the REST API returns the URL as previewApiUrl and the token as webPreviewToken. Web pages on the allowed origins use the token to show the session. Anyone who can read such a page can get the token and control the device. See Show an Expo Simulators session on your own web page.

Network access

  • Metro tunnel: a Metro URL from npx expo start --tunnel is public while the tunnel runs. It does not require authentication. Stop Metro when you finish.
  • Default egress: without local egress, all traffic from the simulator exits from Expo infrastructure.
  • Local egress: with --egress local, device traffic exits from your computer: all TCP traffic on Android, and traffic that honors the system proxy on iOS. The egress client refuses local, private, link-local, and multicast addresses. Only the exact host:port entries that you pass with --egress-allow are exceptions.

See Network traffic and local egress in Expo Simulators.

Data that Expo Simulators stores

DataWhere it appears
Session details: name, tags, type, status, platform, timeseas simulator:list, eas simulator:get, expo.dev
Screenshots and screenshot diffsArtifacts on the session page
Screen recordingsRecording player and Artifacts
Traces, performance metrics, native profiles, React profilesArtifacts on the session page
Session activity eventseas simulator:events and the session page
Job logsLogs section on the session page

One artifact can be up to about 5 GiB.

Expo Simulators records the request origin and agent identifiers that a client sends when it creates a session. Expo Simulators uses these values for analytics only, not for authorization.

Artifact downloads

eas simulator:get --json returns a downloadUrl for each artifact. The download URL contains a long random key and does not require authentication. Treat it as a secret.

The downloadUrl does not change. Each request to it redirects to a new signed storage URL, which expires after one hour. To download the artifact again later, request the same downloadUrl again.

Retention and deletion

  • Job logs on the session page are available for 30 days after the session is created.
  • Expo Simulators keeps session artifacts, such as screenshots and recordings, until you delete the session.
  • You can delete a session after it finishes. You cannot delete a running session.
  • When you delete a session, Expo Simulators also deletes its recordings and screenshots. You cannot undo this.
  • When you delete the project, Expo Simulators also deletes its sessions and their artifacts.

Common questions

Can a member with the View Only role start a session?

No. Starting a session requires the Developer role or higher.

Can someone without an Expo account open my preview?

Only with a public link. A private link requires an Expo login with access to the project. A public link contains the preview token and does not require a login. See Browser preview links.

How do I remove recordings of a session?

Delete the finished session from its page on expo.dev. Expo Simulators deletes its recordings and screenshots.