Vallkey tackles a problem that deserves more attention: giving apps and AI tools access to APIs without handing over unrestricted credentials. The ghost key approach is what stands out to me: replace the real key with one that works only within the rules you define.
As a developer, I appreciate how practical that idea is. API access should come with clear boundaries, especially as agents take on more work. Vallkey’s focus on making those boundaries part of the credential itself is thoughtful and relevant. A compelling product with a clear purpose.
Hi Product Hunt, I'm Mokhtar. I built Vallkey because it bothered me that one leaked API key could do everything the real account can.
Most apps run on real API keys with full access. Those keys get copied into env files, logs and old repos, and when one leaks you usually find out from the bill.
With Vallkey, your real key stays out of your code. Each app gets a stand-in key that only works within the rules you set. You can give it:
- Spending caps and AI budgets
- A list of allowed endpoints and models, so a checkout key stays a checkout key
- Alerts when it shows up in a new country or network
- A kill switch that stops that one key, while your real key and other apps keep working
It's a good fit if you ship with OpenAI, Anthropic or Stripe, or if you run AI coding agents and don't want them holding your real keys. There's also an audit log for teams and short-lived keys for browsers and mobile apps.
You can check a project for exposed keys right now, with no account:
npx vallkey scan
When you're ready, npx vallkey init swaps your keys and npx vallkey connect sets up your app, usually with no code changes. It works with Node.js, Bun, Python, Ruby, Java, .NET, PHP and Elixir.
I'd really like to hear from you: what would stop you from using this on a real project?