OAuthProvider

@Serializable
enum OAuthProvider : Enum<OAuthProvider> (source)

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.)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

A subscription sign-in through another tool's client (see the class doc).

Link copied to clipboard

How the user signs in.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Headers the API needs besides Authorization: Bearer <access token>.

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.