Skip to content
Français

UsageCredential

import type { UsageCredential } from "@elie-laloum/outpost";

The fields below cover all variants; the signature specifies their allowed combinations.

  • keyVariant-dependent
    string
    Literal API key forwarded in the CLI’s API-key variable: ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY or KIMI_API_KEY. Prefer variable to keep secrets out of source files.
  • variableVariant-dependent
    string
    Name of a resolved workflow variable holding the API key; its value is forwarded in the CLI’s standard API-key variable.
export type UsageCredential =
  | {
      readonly key: string;
    }
  | {
      readonly variable: string;
    };