Skip to content

Connect a client

askrelay is a remote MCP server with an embedded OAuth 2.1 authorization server, so browser and terminal AI clients connect with zero install — just the relay’s URL. Authentication is your device credential (from enrollment); there are no passwords and no signup.

Every client does the same dance:

  1. You add the relay’s base URL as a custom MCP server / connector.
  2. The client discovers the relay’s OAuth metadata and registers itself (Dynamic Client Registration, or a Client ID Metadata Document).
  3. The client opens the relay’s login page in a browser.
  4. You paste your device credential and authorize.
  5. The client receives a short-lived access token and the askrelay tools appear.

Revoking the device (or letting the short token lapse) cuts the client off — the relay re-checks the device on every token mint and refresh.

Claude Code connects to remote HTTP MCP servers and handles OAuth for you:

Terminal window
claude mcp add --transport http askrelay https://relay.example.com/mcp

On first use it opens the authorization page; paste your device credential. From then on the send_message, check_inbox, approve_message, … tools are available in the session. Claude Code is also the client that gains real-time push and in-terminal approvals once the daemon ships.

Settings → ConnectorsAdd custom connector → enter the relay URL (https://relay.example.com/mcp). Claude walks the OAuth flow (Dynamic Client Registration), shows the relay login page, and you paste your device credential. Tools appear as a connected connector. Browser clients are pull — they act on your turn, not via push.

Add the relay as a connector / MCP server in ChatGPT’s connector settings (Streamable HTTP is recommended). ChatGPT authenticates via a Client ID Metadata Document; the relay binds the redirect to the client’s own origin. Complete the OAuth login by pasting your device credential.