Back to twins
Gmail

Gmail test environment for email agents

Test email agents that triage inboxes, draft replies, and manage message workflows.

Gmail

Meet the Gmail twin

Validate email triage, drafting, labeling, search, and send workflows. Replay email agent workflows without sending real messages.

Seeded state

Seed users, inboxes, threads, messages, drafts, labels, attachments, history, and watch state.

Gmail twin showing the inbox, labels, and seeded email threads.

Use Gmail in staging without using production.

Validate email triage, drafting, labeling, search, and send workflows

Seed inboxes with realistic threads, attachments, labels, and users

Replay email agent workflows without sending real messages

Provision the Gmail twin from the CLI.

Install the Arga CLI, sign in once, then create a 60-minute twin run. The command waits until the environment is ready and prints its connection details.

Terminal

$ uv tool install arga-cli$ arga login$ arga twin-runs create --twins gmail --ttl 60 --wait

Add --scenario-prompt to describe the state the twin should start with.

Build with the Gmail twin

Connect the twin, seed realistic state, and run scenarios against a resettable service.

Make your agents more capablein the real world.

Spin up isolated environments with API twins, full traces, and production-data for apps and agents that need to act.