Last updated 29 November 2026
Security
The safest place for your AI key is somewhere we can't reach. So we built TokenSpy to never hold it.
We never hold your AI keys
Your OpenAI, Anthropic or Gemini key is stored as an encrypted secret in your own Cloudflare account. The guard reads it there and sends it only to the AI provider. Our servers never receive it, so a breach at TokenSpy cannot leak your key.
When you add your key, the Add your AI key page is served by your own guard, not by TokenSpy. Your browser sends the key straight to your guard, which checks it with the AI provider and stores it as a secret. TokenSpy is never in the path.
Your prompts stay with you
Requests and responses pass through the guard in your account and go straight to the provider. The guard reports only usage numbers to us: model, token counts, estimated cost, status and timing. End-user ids are turned into a salted one-way hash before they leave your account.
Limits that hold even if we're down
Spending caps and the kill switch are enforced inside the guard, in your account. If the TokenSpy dashboard were unreachable, your guard would keep applying the last limits it received, or the backup limits stored in its own settings.
Your app talks to the guard, not to your key
- Your app sends a guard password instead of your real AI key. You can show or reset the password at any time on the AI Guard page; after a reset the old one stops working within about 20 seconds. Your real provider key is never exposed.
- The guard only allows the AI endpoints your app needs, and can be locked to your own website's address.
- The guard password is TokenSpy's own value, not an AI key, and it is kept encrypted. Your guard only receives a one-way fingerprint (hash) of it.
Optional connections to Cloudflare and Vercel
To save you work, you can connect your Cloudflare and Vercel accounts. Both are optional. You approve each one on Cloudflare's or Vercel's own page, and you can disconnect at any time in Settings.
- Cloudflare: TokenSpy can install and update the guard in your account, switch it on, and set the guard's connection to TokenSpy. It never reads your AI keys and never touches your other Workers.
- Vercel: TokenSpy writes the two guard settings into the one project you choose and starts a redeploy. It only uses variables owned by the integration and never reads your app's other variables.
- Both connection tokens are kept encrypted. If you disconnect Cloudflare, TokenSpy asks Cloudflare to cancel it, and your guard keeps running. Neither connection is ever used for AI keys.
Our side
- Every connection uses HTTPS.
- Sign-in runs on Google Firebase, with SMS verification of every new account.
- Our database blocks all direct access from browsers; every read and write goes through checked server code.
- Each company's data is kept apart using unguessable ids.
- Payments run on Stripe; we never see full card numbers.
- Guard passwords, the guard's connection to TokenSpy, and Cloudflare and Vercel connection tokens are kept encrypted.
Security has limits
TokenSpy lowers the cost of a leak or a bug, but no service can guarantee you won't be hacked. Keeping your keys, code and accounts secure is up to you. See section 3 of our terms.
Check yourself for leaked keys
Our free leak scanner checks your website or public GitHub repo, including git history, for exposed AI keys. Found keys are masked and never stored.
Report a problem
If you think you've found a security issue, please email support@aitokenspy.com. We'll reply quickly and won't take action against good-faith research.