Skip to content
Görkem KaraLead Mobile Developer

Android CLI plugin for Claude Code, Codex and Antigravity

4 min read

The Android CLI plugin is Google's official agent plugin for Claude Code, OpenAI's Codex and Antigravity. It adds one skill, android-cli, that teaches your agent the android command: create projects, build and run apps, manage the SDK and emulators, read the live UI of a device as JSON, tap and type on it, render Compose previews and search the official Android docs. Install is 2 commands, and the plugin version matches the CLI release from November 2026 (1.1.16919734).

Google's official Android CLI plugin for Claude Code, Codex and Antigravity
the whole install, two commands
Android CLI plugin for coding agents

Why this is a big deal for Android + AI

until now an agent on an android project had to guess: which gradle task, which adb flag, where is sdkmanager, is the emulator even booted. it burns turns and context on plumbing. the plugin gives it one documented tool with the same verbs for the whole loop:

TaskBefore (agent guesses)With the plugin
New projectcopy a template, fix gradle by handandroid create empty-activity --name="My App"
Run on a device./gradlew installDebug + adb shell am startandroid run
See the screenadb screencap + pull, then guess coordinatesandroid layout (JSON with bounds and center)
Tap / typeadb shell input tap x yandroid input tap / text with selectors like text=Submit
Virtual devicesavdmanager + emulator flagsandroid emulator create medium_phone / start --headless
Docsweb search, maybe outdatedandroid docs search (official Android Knowledge Base)
Compose previewsopen Android Studioandroid preview render (PNG, no Studio needed)
Coding agent on an Android project: before vs with the Android CLI plugin
same jobs, one documented tool instead of guessing

the important bit is android layout: the agent reads the screen as structured JSON (text, resource-id, bounds, center, clickable) instead of squinting at screenshots. that is what makes "build it, run it, check it, fix it" work without you babysitting the emulator.

How the Android CLI plugin works with a coding agent
agent, skill, CLI, then the create, run, look, act loop

Install in Claude Code

inside a Claude Code session:

text
/plugin marketplace add android/android-cli-plugin
/plugin install android-cli@android-cli-plugin

or from your terminal:

bash
claude plugin marketplace add android/android-cli-plugin
claude plugin install android-cli@android-cli-plugin
Installing the Android CLI plugin in Claude Code
real output, Claude Code 2.1.309, plugin version 1.1.16919734

Install in Codex

bash
codex plugin marketplace add android/android-cli-plugin
codex plugin add android-cli@android-cli-plugin

Install in Antigravity

bash
agy plugin install android-cli-plugin@antigravity-plugins-official

or inside an Antigravity CLI session: /plugin install android-cli-plugin@antigravity-plugins-official, or Customizations > Build with Google > Android CLI. Antigravity also gets interactive Compose Previews and a Device Hub next to the chat.

You also need the android CLI itself

the plugin is only the skill, it does not contain the CLI. if android is not on your PATH the skill tells the agent how to install it, or do it yourself on a mac:

bash
brew tap android/tap
brew install android-cli
android update

linux and mac without homebrew:

bash
# mac, apple chip
curl -fsSL https://dl.google.com/android/cli/latest/darwin_arm64/install.sh | bash
# linux x86_64
curl -fsSL https://dl.google.com/android/cli/latest/linux_x86_64/install.sh | bash

windows: winget install --id Google.AndroidCLI. check it with which android or android -V.

What it looks like

Android CLI: docs search and create
android docs search downloads the Knowledge Base once (5720 items here), android create scaffolds a Compose project
Android CLI driving an emulator
android layout returns the screen as JSON, android input taps by selector

Real things to ask your agent

  • "create a new compose app called Notes, run it on a medium_phone emulator and tell me what is on screen" (create, emulator, run, layout)

  • "log in with the test account and check the home screen loads" (layout + input tap/text, no hardcoded coordinates)

  • "render all @Preview functions in :app and show me the ones that overflow" (preview list + preview render)

  • "how big is the release apk and what is R8 keeping" (android analyze)

  • "record a system trace while I scroll the feed" (android profiler systemtrace, compose tracing since the november release)

  • "is edge-to-edge set up right here" (docs search on the official Knowledge Base, then the fix)

Not on Claude Code, Codex or Antigravity?

run android init to install the android-cli skill for your agent, and android skills find <keyword> to pull the other official Android skills (CameraX, adaptive UI, Compose performance, AGP 9 upgrade). the release notes list Cursor, Cline, OpenHands, Windsurf, Zed and Devin among the supported agent environments.

Frequently asked questions

What does the Android CLI agent plugin do?

It adds the android-cli skill to Claude Code, Codex or Antigravity. The skill teaches the agent to use the android command to create projects, run apps, manage the SDK and emulators, inspect and interact with device screens, render Compose previews and search the Android docs.

How do I install the Android CLI plugin in Claude Code?

Run claude plugin marketplace add android/android-cli-plugin, then claude plugin install android-cli@android-cli-plugin. Inside a session use the same commands with /plugin.

Does the plugin install Android CLI?

No, the plugin repository holds only the skill. Install the CLI with Homebrew (brew tap android/tap, brew install android-cli), the curl install script, apt-get or winget.

Do I need Android Studio?

No for creating, building, running, emulators, layout and preview rendering. The android studio commands (semantic code analysis, find usages) connect to a running Android Studio when you want them.

Official docs

github.com/android/android-cli-plugin · ★9 · last commit 17d ago

View on GitHub

android/android-cli-plugin GitHub stars

More AI guides and real runs

Written by: Görkem KARA