Skip to main content

kapi credentials add

kapi add <name>

Save an AI provider credential to the OS keychain.

The credential name is used to reference it in flows and tool commands: kapi translate --credential my-openai -i file.json --target-lang fr

If only one credential is saved, tools will auto-detect it without --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-keystringAPI key for the provider (omit on a terminal to be prompted, unechoed)
--base-urlstringcustom API base URL, e.g. a self-hosted endpoint (applies when used with --credential, not with an inline --api-key)
--modelstringdefault model name (optional)
--providerstringAI provider type (anthropic, openai, gemini, ollama)

← Back to the Command Reference