skip to content

For a small team's OpenClaw Gateway connected to a hosted issue-tracker MCP server, would you configure shared or per-requester OAuth, and why?

level: principalimportance: should knowfreq 4%

answer

  1. whose account does the call act as
  2. oauth.identity
  3. operator login versus sender sign-in
  4. a reachable HTTPS origin
  5. sign-in links are bearer links

basics

~20 s

Shared OAuth, the default, suits one operator: every allowed caller acts through the account saved by openclaw mcp login. Per-requester gives each sender their own account and attribution, but needs gateway.publicOrigin and bearer sign-in links, so it fits only a mutually trusting team.

solid answer

~40 s

It depends on who calls the tools and whose name should be on the result. With shared credentials, the default, the operator runs `openclaw mcp login tracker` once and every sender allowed to reach the tools files and edits issues as the operator; that is right for one person, but on a team it hides who did what and lends the operator's permissions to everyone. `oauth.identity: "per-requester"`, available since 2026.8.1, makes each sender connect their own account on first use, which restores attribution and per-person permissions. It needs an HTTP server, no `oauth.authProfileId`, and `gateway.publicOrigin` as a reachable HTTPS origin for the callback, and its single-use sign-in links work for whoever opens them, so the docs limit it to channels where every trusted sender is mutually trusted. Neither makes one Gateway multi-tenant.

go deeper

for a junior

Recall that shared OAuth means one operator login used by everyone, and per-requester means each sender signs in with their own account.

for a middle

Explain oauth.identity, what openclaw mcp login does in each model, and why per-requester needs gateway.publicOrigin.

for a senior

Walk through the per-requester flow and its bearer-link risk, plus insufficient_scope handling, logout and narrowing scope for a shared account.

for a principal

Own the call: attribution and per-person permissions against a published HTTPS origin and bearer links, and when the honest answer is a separate agent or Gateway.

## The decision An HTTP MCP server that uses OAuth (`auth: "oauth"` in its `mcp.servers` entry) needs an account to act as. OpenClaw offers two ownership models through **`oauth.identity`**, and the choice decides **whose permissions every tool call carries** and **whose name lands on the issue tracker**. | | `shared` (default) | `per-requester` | |---|---|---| | Who signs in | The operator, once, with `openclaw mcp login <name>` | Each sender, through a link returned on first tool call | | Calls act as | The operator's account, for every allowed caller | The calling sender's own account | | Requirements | An HTTP server with OAuth | An HTTP server URL, no `oauth.authProfileId`, `gateway.publicOrigin` | | Callback | Loopback on the operator's machine, or the `--code` fallback | `<gateway.publicOrigin>/oauth/mcp/callback` | | Main risk | Everyone borrows the operator's permissions | Sign-in links are single-use bearer links | Per-requester OAuth arrived in **2026.8.1**. ## Shared credentials - The operator runs `openclaw mcp login tracker`. Tokens land in OpenClaw's owner-only state database, and the same credentials serve embedded runs, CLI runners and the local Codex app-server. - Every sender whose turn can reach `tracker__*` tools acts as the operator. For a personal assistant that is exactly right. - For a team, the issue tracker shows the operator as the author of everything, and a teammate inherits whatever the operator's account can do. - `oauth.authProfileId` can bind the server to an existing refresh-capable OpenClaw auth profile instead of a separate login; it cannot be combined with per-requester identity. ## Per-requester credentials - Set `oauth.identity: "per-requester"`. The first time a sender calls one of the server's tools, OpenClaw returns a sign-in link for that sender instead of exposing anyone else's credentials; after the provider redirects through the Gateway callback, the sender retries with their own account. - `gateway.publicOrigin` must be the externally reachable HTTPS origin of the Gateway; plain HTTP is accepted only for literal loopback hosts during local development. Publishing an origin is itself an exposure decision, covered with Gateway exposure. - `openclaw mcp login` and `logout` stay operator-only and manage shared credentials, not per-requester accounts. - **Sign-in links are single-use bearer links**: any chat participant who opens one connects their own account to the sender the link was issued for. The docs therefore recommend per-requester OAuth only where every trusted sender is mutually trusted, and list a requester-private handoff as follow-up work. ## How I would decide 1. **One operator, one assistant:** shared. Narrow `oauth.scope`, add a `toolFilter`, and keep the server's write tools away from other senders with tool policy. 2. **A mutually trusting team that needs attribution:** per-requester, with `gateway.publicOrigin` on HTTPS, sign-ins done in direct messages rather than groups, and the same tool filter. 3. **Groups that include outsiders:** neither model fixes that. Deny the server's tools to those senders, or keep the server on a separate agent or Gateway. Whichever model you choose, OpenClaw supports **one trust boundary per Gateway**; per-requester OAuth separates accounts at the provider, it does not turn one Gateway into a service for mutually untrusted users. ## Scope and re-authorisation - Request the smallest scope the tools need through `oauth.scope` or `--oauth-scope`. - When a server rejects a token with `insufficient_scope`, OpenClaw keeps the requested scope and asks for `openclaw mcp login <name>` rather than looping on refreshes that cannot add scope. - `openclaw mcp logout <name>` clears shared credentials but keeps the server definition, the fix for stuck or rotated tokens before logging in again. ## Operating either model - `openclaw mcp status --verbose` reports `authorization-required` while a shared login is still owed or needs more consent; until credentials exist, OpenClaw leaves that server out of agent runs instead of failing the turn. - Since 2026.9.6, an administrator can also choose **Sign in** for an enabled HTTP OAuth server from Settings → MCP in the Control UI, when Settings is opened on the Gateway's own loopback address or its published Tailscale address. - **Authentication saved** only means credentials were stored on that Gateway; it does not prove the server is reachable, so follow it with `openclaw mcp doctor <name> --probe`. - With per-requester identity, a missing `gateway.publicOrigin` shows up in the sign-in result and in `openclaw doctor`, which name the setting to fix. Revisit the choice when the team changes: a new member who is not mutually trusted changes the answer for both models.

  • Why is a per-requester sign-in link risky to post in a busy group chat?
    It is a single-use bearer link: whoever opens it first connects their own account to the sender it was issued for. In a group, someone else can click it and that sender's later tool calls then act as the clicker's account. The docs recommend per-requester OAuth only where senders are mutually trusted; doing sign-ins in direct messages reduces the risk.
  • With shared credentials, how do you limit what teammates can do through the operator's account?
    Request a narrow `oauth.scope`, expose only read tools with `toolFilter.include`, and use `tools.toolsBySender` or a separate agent so only chosen senders reach the server's tools at all. Policy limits who can call the tools; the scope limits what the account can do once they do.

  • Per-requester OAuth makes one Gateway safe for mutually untrusted users.
  • openclaw mcp login connects each teammate's own account.
  • Per-requester OAuth can use a plain HTTP public origin.
  • With shared credentials the tracker shows which teammate did each action.
  • A per-requester sign-in link only works for the sender it was issued to.

Assumes OpenClaw 2026.9.9; per-requester MCP OAuth arrived in 2026.8.1 and Settings sign-in in 2026.9.6; a requester-private sign-in handoff is still follow-up work.