create_agent_key
Generate an agent API key (floe_...) to enable AI agent payments and credit. Optionally cap spending with a rolling budget; store the one-time secret securely.
Instructions
Mint a new agent API key (floe_...) for an agent — the credential its runtime tools and x402_pay use. The plaintext key is returned ONCE; store it securely and never echo it into chat. Optionally cap the key with a rolling spend budget (fail-closed). Requires a developer key (floe_live_...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Human-readable label for the key. | |
| agent_id | Yes | Numeric agent id. | |
| budget_raw | No | Optional per-key spend budget in raw USDC (6 decimals), positive. | |
| window_seconds | No | Rolling budget window in seconds. Omit for the server default. |