Skip to content
Visual explainer 2h 30m to learn 5 steps

Local, Cloud Run or Agent Runtime for ADK agents

Compare local hosting, Cloud Run and Google's managed Agent Runtime on regions, pricing, state features and prerequisites, and record a choice.

By Invicly Tech, , in Google ADK with Python for AI Agents. About 11 minutes to read.

Topic 23 of 29

In short

You can run an ADK agent on your own machine, on Cloud Run, or on Agent Runtime, Google's managed service for agents in the Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine). Each moves more work to Google and adds its own prerequisites, regions and costs. Agent Runtime gives managed sessions and Memory Bank but needs a billed project and supported regions; Cloud Run gives more control and you bring your own session store.

Explained simply

Once an agent works, you have to decide where it lives. There are three common answers: your own computer or server, Cloud Run, or Agent Runtime. Agent Runtime is Google's managed hosting for agents inside the Gemini Enterprise Agent Platform; it used to be called Vertex AI Agent Engine.

The more Google manages, the less you have to build. On your laptop you manage everything. On Cloud Run you get scaling, HTTPS and identity, but you add the session database yourself. On Agent Runtime you also get managed sessions and long-term memory, but you accept its regions, prices and ways of working.

None of these is free in production. ADK itself is open source, but the model calls, hosting, storage and memory all cost money. Agent Runtime needs a billed Google Cloud project. Check the current pricing pages before you decide, because they change.

Write the decision down: what you chose, why, what it costs, which region, and what would make you change your mind. That short record saves long arguments later. If you cannot use a billed project, you can still do this topic as a paper comparison.

Press Play on a diagram to walk through it one step at a time.

CompareThree places to run an ADK agent
Local
  • adk run, adk web or adk api_server
  • Free apart from model calls
  • In-memory or SQLite sessions
  • Not reachable or durable for users
Cloud Run
  • Container you control, any region with Cloud Run
  • Pay for instance time; free tier exists
  • You add Cloud SQL or another session store
  • IAM, revisions and traffic splits built in
Agent Runtime
  • Managed agent hosting via adk deploy agent_engine
  • Billed project required; no-cost tier then usage pricing
  • Managed Sessions and Memory Bank
  • Only regions on the Agent Platform locations page
MapA quick decision guide
Where should the agent run?
  • Still building or demoing
    • Local with adk web
    • SQLite sessions if you need restarts
  • Need full HTTP control or a custom stack
    • Cloud Run
    • Bring Cloud SQL for sessions
  • Want managed sessions and memory
    • Agent Runtime
    • Check region and pricing first
  • No billed project allowed
    • Local or on-premises container
    • Design-only comparison for this topic

In depth

What each option manages for you

Locally, you start the agent with adk run, adk web or adk api_server. You manage the machine, the network, TLS, restarts and the session store, which defaults to memory. It is perfect for development and demos, not for users.

On Cloud Run, Google manages the servers, scaling, HTTPS endpoints, IAM on invocations and revision history. You still own the container, the FastAPI server ADK generates, the session database, secrets and rollouts.

On Agent Runtime, you deploy the agent code and its declared dependencies, and the service provides the API server, scaling, managed Sessions, Memory Bank and IAM-based access. You do not ship the ADK API server or web UI. You call the deployed agent through the Agent Platform API, whose resource is still called a ReasoningEngine, with :query and :streamQuery methods. You give up some control over the HTTP layer and the runtime environment.

LayersWho manages each layer on Agent Runtime
  1. 1
    Your agent code

    Agent, tools, instructions, dependencies: you

  2. 2
    API server and scaling

    Managed by Agent Runtime

  3. 3
    Sessions and Memory Bank

    Managed services, billed separately

  4. 4
    Identity and network

    IAM roles; VPC Service Controls supported

  5. 5
    Model access

    Gemini on Agent Platform, billed per token

Regions and prerequisites

Cloud Run is available in most Google Cloud regions. Agent Runtime is available in fewer, and its supported regions are listed on the Agent Platform locations page; the ADK docs use us-central1 in examples. A Gemini model may also be offered in only some regions. If your organisation requires data to stay in one area, check all three: hosting, model and session storage.

Agent Runtime prerequisites from the ADK docs: a project with an active billing account (an expired free trial needs upgrading), the Agent Platform API aiplatform.googleapis.com and the Cloud Resource Manager API enabled, and gcloud set up with gcloud auth login and gcloud auth application-default login. Deploy with adk deploy agent_engine and the --project, --region and --display_name flags. Cloud Run needs the Cloud Run, Cloud Build and Agent Platform APIs and the IAM roles from the previous topic.

  • Check region for hosting, model and storage
  • Agent Runtime: billing, aiplatform and Cloud Resource Manager APIs
  • Deploy: adk deploy agent_engine --project --region --display_name

Pricing and quotas

Do not copy prices from a blog post; read the current Agent Platform and Cloud Run pricing pages and write the date you read them. As of late 2026, Agent Runtime bills compute and memory by the hour after a no-cost tier, and Sessions and Memory Bank have their own usage charges. Cloud Run bills instance time and requests after its free tier, and Cloud SQL bills for the instance whether or not it is busy.

