Add AgentID to Clerk
Scroll down and follow each step in order.
On this page
Step 1 of 8
Register an AgentID client
Open the form with Register client, then enter your app name.
Redirect URI: https://your-clerk-subdomain.clerk.accounts.dev/v1/oauth_callbackDon’t know your Clerk subdomain? Update this in step 6.
Submit with Register client.

Step 2 of 8
Copy both keys
Copy Client ID and Client secret. The secret is shown once.

Step 3 of 8
Open Clerk's SSO setup

Step 4 of 8
Fill in the provider form
Name
AgentIDKey
agentidDiscovery Endpoint
https://auth.agentid.com/.well-known/openid-configurationClient ID
Paste the Client ID from step 2.
Client secret
Paste the Client secret from step 2.

Step 5 of 8
Add the scopes
From Overview, open the SSO tab.
openid email profileNeed the owner’s name and email? Copy all five scopes:
openid email profile owner_profile owner_email
Step 6 of 8
Use Clerk's exact redirect URI
In Clerk
Copy the Authorized redirect URI.
In AgentID console
Open Your client and paste it into Redirect URI.
Click Save.

Step 7 of 8
Turn on AgentID sign-in
Under Logo, click Upload image and choose a square PNG from the brand page.
When ready, toggle Enable for sign-up and sign-in on.

Step 8 of 8
Test the sign-in
Open your sign-in page.

Using your own sign-in button? Copy this:
signIn.sso({
strategy: 'oauth_custom_agentid',
redirectCallbackUrl: '/sso-callback',
redirectUrl: '/',
})