Prerequisites
Step 1: Clone and Install
Clone the reference gateway repository:Step 2: Start the Gateway
Start the ATH gateway in mock mode (no external OAuth provider required):http://localhost:3000. Open http://localhost:3000/ui/dashboard to see the web dashboard.
Mock mode uses a built-in OAuth server for testing. No external accounts or API keys needed.
Step 3: Run the Demo Agent
In a second terminal, run the demo agent:- Discovery — The agent queries
/.well-known/ath.jsonto find available providers - Registration — The agent registers with the gateway (Phase A: app-side authorization)
- Authorization — The agent initiates an OAuth flow for the user (Phase B: user-side authorization)
- Token Exchange — After user consent, the agent receives an ATH token with scope intersection
- API Call — The agent makes a proxied API call using the ATH token
Step 4: Verify the Dashboard
Go back tohttp://localhost:3000/ui/dashboard — you should see the registered agent with its approved scopes.
What Just Happened?
The demo exercised the ATH trusted handshake:Next Steps
Connect a Real Provider
Set up the gateway with GitHub, Google, or any OAuth provider
Build Your Own Agent
Use the ATH Client SDK in your own agent
Understand the Architecture
Learn about gateway mode vs native mode
Read the Spec
Dive into the full protocol specification