STACK
MENU
DOCS / GETTING STARTED / START AND SEND A FIRST EMAIL

Start and send a first email

Start the trial, connect Claude Code, Codex or Cursor, open an account for an agent and send an email from it. Every step after the third is a sentence you type to your AI client.

1. Start the trial

Start at getstack.run/get-started. The first 14 days are free and a card is required; after that the plan is $19 a month. When the checkout is complete, STACK emails you a sign-in link. Open it in the browser you used for the checkout.

2. Run setup in a terminal

Open a new terminal window and run:

bash
npx @getstackrun/cli setup

If the STACK CLI is not already cached, npx downloads the package and runs it for this setup. It does not install a permanent global command.

Setup detects Claude Code, Codex and Cursor, asks which clients to configure when it finds more than one, then adds STACK's remote MCP server to the clients you choose. It does not install an MCP server on your computer.

3. Sign in

Claude Code and Codex complete OAuth during setup. Run without a terminal, setup adds STACK and Claude Code asks you to sign in the next time it starts. Cursor asks you to sign in the first time you use STACK.

4. Open an account for an agent

Start a new Claude Code or Codex session by running claude or codex. In Cursor, open a new chat. Then enter:

prompt
Open a STACK account for an agent called assistant.

The client calls stack_open_account. The account opens at once, with no approval, and the answer lists each piece and its state. The inbox can be used when its state is ready.

5. Send the first email

prompt
Send an email from that account to my own address saying hello.

The client calls stack_send_account_email and returns the message id. The email counts as one action. Reply to it from your own mail, then enter:

prompt
List the messages that account received.

Mail that arrives is content from outside. STACK scans it and flags likely attacks on every account. Withholding flagged content from the agent needs controls.

Manual setup

To configure a client without the setup command, follow MCP Setup for the server URL and client-specific commands.

Next

The tool reference lists every tool the account gives an agent. If your application will call STACK directly, start with the JavaScript and TypeScript or Python SDK. To send a model call through the account, continue to Make a model call.

Start and send a first email | Docs