kosa8 cloud ai
AI Gateway: your model provider keys, gateway settings and model spend
The AI gateway routes a sandbox's model calls (OpenAI, Anthropic and others) through kosa8, which adds your organization's own provider key on the way out. The key never enters the sandbox: a sandbox made with ai_gateway on gets the providers' base URLs and a token that names only that sandbox. Each call is logged and priced; the provider bills its own key, not kosa8.
A key is read from a hidden prompt, from stdin, or with --from-env NAME from a variable of this shell, never from the command line. Guide: https://docs.kosa8.com/guides/cloud-ai-gateway/
Example#
kosa8 cloud ai keys set openai # asks for the key (input hidden) printf %s "$ANTHROPIC_API_KEY" | kosa8 cloud ai keys set anthropic kosa8 cloud ai keys ls kosa8 cloud ai settings --all-sandboxes=true kosa8 cloud ai usage --month 2026-11