u/nguyenquyhai

▲ 1 r/OpenAIDev+1 crossposts

Where to hide OpenAI or Anthropic API key token?

I have vibed the app that read document and also use LLM like ChatGPT or Claude API to handle some language tasks. I intend to deploy it into Vercel via Github. But it means that everyone can see my key token from .env file. What I want to do is:

  1. Don't let any body see my LLM token since it will take cost if everyone use it outside

  2. I want to limit the cost of LLM - it means that if it hits my limit each day / each month, everyone is no longer use it. I need to care about that because the MVP I don't have SaaS pro plan so that I need to save money.

Thank you everyone!

reddit.com
u/nguyenquyhai — 6 days ago