Skip to Content
Joring Docs
Developers

OAuth for hosted agents

How claude.ai, ChatGPT and other hosted agents sign in to Joring without an API key.

OAuth is a standard way to let an app act for you without sharing a password or a key. Hosted agents such as claude.ai and ChatGPT connect to Joring with OAuth. Each person signs in with their own Joring account and approves the connection in their browser. Nobody has to paste an API key into the agent. Joring runs an OAuth 2.1 authorization server for this. You do not configure it, and you can disconnect a connection at any time.

Connect a hosted agent

Add the MCP server in the agent

Give the agent the server address https://api.joring.ai/mcp. You need no client ID or secret.

Sign in and choose a team

The agent opens joring.ai. Sign in if you are not signed in already. Check the agent's name and the address it returns to. Choose the team in the Workspace list, then choose Connect.

Use it like any other agent

The agent gets the MCP tools for the scopes that you approved. Joring records each change it makes to a trail in the audit log, with the agent's name and yours.

What you are approving

The consent page shows:

  • Who is asking. "Published by its vendor" means that the agent's identity comes from a metadata document on the vendor's own domain. "Self-registered" means that the agent registered itself, so Joring cannot confirm who published it. Continue only if you started the connection yourself.
  • What it can do. Read, write and publish trails, as described in API key scopes.
  • Where. One team where you can write trails, whose plan includes API access (Team or Enterprise), and that is not scheduled for deletion. Joring staff can also choose the Joring catalog. An app that returns to a website can connect only to a team that has verified that website's domain. Hosted AI products that Joring recognizes are the exception.

A connection acts as you. If you can no longer write trails in the team, or you leave it, the connection stops working.

Disconnect an agent

Settings → API keys → Connected agents lists your connections. Choose Disconnect to end one. The Owner, Co-owners, Admins, IT admins and Security admins can choose All to see every connection in the team, and can disconnect any of them. Disconnecting revokes all of the connection's tokens at once.

For people building a client

Joring implements OAuth 2.1 with PKCE (S256). PKCE (Proof Key for Code Exchange) stops anyone who intercepts the sign-in code from using it. Joring publishes the discovery documents that MCP clients expect, and it accepts both ways that an MCP client can identify itself:

Authorization server metadatahttps://api.joring.ai/.well-known/oauth-authorization-server (RFC 8414)
Protected resource metadatahttps://api.joring.ai/.well-known/oauth-protected-resource/mcp (RFC 9728). A 401 from /mcp also names it, in the WWW-Authenticate header.
Client identityA client ID metadata document: the client_id is an https URL that serves your client metadata. Or dynamic registration at POST /oauth2/register (RFC 7591, public clients only).
Grantsauthorization_code with PKCE, and refresh_token. Refresh tokens rotate, and reusing an old refresh token revokes every token from that sign-in. A metadata document can name other grants, but Joring registers the client with these two.
ResourceSend resource=https://api.joring.ai/mcp (RFC 8707). Tokens are bound to it.
Scopestrails:read, trails:write, trails:publish. A request without scope gets the client's registered default scopes. If the client registered none, or identifies itself with a metadata document, the default is trails:read trails:write, without publish.
Redirect URIsOn the person's device: http:// on localhost, 127.0.0.1 or [::1], or an app link such as cursor://…. On the web: an https:// address on a hosted AI product that Joring recognizes (ChatGPT, Claude, Microsoft Copilot Studio, VS Code's web redirect), or on a domain that the approving team has verified. Registration refuses any other address with invalid_redirect_uri. At /oauth2/authorize, a metadata-document client that lists such an address gets invalid_client, and a request that names one gets invalid_request.

Joring removes a self-registered client if nobody approves it within a day. To start over, register again.

Access tokens are opaque and last one hour. Refresh tokens last 90 days. An access token works on the REST API as well as on MCP.

NextMCP server

The tools an agent gets, and how to add Joring to an MCP client.

On this page