Android CLI plugin for Claude Code, Codex and Antigravity
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).

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:
| Task | Before (agent guesses) | With the plugin |
|---|---|---|
| New project | copy a template, fix gradle by hand | android create empty-activity --name="My App" |
| Run on a device | ./gradlew installDebug + adb shell am start | android run |
| See the screen | adb screencap + pull, then guess coordinates | android layout (JSON with bounds and center) |
| Tap / type | adb shell input tap x y | android input tap / text with selectors like text=Submit |
| Virtual devices | avdmanager + emulator flags | android emulator create medium_phone / start --headless |
| Docs | web search, maybe outdated | android docs search (official Android Knowledge Base) |
| Compose previews | open Android Studio | android preview render (PNG, no Studio needed) |

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.

Install in Claude Code
inside a Claude Code session:
/plugin marketplace add android/android-cli-plugin
/plugin install android-cli@android-cli-pluginor from your terminal:
claude plugin marketplace add android/android-cli-plugin
claude plugin install android-cli@android-cli-plugin
Install in Codex
codex plugin marketplace add android/android-cli-plugin
codex plugin add android-cli@android-cli-pluginInstall in Antigravity
agy plugin install android-cli-plugin@antigravity-plugins-officialor 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:
brew tap android/tap
brew install android-cli
android updatelinux and mac without homebrew:
# 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 | bashwindows: winget install --id Google.AndroidCLI. check it with which android or android -V.
What it looks like


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
