kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

CLI / cloud / ai / keys / set

kosa8 cloud ai keys set

Store or replace a provider's key (from a hidden prompt, stdin or --from-env)

Usage#

kosa8 cloud ai keys set PROVIDER

Stores PROVIDER's API key for the organization, sealed. It is used only to call PROVIDER through the gateway and is never returned: kosa8 cloud ai keys ls shows its last 4 characters. The key is read from a hidden prompt at a terminal, else from stdin, or from the variable --from-env names; never from argv.

Also known as: put, add

Options#

FlagTypeWhat it doesDefault
--from-envstringread the key from this environment variable of this shell—

Example#

  kosa8 cloud ai keys set openai
  printf %s "$ANTHROPIC_API_KEY" | kosa8 cloud ai keys set anthropic
  kosa8 cloud ai keys set groq --from-env GROQ_API_KEY

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · AI Agent Sandbox: Secure and Sovereign for Enterprise · Local models served by llamay · Agent gateway: MAQPNA