Skip to content
Français

AccountCredential

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

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

  • fileVariant-dependent
    string
    Host path of a session file, or of a Kimi Code profile directory, read instead of the CLI’s default location. ~ expands to the host home; relative paths resolve from the current directory. Only regular files up to 1 MiB are read.
  • keyVariant-dependent
    string
    Literal subscription token forwarded as CLAUDE_CODE_OAUTH_TOKEN (Claude Code) or COPILOT_GITHUB_TOKEN (Copilot); other CLIs reject it. Prefer variable to keep secrets out of source files.
  • variableVariant-dependent
    string
    Name of a resolved workflow variable holding the subscription token, forwarded like key; Claude Code and Copilot only.
export type AccountCredential =
  | {
      readonly file: string;
    }
  | {
      readonly key: string;
    }
  | {
      readonly variable: string;
    };