UNPKG

byokay-kit

Version:

Byokay Kit lets users bring their own AI API keys and store them securely in their browser. This eliminates the need for your app to manage sensitive credentials or maintain AI API backend infrastructure.

16 lines (15 loc) 508 B
export type SupportedProvider = "openai" | "claude" | "gemini" | "grok" | "deepseek"; interface KeyManagerOptions { storage?: Storage; } export declare class KeyManager { private storage; private memoryStorage; constructor(options?: KeyManagerOptions); setKey(provider: SupportedProvider, key: string): void; getKey(provider: SupportedProvider): string | null; removeKey(provider: SupportedProvider): void; private getStorageKey; private createMemoryStorage; } export {};