@earendil-works/pi-ai
Version:
Unified LLM API with automatic model discovery and provider configuration
15 lines • 696 B
TypeScript
/**
* OpenRouter OAuth PKCE flow.
*
* OpenRouter exchanges an authorization code for a permanent, user-controlled
* API key rather than an expiring access/refresh token pair. The callback is
* handled by a one-shot loopback server on an ephemeral port, raced against a
* manual prompt so remote/headless sessions can paste the redirect URL when
* the browser cannot reach the loopback server.
*
* NOTE: This module uses node:http (via callback-server.ts) for the OAuth callback server.
* It is only intended for CLI use, not browser environments.
*/
import type { OAuthAuth } from "../types.ts";
export declare const openRouterOAuth: OAuthAuth;
//# sourceMappingURL=openrouter.d.ts.map