How do I manage my AI API keys and monitor token usage?
Last verified: 2026-09-19
AI keys are the fuel of the smart store assistant: without them it never runs, and with sound management you secure service continuity and cost control. The usage page gives visibility into consumption, the keys page gives control over credentials, and together they form a complete dashboard for AI use in your store. See AI assistant support for merchants, managing orders and loyalty with the assistant, and editing store design with the assistant.
What the usage page holds
- Token summaries for the current month and the last thirty days to track consumption pace continuously.
- Prompt logs showing when and how the assistant was used in your store.
- CSV export for external analysis or sharing data with your team.
- Insights and distribution for grasping usage patterns and request peak times.
- The tool audit log showing recent tool executions with each execution detail.
- Use this data to estimate cost and tune assistant reliance monthly.
Managing keys securely
- Add each provider key from the keys page, save it, and test before relying on it.
- Remember keys are tenant-scoped and encrypted, never shown as plain text.
- Prepare a fresh challenge on every save: it is a required security condition for completion.
- Review keys regularly and delete providers you stopped using.
- Never share keys with anyone outside store management whatever the reasons.
Frequently Asked Questions
How do I add a new AI provider key?
Open the AI keys page, add the wanted provider key, then save and test it before relying on it. Note that saving requires a fresh challenge as a mandatory security condition.
Can saved keys be viewed as plain text?
No. Keys are tenant-scoped and securely encrypted, never shown as plain text on any screen. This guards your credentials against leaks even when sharing the screen with others.
How do I monitor the smart assistant consumption?
From the usage page review month and thirty-day token summaries, prompt logs, insights, distribution, and the tool audit log. Export data to CSV whenever deeper analysis is needed.