Quick guide
How they differ
Using both
The two methods work side by side in the same workspace. A common setup keeps an API key for backend scripts and uses OAuth for people who connect Claude Web or another MCP client. To add OAuth for Claude Web, follow Connect Claude Web to AGO.Why does Claude Web need OAuth?
Claude Web’s custom connectors can’t send custom HTTP headers such asX-API-Key; they only send Authorization: Bearer <token>. Use OAuth to connect Claude Web. Clients configured from a local file, such as Claude Code or Cursor, can send an API key header.
Both methods enforce scopes the same way
Whatever the authentication method, every Public API endpoint checks that the credential carries the required scope. A request without it returns403 Forbidden. Available scopes are listed in your workspace’s /.well-known/oauth-authorization-server document and shown on the consent screen. See OAuth scopes.