POST /apps/{app_name}/users/{user_id}/sessions/{session_id}— create a sessionPOST /run— run the agent and receive the full response as JSONPOST /run_sse— stream agent events via Server-Sent Events (SSE)
- Cloud Run — fully managed container platform with automatic scaling. Ideal for single agents and low-ops teams.
- Google Kubernetes Engine (GKE) — managed Kubernetes when you need more control and have a platform team.
- Agent Runtime on Agent Platform — a Google-managed runtime built specifically for agents, minimizing ops.

If you have one agent, ~50 requests/day, and limited ops experience, Cloud Run is typically the best fit. If you operate dozens of agents and have a platform team, consider GKE.
Deploying with ADK to Cloud Run
ADK includes a deploy command for Python agents that builds and deploys a Cloud Run service from your agent directory. Provide the Google Cloud project, region, and service name. Use--trace_to_cloud to enable Cloud Trace so you can inspect production requests end-to-end.
Example ADK deployment:
--service_namesets the Cloud Run service name.--trace_to_cloudwires Cloud Trace into the deployed service for distributed tracing.- If you need a private service (recommended for most production deployments), see the private deployment example below.
Building your own container
If you need a custom base image, system dependencies, or plan to deploy to GKE/other platforms, build your own container. The container runs the same ADK API server used locally, ensuring consistent runtime behavior. Minimal Dockerfile example:- Keep image layers small and cache-friendly.
- Pin key package versions in
requirements.txt. - If you need system packages, install them before Python dependencies to leverage Docker layer caching.
Example client interactions
After deployment you receive a service URL. Example values used below:- app name:
support_agent - user id:
u_42 - session id:
s_1001 - Cloud Run URL stored in the
URLenvironment variable
/run:
/run_sse:
data: line is an event frame):
If your Cloud Run service is private (recommended for many deployments), clients must authenticate using Google Cloud credentials. ADK’s deploy command exposes options to control authentication and other service settings.
Tracing production requests
When a user reports a slow request (for example, a 6-second response), you need visibility into that single request. Enabling Cloud Trace with--trace_to_cloud produces distributed traces for each production request. These traces show a timeline of operations (invocations, agent runs, LLM calls, external tool calls) and their durations.

- Open the trace for the slow request and see where time was spent (for example, a
lookup_ordertool call consuming 4 of the 6 seconds). - Correlate LLM latency with external API latency.
- Pinpoint timeouts, retries, and long-running tool calls.
Post-deploy considerations
Deployment is the beginning of production operations. Integrate safety, quality, and operations workflows into your pipeline:- Run the evaluation suite (evals) before pushing changes to production.
- Keep confirmation/approval gates for tools that can cause damage.
- Lock down every connection to external services and follow least-privilege authentication.
- Monitor performance (Cloud Trace) and usage to detect regressions or cost spikes.
- Maintain an incident playbook and rollbacks for problematic releases.

- Wrap your agent in the ADK API server, build a container (or use
adk deploy), and deploy to Cloud Run for a managed, autoscaling deployment. - Enable Cloud Trace (
--trace_to_cloud) to get per-request visibility in production. - Continue enforcing evals, approvals, and least-privilege connections as your agent evolves.
- Cloud Run documentation
- Google Kubernetes Engine documentation
- Cloud Trace documentation
- ADK deploy commands and server configuration (refer to your ADK project docs)