Gå til hovedinnhold

kapi credentials add

kapi add <name>

Lagre en AI-leverandørlegitimasjon i OS-nøkkelringen.

Legitimasjonsnavnet brukes til å referere til det i flyter og verktøykommandoer: kapi translate --credential my-openai -i file.json --target-lang fr

Hvis bare én legitimasjon er lagret, vil verktøy oppdage den automatisk uten --credential.

Commandcredentials add
Watch it
credentials add needs network access, an API key, or local system access, so it can’t run in the browser playground. See the guides for a recorded run, or try it locally with the installed CLI.
Flags
FlagTypeDefaultDescription
--api-key stringAPI key for the provider (omit on a terminal to be prompted, unechoed)
--base-url stringcustom API base URL, e.g. a self-hosted endpoint (applies when used with --credential, not with an inline --api-key)
--model stringdefault model name (optional)
--provider stringAI provider type (anthropic, openai, gemini, ollama)

← Back to the Command Reference