{"slug": "ask-hn-how-do-you-provide-your-ai-agents-with-access-to-credentials-secrets", "title": "Ask HN: How do you provide your AI agents with access to credentials/secrets?", "summary": "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.", "body_md": "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.\n\nThis 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.", "url": "https://wpnews.pro/news/ask-hn-how-do-you-provide-your-ai-agents-with-access-to-credentials-secrets", "canonical_source": "https://news.ycombinator.com/item?id=48744486", "published_at": "2026-07-01 10:02:37+00:00", "updated_at": "2026-07-01 10:20:34.547642+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "developer-tools"], "entities": ["Hacker News"], "alternates": {"html": "https://wpnews.pro/news/ask-hn-how-do-you-provide-your-ai-agents-with-access-to-credentials-secrets", "markdown": "https://wpnews.pro/news/ask-hn-how-do-you-provide-your-ai-agents-with-access-to-credentials-secrets.md", "text": "https://wpnews.pro/news/ask-hn-how-do-you-provide-your-ai-agents-with-access-to-credentials-secrets.txt", "jsonld": "https://wpnews.pro/news/ask-hn-how-do-you-provide-your-ai-agents-with-access-to-credentials-secrets.jsonld"}}