Know the data flow.
Understand the limits.
A practical overview for teams evaluating TokenSave. This page describes the public implementation; it is not an independent security audit or a contractual assurance.
How the hosted proxy works
Your server sends prompts and a provider API key to TokenSave. On a cache miss, TokenSave forwards the request to the selected AI provider. Eligible provider responses are cached and request metadata is recorded.
The hosted proxy is not zero-knowledge: it receives request content and credentials. Keep provider keys on your server when integrating. The browser playground also sends the key you enter to the hosted proxy.
| Data | What the proxy implementation does |
|---|---|
| Provider keys | Reads credentials from the request and uses them for provider authentication. The reviewed proxy route does not explicitly persist provider keys. This is not a guarantee about every infrastructure log, error path or monitoring service. |
| Prompts & responses | Processes message content and derives a cache key from it. Provider response payloads can be stored in Redis with a configured 30-minute cache TTL. A response may contain text from the prompt. Cache expiry does not establish a retention policy for all other systems. |
| Request metadata | Records provider, model, timing, estimated cost, tags and a verified account identifier when a valid TokenSave key is supplied. Recent request and audit lists are capped by count; no time-based retention policy is established here. Avoid sensitive values in tags. |
| Rate-limit identifiers | Uses a verified account identifier or a provider-credential HMAC for request budgets. Forwarded IP headers do not select the rate-limit identity. Other infrastructure may have its own logs. |
| External services | The project uses Vercel, Supabase, Upstash and Sentry, plus the selected AI provider. Review each applicable service and deployment configuration; this page does not promise a particular data region or deletion schedule. |
Assurance you can verify
Public development checks
The repository includes build, type and unit-test checks, secret scanning and CodeQL analysis. These are development safeguards, not certification or proof that every route is secure.
Current project limits
Automated tests cover API/security boundaries, SDK and accounting behavior, browser interactions and isolated Redis integration. There is no third-party penetration test or SOC 2 certification. Streaming, tool calling and provider-compatible endpoints remain on the roadmap.
Before a production evaluation
- Review tenant isolation, authentication and cache matching against your deployment requirements.
- Confirm what can be logged, where data is processed, retention and deletion arrangements, and who can access it.
- Agree any required data-processing terms, support coverage, incident contacts and service commitments in writing.
- Compare representative outputs and actual provider invoices. Current cost metadata includes estimates.
No standard SLA, data-residency commitment or compliance certification is promised by this page.
Discuss your evaluation with support →Deployment questions
Does self-hosting mean data stays inside my network?
No. Provider calls still leave your network unless you change the implementation and deployment. The project also depends on configured services such as authentication and Redis. Review all outbound connections and monitoring before self-hosting.
Is there a production-ready published SDK?
The repository describes the SDK as source-only and not yet published to npm. Review the source and compatibility yourself. The hosted proxy uses a custom JSON format; changing an existing provider SDK base URL is not sufficient.
Are cached responses isolated for my organisation?
Cache identities cover the provider credential, provider, resolved model, quality and full messages. Verified account namespaces are separate from anonymous BYOK calls. Review your credential-sharing and deployment boundaries before processing confidential data.
Report a security concern privately
Use GitHub private vulnerability reporting or email support@tokensave.in. Include the affected version, impact and reproduction steps. Do not include API keys or customer data.