Skip to main content
All right — let’s get the project started. In this guide you’ll go from zero to a running ADK agent: install required tools, scaffold a project, and wire up a simple helpdesk agent that responds in natural language. Although this demo uses Google Cloud IDE and the Google AI backend, the ADK is model-agnostic. You can swap in other LLM backends (or run locally) later.

What you’ll build

  • A minimal ADK “root agent” that runs against an LLM.
  • Local development setup (Python virtual environment).
  • A scaffolded project containing the agent, package init, and .env.
  • A quick run using the ADK runner and the ADK web UI for inspection.

Prerequisites

  • Python 3.8 or newer
  • If using the Google AI backend: a Google API key (create one in AI Studio)
Helpful links:

1) Create and activate a Python virtual environment

Mac / Linux:
Windows (PowerShell):
Example terminal session:

2) Install the ADK package

Install the ADK Python package with pip:
You may see dependency installation output similar to:

3) Scaffold a new ADK project

Use the ADK CLI to scaffold a new agent project:
The CLI will prompt for a model and backend. For this demo choose:
  • Model: gemini-2.5-flash
  • Backend: Google AI (not Vertex AI)
If you do not yet have an API key, follow the CLI prompt to create one in AI Studio. Example interactive prompts:
After completion the CLI lists the created files:

4) Inspect the scaffolded files

Here’s a quick reference for the files the scaffold creates: Examples and snippets below.
  • init.py
This file makes the directory a Python package and commonly imports the agent so the ADK runtime can discover it:
  • .env
The scaffold includes an .env file containing a flag for Vertex AI usage and a placeholder for your API key. Replace the placeholder with a secure secret (see callout below). Example .env (do not commit real keys to source control):
Store real API keys securely — use environment variables, a secret manager, or another safe credential store. Avoid committing keys to source control.
  • agent.py
The scaffolded agent is an LLM-only agent. The only required element in an ADK app is a “root agent” instance that the ADK runtime will import and run. A minimal LLM root agent looks like this:
This instruction block guides the LLM’s tone, goals, and constraints. We intentionally set tools=[] for now — tools (e.g., account lookups, ticket creation, status checks) will be added in later lessons.

5) Run the agent with the ADK runner

Run the agent using the ADK runtime so it can locate and execute the root agent:
If you omit the agent name the CLI will report a missing argument:
Example run output (trimmed):
This is a plain LLM interaction — the same behavior you’d get from sending the same prompt to Gemini directly. The ADK advantage is the structured agent scaffold that’s ready to be extended with tools, traces, sessions, and a web UI.

6) Web UI

ADK includes a web interface (adk web) to interact with your agent in a browser. Use it to inspect traces, events, state, artifacts, sessions, and evals — very helpful for debugging and iterating quickly. You can use both the CLI and the web UI concurrently during development.
A dark-themed desktop screenshot of an "Agent Development Kit" web app showing a chat/helpdesk interface. The chat pane contains a user message "My monitor is blank" and an automated response asking troubleshooting questions.

Summary checklist

  • Created and activated a Python virtual environment.
  • Installed the google-adk package.
  • Scaffolded a helpdesk ADK project and inspected its files (.env, init.py, agent.py).
  • Configured the root_agent with goals, constraints, and a friendly instruction set.
  • Ran the agent via adk run to interact with the LLM.
  • Verified the web UI is available for interactive debugging and traces.
Next steps: add tools to give this agent real “powers” — for example, user account lookups, ticket creation, and system status queries. These will let the agent perform actions instead of only replying with general advice.

Watch Video