close
View as MarkdownEdit on GitHub

Getting started

Paste one line into your coding agent. It installs Agents CLI, designs a first agent with you, and runs it locally.

Paste into your coding agent: Follow google.github.io/agents-cli/setup.md to build my first agent

Agents CLI is a CLI and a set of skills for building, evaluating, and deploying agents on Google Cloud, with ADK, LangChain or the Claude Agent SDK. Agents CLI handles everything around your agent: scaffolding, evaluation, deployment, and observability.

What your coding agent does#

  1. Installs Agents CLI

    Reads setup.md and runs uvx google-agents-cli setup, which installs the agents-cli command and its skills.

  2. Asks for your language

    Python or Go, with ADK as the framework. For LangChain or the Claude Agent SDK, it scaffolds from a first-party template.

  3. Designs the agent with you

    Asks what the agent should do, which tools it calls and how to judge success, then scaffolds the project and writes the agent with an eval dataset.

  4. Connects a model

    A Gemini API key from AI Studio, or a Google Cloud project. See Authentication. The API key works without code changes in ADK Python and LangChain projects. An ADK Go project also needs a change to app/agent.go (details). The Claude template needs a Google Cloud project.

  5. Opens the playground

    The agents-cli playground command starts the local playground and prints its URL (http://127.0.0.1:8080/... by default) so you can talk to your agent. ADK templates serve the ADK web UI and the LangChain template runs the LangGraph dev server. The Claude template has no playground (First-party frameworks).

Evaluate and deploy#

Keep going in the same session:

Write evals for this agent and run them
Deploy this to Cloud Run

See Evaluation and Deployment for what happens under the hood.

What the skills teach your coding agent#

Agents CLI installs 7 skills:

SkillWhat your coding agent learns
google-agents-cli-workflowDevelopment lifecycle, code preservation, model selection
google-agents-cli-adk-codeADK Python and Go APIs: agents, tools, orchestration, callbacks
google-agents-cli-scaffoldProject scaffolding: create, enhance, upgrade
google-agents-cli-evalEvaluation lifecycle: datasets, metrics, generate and grade, compare, analyze, optimize
google-agents-cli-deployDeployment: Agent Runtime in Gemini platform, Cloud Run, GKE, CI/CD
google-agents-cli-publishRegistration in the Gemini app
google-agents-cli-observabilityCloud Trace, logging, third-party integrations

See the skills reference for details.

Run the steps yourself#

Prerequisites#

Required: uv. It downloads Python 3.11 or later if you don't have it.

Recommended: Node.js, so setup installs the skills with npx skills and agents-cli update can update them. Without it, setup copies the skills instead.

Optional (for deployment): Google Cloud SDK, Terraform

Install#

uvx google-agents-cli setup

The setup command installs the CLI and the skills for the coding agents it finds on your machine.

Alternative installation methods

pipx: pipx install google-agents-cli && npx skills add google/agents-cli

venv + pip: pip install google-agents-cli && npx skills add google/agents-cli

Skills only: npx skills add google/agents-cli

Platform support: macOS, Linux, and Windows (WSL 2). Native Windows is not officially supported.

Authenticate#

If you're already authenticated with gcloud, Agents CLI picks up your Application Default Credentials automatically.

Otherwise, the quickest option is a Gemini API key from AI Studio:

export GEMINI_API_KEY="your-key-here"

In a scaffolded Python project, also comment out the GOOGLE_* lines in .env so the agent calls the Gemini API instead of Google Cloud. A Go project also needs a change to app/agent.go; see .env. See Authentication for full details.

Build with your coding agent#

Open your coding agent and check that it lists the google-agents-cli-* skills. In Claude Code, run /skills. Most other coding agents have a similar command or a settings panel. Then ask it to build something:

Build a support agent that answers questions from our docs

Build without a coding agent#

You can drive the entire workflow from your terminal, with no coding agent.

# Create a minimal agent project
agents-cli create my-agent --prototype --yes

# Install dependencies and start the dev playground
cd my-agent
agents-cli install
agents-cli playground

In ADK templates, the playground command starts the ADK web playground, with hot reload in Python projects. Other templates differ; see First-party frameworks. Open the URL the command prints (http://127.0.0.1:8080/... by default).

For a full walkthrough, see the manual workflow tutorial.

Templates and status#

Status as of October 2026.

LanguageTemplateStatusNotes
Pythonadk_python (alias adk)DefaultADK; A2A built in
Goadk_goSupportedADK Go; API key needs a code change
PythonFirst-party template pathSee First-party frameworksLangGraph, Claude Agent SDK
Your choiceYour own templateSupported--agent github.com/org/repo/path@tag; see Authoring

Pass the template with --agent. Without it, agents-cli create uses adk_python.

Demo#

Next steps#

Share what you build

Built something interesting with Agents CLI? Share your project at agents-cli@google.com.

Last updated