Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: The recommended and most secure approach to managing your API key is to use environment variables. This method is more secure than hardcoding keys in your code or passing them as plaintext arguments.


Hello! That's a great question on how to securely manage API keys for your ADK agent.

Environment Variables

The best practice for managing sensitive information like API keys is to use environment variables. [1] By setting your API key as an environment variable, you avoid hardcoding it in your application, which is a significant security risk.

You can set an environment variable in your terminal like this:

macO…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hangfei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bot responded [Bot] This issue is responded by ADK bot
2 participants