Skip to main content
For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending .md to its URL or sending Accept: text/markdown.
Parallel provides an OAuth 2.0 provider that allows applications to securely access user API keys with explicit user consent. This enables building applications that can make API calls to Parallel on behalf of users without requiring them to manually share their API keys.

Provider URL

https://platform.parallel.ai

Quick Start

1. Start Authorization Flow

2. Handle Callback & Exchange Code

3. Use the API Key

Authentication Flow

The OAuth flow follows these steps:
  1. Authorization Request: Redirect user to Parallel’s authorization endpoint
  2. User Consent: User sees your application hostname and grants permission
  3. API Key Selection: User selects an existing API key or generates a new one
  4. Authorization Code: User is redirected back with an authorization code
  5. Token Exchange: Exchange the code for the user’s API key using PKCE

Features

  • PKCE Required: Code challenge/verifier mandatory for all clients
  • No Client Secret: Public client design - no secrets to manage
  • User Consent: Users explicitly approve each application by hostname
  • One-Time Codes: Authorization codes can only be used once
  • Direct Access: The access_token returned is the user’s actual Parallel API key

MCP Compatibility

This OAuth provider is fully compatible with the Model Context Protocol (MCP) specification for authorization. MCP clients can discover and use this OAuth provider automatically through the well-known endpoints at /.well-known/oauth-authorization-server. You can see an example of this OAuth provider being used in practice in the Parallel Tasks SSE recipe.