OAuthProvider
Sign-in methods the app can offer, and what each one produces.
OPENROUTER is OpenRouter's documented flow for third-party apps and yields an ordinary API key. The others are subscription sign-ins: they reuse the public OAuth client of each vendor's own command-line tool to use the user's consumer plan. Vendors may consider that outside their terms, may revoke those clients at any time, and may restrict accounts that use them — which is why the demo keeps them behind an explicit, warned opt-in. (Claude.ai subscriptions are deliberately absent: Anthropic only permits them in its own products.)
Properties
Returns a representation of an immutable list of all enum entries, in the order they're declared.
A subscription sign-in through another tool's client (see the class doc).
How the user signs in.
Functions
Headers the API needs besides Authorization: Bearer <access token>.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.