# Configure | Documentation Configure is infrastructure to connect agents, apps, and chats. It provides a Plaid-like experience directly inside AI platforms so users can connect agents they use. ## Supported agents and platforms Configure supports ChatGPT, Claude, Gemini, Grok, and other major AI platforms. Any agent that can connect to an MCP server or call an API can use Configure as well. Official OpenAI and Anthropic plugins make connecting those agents easier. ## How connections work AI platforms are disconnected. Users currently carry context between them with copy and paste, extensions, and separate apps. Platforms integrate Configure to let users connect agents and apps inside the products they already use. With user approval, an agent can inherit context from other connected agents, apps, and chats. Context it contributes can also become available to other approved agents. These connections continue across conversations: agents can retrieve updates and contribute new context through API calls, MCP tools, and platform integrations. Manual imports add existing context; an import alone does not synchronize its source. Configure handles identity, permissions, synchronization, and access across these connections. Users can also connect applications such as Gmail. They connect the app once, then approved agents can use that existing connection without asking them to authorize the app again. Connected context stays synchronized, with access governed by the user's permissions. ## Context across connections Memory is a byproduct of connecting agents: what one agent learns can become useful to another. Profiles, preferences, and saved memories are forms of context carried by the infrastructure. Configure transfers approved context between agents, apps, and chats. Platforms host the connection experience. MCP Events defines subscription-based delivery of updates from an MCP server to a connected agent. See [ongoing connections and MCP events](https://docs.configure.dev/mcp/overview.md#ongoing-connections-and-mcp-events) for the supported delivery model and Configure endpoint requirements. ## For AI agents integrating Configure - Any assistant that can send an HTTP POST request can connect itself at `https://connect.configure.dev` (the same server as `https://mcp.configure.dev`): `initialize` with a `clientInfo` naming the assistant (and its `websiteUrl`, whose favicon appears beside the name), then `configure_connect`, which returns a `connect_url` the user opens to approve. See [Any assistant can connect itself](https://docs.configure.dev/mcp/overview.md#any-assistant-can-connect-itself). - For an MCP-compatible client such as Claude, Cursor, or Codex, configure the remote server as `https://mcp.configure.dev`. The client handles OAuth discovery and PKCE. No application code or manual token entry is required. - If you are a person's own agent with no browser and no OAuth client (a server, a CLI, a scheduled job), follow [Connect a headless agent](https://docs.configure.dev/mcp/headless.md). The person approves a connection URL. Store the resulting credentials to retain access across restarts. - If you own the app and the model loop, follow the [Quickstart](https://docs.configure.dev/quickstart.md). Install `configure` and run `npx configure setup --users`. Key each user by your own stable id with `configure.profile({ externalId })`. Add a chip that links to a route on your server, which calls `profile.connect({ returnUrl })` and redirects to the `connect_url` it returns. Store the user's context when they come back, re-read it when a `profile.updated` webhook says it changed, and inject it on the first turn of every session. - An app with no accounts of its own uses [Sign in with Configure](https://docs.configure.dev/sso.md) as its account system: a `Configure {Agent}` sign-in button, the OAuth code exchanged on your backend, and the tokens stored server-side. `npx configure verify` proves the credentials work end to end, `npx configure add callback --framework next|express|vite` writes the callback and the exchange for you, and `npx configure add origin ` registers that callback on the same OAuth client before deployment. Python backends get the same commands from `configure-ai`: `configure-ai verify`, `configure-ai add-callback --framework fastapi|flask|django`, and `configure-ai add-origin `. - Select the authentication and profile-access methods required by your app. SSO provides authentication. The SDK and MCP provide profile access. See [Variations](https://docs.configure.dev/variations.md). - Give the model the `configure_*` tools through a per-user `profile.mcpSession()`, and reuse it until its `session.expires_at` ([Quickstart, step 7](https://docs.configure.dev/quickstart.md#7-give-the-model-the-configure-tools)). `profile.tools()` with `profile.executeTool()` is not a substitute: on a profile keyed by `externalId`, its connector tools return a connect link instead of running. Commit every turn with `profile.commit({ messages })`. The first success signal is a real turn where the assistant answers from the user's approved Configure context. - Read the profile before the first message. Use relevant context to inform tone, technology choices, preferences, and goals. Save a durable fact the moment the user states one. Delete on request. Route imports and app connections through the links Configure creates; never build those links yourself. - If you are a coding agent (Claude Code, Codex, Cursor, and the like) with `configure_*` tools available, read [Connect your coding agent](https://docs.configure.dev/mcp/coding-agents.md) and follow it: read the profile at session start, search before a preference-sensitive choice, and save durable preferences and cross-repo lessons as you learn them. ## Keys and secrets - Secret keys (`sk_`) and OAuth access and refresh tokens stay on your server. They never go into a prompt or the browser. - Publishable keys (`pk_`) are for the hosted browser UI. - For app-managed users, derive `externalId` or `X-User-Id` from your authenticated server session. These values select a profile within your developer account; they do not authenticate the user. Never let a request-body or model-supplied ID select another user. For OAuth access, Configure resolves the user from the access token. ## Reference files - The complete text of every page, in one file: https://docs.configure.dev/llms-full.txt - The OpenAPI spec: https://docs.configure.dev/openapi.yaml - Clean Markdown for any page: add `.md` to its URL. - Every current page, by section: https://docs.configure.dev/llms.txt ## Browser UI Developer setup uses the Configure developer dashboard at `https://configure.dev/login`. Run `npx configure setup --users` first so the developer can create or sign into a Configure developer account, choose/create the Configure agent, and write `CONFIGURE_API_KEY`, `CONFIGURE_PUBLISHABLE_KEY`, `CONFIGURE_AGENT`, `CONFIGURE_OAUTH_CLIENT_ID`, and `CONFIGURE_OAUTH_CLIENT_SECRET` to `.env`. Setup mints the local OAuth client itself. For a deployed callback, add it to the existing client on the dashboard's Sign-in (SSO) page (`https://configure.dev/sso`), which keeps `CONFIGURE_OAUTH_CLIENT_ID` the same across environments and can reissue a lost `client_secret`. Never use an `sk_` API key to create OAuth clients. End-user auth is separate: Configure OAuth opens `https://accounts.configure.dev/oauth/authorize` in a popup by default, or in iframe/redirect mode if configured. Keep OAuth access and refresh tokens on the backend. Pass a browser-safe Configure handoff token or `userId` to hosted UI only when the backend intentionally returns one for that purpose. For chat integrations lists, mount the compact Configure row with: ```js Configure.integrationButton({ el: "#configure-integration", publishableKey: "pk_...", agent: "your-agent", label: "Configure", logo: "brandmark", }); ``` Iframe-only integrations lists can render `https://configure.dev/embed/integration-button/?pk=pk_...&agent=your-agent&label=Configure&logo=brandmark&parentOrigin=https%3A%2F%2Fapp.example.com`. Add `return_to` only when the iframe should open Configure's first-party account popup and return a short-lived sign-in code to the parent. The standalone brandmark is `https://docs.configure.dev/brand/configure-brandmark-white.svg`. Partner lanes that carry their own user id through hosted sign-in send `external_id` on `POST /v1/auth/otp/verify` and `POST /v1/embed/approve`. Those two responses then carry `external_link`, which is one of `bound`, `already_yours`, `conflict` (the id is already another Configure account's and is never repointed), `invalid` (the id fails the shape rule and nothing was written), or `error` (the bind failed; the sign-in itself still succeeded and a token is still returned). The field appears only for an agent configured for this binding — every other response is unchanged, and no ordinary integration sends `external_id` here. ## Message Agents For iMessage, SMS, and other message agents, follow [Sign users in over SMS or voice](https://docs.configure.dev/message-agents.md). Register the line you text from once with `configure.auth.registerMessageLine()`. Resolve each sender once per turn with `configure.auth.resolveMessageIdentity({ externalId, token, validateToken: true })` and pass the result to `configure.profile()`. Check a sender you do not know yet with `configure.auth.recognizePhone()`. When they need to sign in, call `configure.auth.createMessageSignInUrl()` and send `link.url` exactly as it comes back, as bare text. Do not send a generic minted connect link in a text thread: the text stays in the thread, and the link expires. Store tokens only on the server. For Better Auth OAuth login, pass `configureBetterAuthOAuthProvider()` to Better Auth's Generic OAuth plugin. Use hosted `signInUrl({ returnTo, state, ... })` plus `exchangeSignInCode()` for account linking inside an existing Better Auth session. ## Safety - `sk_` keys are server-side only. - `pk_` keys are browser-only and restricted to hosted UI. - OAuth access and refresh tokens stay server-side. - API key identity resolves the acting agent namespace. - User input must never choose CFS storage paths. - `configure_profile_read` is the minimum proof that Configure is working. ## Hosted plugin setup (staging candidate) ChatGPT and Claude share a protected hosted save-and-return attempt. The public setup_ref is correlation, never auth. Account approval requires verified owner auth and original browser proof or a private pairing code. configure_setup_open, configure_setup_save and configure_setup_finish are gated candidate tools. Their return URL resumes the same hosted setup across approved browsers. Server SDK methods configure.setups.context(setupRef) and configure.setups.acknowledge(setupRef, revision) require the exact destination agent's secret key and recheck current user permissions. Python exposes client.setups.context(setup_ref) and client.setups.acknowledge(setup_ref, revision). The currently published store plugin may still serve only the five memory tools.