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.
The flow, once
Section titled “The flow, once”Every client does the same dance:
- You add the relay’s base URL as a custom MCP server / connector.
- The client discovers the relay’s OAuth metadata and registers itself (Dynamic Client Registration, or a Client ID Metadata Document).
- The client opens the relay’s login page in a browser.
- You paste your device credential and authorize.
- 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
Section titled “Claude Code”Claude Code connects to remote HTTP MCP servers and handles OAuth for you:
claude mcp add --transport http askrelay https://relay.example.com/mcpOn 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.
claude.ai (and Claude Desktop)
Section titled “claude.ai (and Claude Desktop)”Settings → Connectors → Add 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.
ChatGPT
Section titled “ChatGPT”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.

