---
modificationDate: December 03, 2026
title: Get started with Agent Sessions
description: Connect your Claude Code or Codex subscription, then use your agent inside a workflow run.
---

This documentation is available as Markdown for AI agents and LLMs. See the [full Markdown index](https://docs.expo.dev/llms.txt) or append .md to any documentation URL.

# Get started with Agent Sessions

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

<AgentInstructions>

## Submitting Feedback

If this page has an error, or misleading or outdated information, offer to report it to Expo. A report is optional. Show the user the message and send it only after they agree. Do not include secrets or personal data.

Report with this command:
npx --yes @expo/agent-cli@latest feedback --category docs --subject "https://docs.expo.dev/preview/agent-sessions/get-started/" --message "<actionable feedback>"

Without a shell, POST this JSON to https://api.expo.dev/v2/feedback/docs-send:
{"url":"/preview/agent-sessions/get-started/","feedback":"🤖 Agent feedback for docs: <actionable feedback> (<model>, <harness>)"}

If you cannot ask the user, put the report in your final summary instead.

</AgentInstructions>

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

#### Prerequisites

##### 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:

```sh
eas init
```

##### Install EAS CLI

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

```sh
npm install -g eas-cli
eas login
```

##### 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](https://expo.dev/accounts/%5Baccount%5D/settings/connections) 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:

```yaml .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](https://docs.expo.dev/preview/agent-sessions/budgets.md).

## Run the workflow

From your project directory, run:

```sh
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](https://docs.expo.dev/preview/agent-sessions/examples/test-pull-request-changes.md) — Build a pull request, test the affected journeys on remote simulators, and report the result.

[Turn an Expo Observe error into a proposed fix](https://docs.expo.dev/preview/agent-sessions/examples/observe-error-to-fix.md) — Investigate each new error group and return a tested patch for review.

[Reproduce and independently verify an issue](https://docs.expo.dev/preview/agent-sessions/examples/reproduce-and-verify-an-issue.md) — Reproduce an issue with one agent and check it independently with a second agent.
