Connect an assistant¶
Find which assistants can connect to a Hivemind instance, how each one authenticates, and which page to follow.
Every assistant connects to the same single MCP endpoint, https://<host>/mcp
(for example https://hivemind.example.org/mcp). That endpoint serves short,
mid and long memory; never add a separate graph server. What differs between
assistants is where the MCP client runs and how it proves who it acts for.
Two ways to authenticate¶
- OAuth sign-in. The person adds the instance URL in the assistant, signs
in to Hivemind in the browser and approves the connection on a Hivemind
consent page. The connection acts as an agent linked to that person, within
the spaces checked on the consent page and the person's current grants.
OAuth grants
readandwriteonly, nevermanageor operator rights. Hivemind never receives the person's Anthropic or OpenAI account. The administrator must first enable the OAuth policy and allow the client; see OAuth MCP connector. - Bearer token. A token issued for one agent is placed in the client's
configuration as an
Authorization: Bearerheader, read from an environment variable. This works without the OAuth policy, but only in clients that let you set request headers, such as Claude Code and Codex.
Which page to follow¶
| Assistant | Where the MCP client runs | Authentication | What the instance needs | Page |
|---|---|---|---|---|
| Claude Code (CLI) | Your computer | OAuth sign-in or bearer token | Reachable from your computer | Connect Claude Code |
| Codex (CLI) | Your computer | OAuth sign-in or bearer token | Reachable from your computer | Connect Codex |
| Claude.ai, Claude Desktop and the Claude mobile apps, individual account | Anthropic's cloud | OAuth sign-in (custom connector) | HTTPS on port 443 with a publicly trusted certificate, reachable from Anthropic's IP ranges | Connect Claude.ai |
| Claude Team or Enterprise organization, for all members | Anthropic's cloud | Claude Auto-connect or per-member OAuth, set up by an organization owner | As above, plus the organization trust set up by a Hivemind operator | Connect a Claude organization |
| ChatGPT (web) | OpenAI's cloud | OAuth sign-in (custom MCP server) | Public HTTPS, reachable from OpenAI's servers | Connect ChatGPT |
| Any other MCP client with streamable HTTP | Depends on the client | Bearer token, or OAuth when the client supports it and the administrator allows it | Depends on the client | Agent memory setup guide |
A local or private-network URL that works for Claude Code or Codex does not work for the hosted assistants: their requests come from the provider's servers, not from your computer.
Supported clients and registration modes¶
Hivemind's OAuth server can accept the published client identity of each OAuth client above; the administrator chooses which ones the instance allows.
| Client | Registration mode accepted |
|---|---|
| Claude Code | Claude's published client metadata document, or a client pre-registered by the operator |
| Codex CLI | OpenAI's published Codex client metadata document, or a client pre-registered by the operator |
| Claude.ai, Claude Desktop, Claude mobile | Claude's published web client metadata document, or a client pre-registered by the operator |
| ChatGPT | OpenAI's published web client metadata document |
| OpenCode | OpenCode's published client metadata document, or a client pre-registered by the operator |
The administrator allows OpenCode as described in
OAuth MCP connector. A custom redirect_uri
in OpenCode's configuration makes it register itself automatically, which
Hivemind does not offer.
The Claude Code and Codex pages are written for Claude Code 2.1.286 and Codex CLI 0.162.1.
Dynamic Client Registration is not offered, so a client option that registers itself automatically does not work. The client pages say which option to pick. Registration modes, redirects and error pages are specified in native OAuth for MCP clients.
Before you connect any assistant¶
- Ask your administrator for the instance URL and which spaces you can use.
- For OAuth: you need a Hivemind account that can sign in to the Portal, and at least one space granted to you. Without a space, the consent page explains why and disables Allow.
- For a bearer token: on an instance with Portal accounts, create an agent and issue its token under Account → Agents; otherwise ask your administrator for one. Use one token per agent and never share it between assistants.
Next¶
- End users of an instance someone else runs: Connect your assistant.
- Administrators enabling the hosted assistants: OAuth MCP connector.
- Once connected, try the tutorial.