Normalizes AI model configuration data for provider-specific usage.
// Source: https://github.com/quoroom-ai/room | License: MIT | Copyright 2026 Quoroom
// Provided via justclaw.it.com; keep this notice with the code.
import type Database from 'better-sqlite3'
import { execSync } from 'node:child_process'
import * as queries from './db-queries'
import { checkClaudeCliAvailable } from './claude-code'
import { probeOllamaRuntime } from './local-model'
export type ModelProvider =
| 'claude_subscription'
| 'codex_subscription'
| 'ollama_local'
| 'openai_api'
| 'anthropic_api'
| 'gemini_api'
export interface ModelAuthStatus {
provider: ModelProvider
mode: 'subscription' | 'api' | 'local'
credentialName: string | null
envVar: string | null
hasCredential: boolean
hasEnvKey: boolean
ready: boolean
maskedKey: string | null
}
export f
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key