Skip to content
agentgateway has joined the Agentic AI Foundation — Learn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

agctl standalone keys create

Page as Markdown

Reference for the agctl standalone keys create command.

Create an API key and print it

Synopsis

Create an API key and print it. The key is stored as a SHA-256 hash and cannot be retrieved again.

Budgets are written as AMOUNT[/WINDOW], where AMOUNT is in USD (10usd or $10) or tokens (1000000tokens), and WINDOW defaults to 30d.

agctl standalone keys create NAME [flags]

Examples

  agctl standalone keys create alice
  agctl standalone keys create ci --model 'openai/*' --budget 5usd/24h --budget-action block

Options

      --budget stringArray     Budget as AMOUNT[/WINDOW], for example 10usd/30d or 1000000tokens/24h (repeatable)
      --budget-action string   Action when a budget is exceeded: audit or block (default "audit")
  -h, --help                   help for create
      --model strings          Model pattern the key may use (repeatable; default all)

Options inherited from parent commands

      --address string      Standalone agentgateway admin address
      --gateway string      Gateway name from the config file
  -k, --kubeconfig string   kubeconfig

SEE ALSO

Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate ↵ select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.