STACK
MENU
DOCS / GETTING STARTED / CONNECT AN AI CLIENT

Connect an AI client

Run the setup command in a terminal to add STACK's remote MCP server to Claude Code, Codex or Cursor and sign in with OAuth. When setup finishes, start a new client session and ask it to list your STACK agents; a new account should return an empty list.

1. Create your account

Create an account at getstack.run. You do not need to connect any services yet.

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. Complete sign-in

Claude Code and Codex complete OAuth during setup. Cursor asks you to sign in the first time you use STACK.

STACK setup does not ask for provider credentials. Enter those later in the Console or through the provider's sign-in page.

4. Start a new session and check the connection

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

prompt
List my STACK agents.

STACK returns the agents in your account. A new account returns an empty list, which confirms that the client is signed in and can call STACK.

Manual setup

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

Next

To test the LLM gateway, continue to Make a governed model call. If your application will call STACK directly, start with the JavaScript and TypeScript or Python SDK.

stack | Docs