A super trivial setup of the ADK (Google's Agent Development Kit), ready to be deployed to Cloud Run as a Docker container.
- Claim Google CLoud OnRamp credits (if provided).
- Go to the Google Cloud Console: console.cloud.google.com
- Create a new Google Cloud project.
- Authenticate and select your project:
gcloud auth login gcloud projects list gcloud config set project PROJECT_ID - Clone the repository:
git clone https://github.com/avedave/adk_cloud_run.git cd adk_cloud_run - Create and activate a virtual environment:
python -m venv .venv # On macOS/Linux: source .venv/bin/activate # On Windows CMD: # .venv\Scripts\activate.bat # On Windows PowerShell: # .venv\Scripts\Activate.ps1
- Install dependencies:
pip install -r requirements.txt
- Configure your API Key:
- Get your Gemini API Key from Google AI Studio.
- Copy
.env.sampleto a new file named.env. - Add your
GOOGLE_API_KEYto the.envfile.
- Run the agent locally:
- In the console:
adk run multi_tool_agent
- On the web:
adk web
- In the console:
- Deploy to Cloud Run:
gcloud run deploy multi-tool-agent --source . --region europe-west1 --allow-unauthenticated --set-env-vars="GOOGLE_GENAI_USE_VERTEXAI=FALSE, GOOGLE_API_KEY=" --labels dev-tutorial=codelab-dos
Deployment documentation: https://google.github.io/adk-docs/deploy/cloud-run/#python---gcloud-cli