ConfigModule

hyperswitch-prism · infra, config-management, api-keys, environment-settings, runtime-config

Core configuration management for API keys, environment, and runtime settings.

// Source: https://github.com/juspay/hyperswitch-prism | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import dotenv from "dotenv";
import YAML from "yaml";
import { findWorkspaceRoot } from "./utils.js";

export type LlmProtocol = "openai" | "anthropic";

/**
 * AI runner type - determines which CLI tool to use for AI execution
 */
export type RunnerType = "opencode" | "claude-code";

export interface LlmConfig {
  baseUrl: string;
  apiKey: string;
  model: string;
  protocol: LlmProtocol;
  maxTokens: number;
  temperature: number;
  timeoutMs: number;
  authHeader?: string;
  authScheme?: string;

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key