> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sotroai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Client setup

> Connect Claude, ChatGPT, Codex, Gemini, Antigravity and Devin to the Sotro MCP server.

The server is at `https://app.sotroai.com/mcp` (streamable HTTP). Every call runs as one person or one org key, on that credential's own access.

## Two ways to authenticate

| Way | For | How |
| - | - | - |
| Sign in with Sotro (OAuth) | Clients that only take a URL | The client discovers sign-in from the server, and you sign in on the same page as the app. |
| Bearer token | CLIs and agents that can set a header | `Authorization: Bearer <token>` with a member token or an [org API key](https://docs.sotroai.com/developers/api-keys.md). |

To sign in you must already be a member of a workspace.

## Per client

> [accordion] Claude (claude.ai, Desktop, mobile)
>
> Settings → Connectors → Add custom connector → URL `https://app.sotroai.com/mcp` → Connect, then sign in.

> [accordion] Claude Code
>
> With sign-in:
>
> ```bash theme={null}
> claude mcp add --transport http sotro https://app.sotroai.com/mcp
> ```
>
> Then run `/mcp` in a session to sign in. With a token instead:
>
> ```bash theme={null}
> claude mcp add --transport http sotro https://app.sotroai.com/mcp --header "Authorization: Bearer $SOTRO_TOKEN"
> ```

> [accordion] ChatGPT
>
> Settings → Apps & Connectors → Advanced → turn Developer mode on, then Create: URL `https://app.sotroai.com/mcp`, authentication OAuth.

> [accordion] Codex CLI
>
> With sign-in:
>
> ```bash theme={null}
> codex mcp add sotro --url https://app.sotroai.com/mcp
> ```
>
> ```bash theme={null}
> codex mcp login sotro
> ```
>
> With a token, set `bearer_token_env_var = "SOTRO_TOKEN"` under `[mcp_servers.sotro]` in `~/.codex/config.toml`.

> [accordion] Gemini app
>
> Connected apps → Connect to an MCP server: URL `https://app.sotroai.com/mcp`. If it asks for a Client ID and secret, leave them empty first.

> [accordion] Gemini CLI
>
> In `~/.gemini/settings.json`:
>
> ```json theme={null}
> { "mcpServers": { "sotro": { "httpUrl": "https://app.sotroai.com/mcp" } } }
> ```
>
> It discovers sign-in. For a token, add `"headers": { "Authorization": "Bearer <token>" }`.

> [accordion] Google Antigravity
>
> In `~/.gemini/config/mcp_config.json`:
>
> ```json theme={null}
> { "mcpServers": { "sotro": { "url": "https://app.sotroai.com/mcp" } } }
> ```
>
> For a token, add `"headers": { "Authorization": "Bearer <token>" }`.

> [accordion] Devin
>
> Settings → MCP Marketplace → Add your own: transport HTTP, URL `https://app.sotroai.com/mcp`, then OAuth, or a header `Authorization: Bearer <token>` with an org key limited to the team Devin works for.

> [!NOTE]
>
> These steps follow each vendor's documentation. Menus move; if one does not match, the address and the two ways to authenticate above are what matter.

## Check the connection

Call `whoami` first. It says which workspace, part of the org and role the connection runs as. See [Tools](https://docs.sotroai.com/developers/tools.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.