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.

Get started with Agent Sessions

Edit page

Connect your Claude Code or Codex subscription, then use your agent inside a workflow run.


Connect your Claude Code or Codex subscription to your Expo account, then use your agent inside a workflow run.

Prerequisites

3 requirements

1.

Link an Expo project

Your workflow runs against a project on the account that owns the connection. If the project does not have a project ID, run:

Terminal
- eas init

2.

Install EAS CLI

You need EAS CLI to run a workflow from your terminal:

Terminal
- npm install -g eas-cli
- eas login

3.

Have a Claude Code or Codex account

You need a Claude Code or Codex account with a subscription that you can connect to Expo. To manage connections, you need the Owner or Admin role on the Expo account.

Connect an agent provider

Open your account's connection settings and connect Claude Code or Codex.

The workflow uses the connection on the Expo account that owns the project, not a login on your local machine. Do not put provider credentials in the workflow file or the prompt.

Add an agent job

Create .eas/workflows/agent-smoke-test.yml in your project:

.eas/workflows/agent-smoke-test.yml
name: Agent smoke test jobs: inspect: type: agent params: agent_kind: claude-code max_duration_minutes: 10 limits: builds: 0 simulator_minutes: 0 sandbox_minutes: 5 concurrent_sandboxes: 1 prompt: | Use the Expo MCP sandbox tools for this project. Create one empty Linux sandbox with maxDurationMinutes set to 5. Wait until it is running, then run node --version. Write a short report.md with the command, output, and any errors. Upload report.md with sandbox_artifact_create and report its ID. Do not build, start a simulator, edit the app, push, or publish. Stop the sandbox and verify it is stopped before finishing.

This job allows 10 minutes of agent runtime and up to 5 sandbox minutes, with no builds or simulator use. See Budgets.

Run the workflow

From your project directory, run:

Terminal
- eas workflow:run .eas/workflows/agent-smoke-test.yml

Open the workflow URL that the CLI returns. Inspect the agent job's progress and final response.

Next steps

Test pull request changes on Android and iOS

Build a pull request, test the affected journeys on remote simulators, and report the result.

Turn an Expo Observe error into a proposed fix

Investigate each new error group and return a tested patch for review.

Reproduce and independently verify an issue

Reproduce an issue with one agent and check it independently with a second agent.