| [ Web Proxy ] |
| Viewing: https://adk.dev/integrations/../../tutorials/../../a2a/../../../../../../../get-started/agents-cli/ | [Back] [Original] |
[logo]
This guide shows you how to get up and running with Agent Development Kit (ADK) using Agents CLI. You can use the Agents CLI tool set with coding agents like Antigravity, Claude Code, and Codex to build, evaluate, and deploy ADK agents. For more information, see the Agents CLI documentation. Before you start, make sure you have the following installed:
uv tool
to manage environments and dependenciesIf you want to deploy ADK agents to services like Google Cloud, make sure the following tools are also installed:
Install Agents CLI by running the following command. This step installs the
agents-cli command, the ADK Python packages, and the ADK skills into any
coding agents already on your machine:
pipx:
pip:
Skills only:
The installation command is the only one you have to run yourself. Once installed, you can use your coding agent to build and run an ADK agent.
Agents CLI needs credentials for a generative AI API to run your agents. The
simplest option is a Gemini API key from Google AI Studio. Create a key on the
API Keys page, then after you
scaffold a project in the next step, open its .env file and set:
Comment out the three GOOGLE_CLOUD_* lines in the same file so the SDK uses
your key instead of Vertex AI.
If you already have a Google Cloud project, Agents CLI picks up your Application Default Credentials:
Make sure the GOOGLE_CLOUD_* lines in the generated .env file are
uncommented and set them to your project identifiers. For more information
on connecting to Google Cloud services and projects with ADK, see the
Google Cloud setup guide for ADK.
Open your coding agent and confirm it can see the skills:
Agents CLI works with any coding agent that supports
skills. Most agents list them
through a /skills command or a settings panel.
Then tell the coding agent what you want to build:
Use agents-cli to build an agent that turns long text into short
bullet-point summaries
Your coding agent activates the google-agents-cli-workflow and
google-agents-cli-scaffold skills, asks clarifying questions about the
tools your agent calls, the inputs and outputs you expect, and the success
criteria to evaluate against, and then scaffolds the project.
Next, your coding agent uses the google-agents-cli-adk-code skill to write
your agent into app/agent.py. You end up with a working project with the
agent code, tests, and an eval dataset in the following file structure:
my-agent/
app/
agent.py # main agent code
fast_api_app.py # server, telemetry, and routes
app_utils/ # session and artifact services
tests/
eval/ # evaluation datasets and metrics
integration/ # end-to-end agent tests
unit/
pyproject.toml # project config and dependencies
agents-cli-manifest.yaml # Agents CLI configuration
Dockerfile # container image for deployment
GEMINI.md # project guidance for coding agents
.env # API keys or project IDs
Use this project structure when you plan to test, evaluate, and deploy an agent.
If you want a create single-file agent for learning ADK, use the adk create
command instead.
Ask your coding agent to start the local playground, or run it yourself:
This command starts the ADK web interface with hot reload, so your changes are reflected in the project as you edit. You can access the playground at (http://localhost:8080). Select the agent at the upper left corner and paste in a few paragraphs of text. The agent replies with a short bullet-point summary.
Now that you have Agents CLI installed and your first agent running, you can evaluate and deploy it with your coding agent using instructions like the following:
For the full walkthrough, including evaluation, deployment, and observability, see the Agents CLI Tutorial: Build your first agent.
| Web Proxy Viewer | New URL | Original Page |