cd /news/ai-agents/ask-hn-how-do-you-provide-your-ai-ag… · home topics ai-agents article
[ARTICLE · art-46361] src=news.ycombinator.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Ask HN: How do you provide your AI agents with access to credentials/secrets?

A developer on Hacker News describes using a lightweight API proxy to provide AI agents with access to credentials without exposing secrets, though the approach does not scale to cloud environments.

read1 min views1 publishedJul 1, 2026

I don't. I write a lightweight API proxy, usually as a CLI app, that takes requests from the agent, adds secrets and makes the request, and then passes the response transparently to the agent. The agent can use APIs without ever seeing secrets or tokens.

This approach doesn't scale and won't work in the cloud without a lot more effort, but that's not been a problem for me yet.

── more in #ai-agents 4 stories · sorted by recency
── more on @hacker news 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ask-hn-how-do-you-pr…] indexed:0 read:1min 2026-07-01 ·