> [!WARNING]
>
> **Preview**
>
>
> This product or feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section
> of the [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products and features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

Use the DDP [Agent
Skill](https://github.com/google/skills/blob/main/skills/cloud/developer-device-platform-basics/SKILL.md)
in GitHub to to reserve and manage Developer Device Platform devices and sessions with
intuitive natural language prompts.

The Developer Device Platform agent skill enables agentic coding using remote devices in
Developer Device Platform through the [Device Streaming](https://docs.cloud.google.com/device-streaming/docs) API.

## Before you begin

These steps assume that you have already created a Google Cloud project,
completed the setup steps in the Developer Device Platform [Quickstart](https://docs.cloud.google.com/developer-device-platform/quickstart)
guide, and authenticated with `gcloud` in the terminal.

> [!TIP]
> **Tip:** Append `--help` to any `gcloud` command to see detailed usage information.

## Prerequisites

In addition to establishing the Google Cloud environment described in the
Quickstart, install these packages for the Developer Device Platform agent skill:

- [ADB](https://developer.android.com/tools/adb) for running commands on the
  remote Android device

- a [Python environment](https://docs.cloud.google.com/python/docs/setup) to [enable ADB
  forwarding](https://github.com/google/skills/blob/main/skills/cloud/developer-device-platform-basics/references/start_adb_forwarder.md)

- [Antigravity](https://antigravity.google/download) or any other AI coding
  agent that supports agent skills

- [Node Version Manager](https://github.com/nvm-sh/nvm) for installing Node.js

- [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
  for installing the agent skill using `npx`

## Set up the DDP agent skill

1. Confirm you are authenticated with Google Cloud CLI and configure active
   [Application Default Credentials
   (ADC)](https://docs.cloud.google.com/docs/authentication/application-default-credentials):

       gcloud auth application-default login

2. Establish a Python environment with:

       python3 -m venv .venv
       source .venv/bin/activate

3. Install the Developer Device Platform agent skill with:

       npx skills add https://github.com/google/skills --skill developer-device-platform-basics

## Use the DDP agent

The `developer-device-platform-basics` skill allows agentic coding tools to
reserve and manage device session through the Device Streaming API. Here are
some sample prompts:

1. List the available devices in DDP
2. Get a Pixel 10 from DDP
3. Display and provide control of the device
4. List the active device sessions on DDP
5. Extend the current device session by 30 minutes
6. Stop the device session