Model tokens are often the largest line for a support agent, and they are the same on every hosting option. So the hosting decision is usually about operations and features, not about token cost. Also check quotas: requests per minute for the model, and limits on deployed agents and sessions, listed on the quota and system limits pages.

Session and memory features

Sessions keep the history and state of one conversation. Locally they default to memory. On Cloud Run you choose DatabaseSessionService with a SQL database, or point at the managed service with an agentengine:// session URI. On Agent Runtime, managed Sessions are built in and the ADK VertexAiSessionService talks to them.

Long-term memory, facts about a user that carry across sessions, is a separate feature. Memory Bank on Agent Runtime extracts and recalls those facts for you. Without it, you would build memory yourself, for example with a database and retrieval. For a read-only support assistant, managed long-term memory may be unnecessary and adds data you must govern, so choose it only if the contract needs it.

Learn it in 5 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    List what each option manages~30m
  2. 2
    Check regional availability~30m
  3. 3
    Compare pricing and quotas~30m
  4. 4
    Compare session and memory features~30m
  5. 5
    Record the choice and its limits~30m

Key points

  • The ADK library is open source under Apache 2.0; the costs come from models and hosting, not a licence.
  • Agent Runtime is a paid service with a no-cost tier; check the current pricing page and quotas before choosing it.
  • The CLI command is still adk deploy agent_engine, and the API resource is still called ReasoningEngine after the rename.
  • Check that your region offers both the hosting option and the Gemini model you need, especially for data-residency rules.
  • Write the choice down with its limits and the condition that would make you change it.

Key terms

Tap a card to flip it. 0/5 known

Examples

A short decision record

Write one page per decision. Context: who uses the agent and which rules apply. Options: local, Cloud Run, Agent Runtime. Decision and reasons. Consequences and limits. Revisit trigger: the condition that would reopen the decision. Keep it in the repository next to the code, dated, with links to the pricing and locations pages you read.

text
ADR-007 Hosting for the support assistant (2026-12-02, google-adk 2.15.1)
Context: read-only agent, EU users, data must stay in europe-west1
Options: local container, Cloud Run + Cloud SQL, Agent Runtime
Decision: Cloud Run + Cloud SQL (PostgreSQL) in europe-west1
Why: region fits residency rule; full control of auth and rollouts;
     no long-term memory needed by the contract
Costs: Cloud Run instance time, Cloud SQL instance, Gemini tokens
Limits: we operate the session DB, backups and retention ourselves
Revisit if: we need Memory Bank, or ops load on the DB grows

Trying Agent Runtime in a sandbox project

Prerequisites: a separate billed sandbox project, the APIs enabled and gcloud logged in. Step 1: deploy the agent folder with adk deploy agent_engine. Step 2: note the reasoning engine resource ID in the output. Step 3: query it through the Agent Platform SDK or REST and check the reply and the session in the console. Step 4: delete the deployed agent from the Agent Runtime page in the console when done, so nothing keeps billing. If you cannot use a billed project, skip the deploy and fill in the decision record from the docs.

bash
gcloud config set project <sandbox-project-id>
gcloud services enable aiplatform.googleapis.com cloudresourcemanager.googleapis.com
adk deploy agent_engine \
  --project=<sandbox-project-id> \
  --region=us-central1 \
  --display_name="Support agent trial" \
  support_agent

Quick reference

  • Agent Runtime = managed agent hosting, formerly Vertex AI Agent Engine
  • Deploy to Agent Runtime: adk deploy agent_engine --project --region --display_name AGENT_DIR
  • Deployed agents are ReasoningEngine resources with :query and :streamQuery methods
  • Agent Runtime needs a billed project; check the locations page for regions
  • Cloud Run: you bring the session store; Agent Runtime: managed Sessions and Memory Bank
  • ADK is Apache 2.0; you pay for models, hosting and storage
  • Record the choice with costs, region, limits and a revisit trigger

Common mistakes

  • Choosing a managed runtime before checking that it is offered in the region your data must stay in.
  • Comparing only hosting price and forgetting model tokens, session storage and memory charges.
  • Following an older tutorial whose names no longer match; match commands to the docs for your pinned ADK release.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1What was Agent Runtime previously called?

Question 2

2Your data must stay in one EU region. What do you check first?

Question 3

3Which statement about cost is true?

Question 4

4Which option ships the ADK API server inside your deployment?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Make a table listing what you manage yourself in each of the three options.

  2. Exercise 2medium

    Estimate the monthly cost drivers for 2,000 support conversations of 4 turns each, without exact prices.

  3. Exercise 3hard

    Write a decision record for a team that needs managed memory across sessions but cannot use us-central1.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Is Agent Runtime the same as Agent Engine?
Yes. Agent Runtime is the current name for what was Vertex AI Agent Engine. The CLI command adk deploy agent_engine and the ReasoningEngine API resource kept their old names.
Can I use Agent Runtime's sessions from Cloud Run?
Yes. adk deploy cloud_run accepts an agentengine:// session service URI, which uses the managed sessions while you host the agent on Cloud Run.
Do I need Agent Runtime to use ADK in production?
No. Cloud Run, GKE or any container platform works. Agent Runtime is a choice for teams that want managed sessions, memory and hosting.

Go deeper

ShareXLinkedInWhatsApp