Set up Android Backstage

Install the app on your phone, connect your AI assistant, approve phone access, then send one test. Plan on about ten minutes.

Before you start

  • An Android phone on Android 11 or newer, connected to Wi-Fi
  • The relay API key from the person who runs your relay
  • For an assistant on a computer: Node.js 20 or newer on that computer. ChatGPT Work does not need it.

Install the app

On your phone
  1. Download Android Backstage

    Open this page on your phone and tap the button. When you open the downloaded file, allow installs from your browser if Android asks.

    Download the Android app

    Android 11 or newer

  2. Open Backstage

    It opens on Connect your assistant and asks for a connection code. Leave it there. You get the code in the next step.

Connect your assistant

On your computer, then your phone

Which assistant are you connecting?

Steps for Codex

Do these steps on the computer where Codex runs.

  1. Download the agent kit

    Extract the ZIP into a folder you will keep. The settings you generate later point at this folder.

    Download the agent kit

    Needs Node.js 20 or newer.

  2. Run the setup helper

    Open a terminal in the extracted folder and run:

    node setup.mjs --agent codex

    It asks four questions:

    Relay address
    Press Enter to use https://relay.android-backstage.com, or type the address your relay owner gave you.
    Relay API key
    Paste the key from your relay owner. It stays hidden while you type.
    Phone name
    Press Enter to call it phone.
    Client name
    Press Enter for Codex on this computer. Your phone shows this name.

    The terminal then shows a connection code like ABCD-EFGHJK. Keep the terminal open.

  3. Enter the code on your phone

    In Backstage, type the code into Connection code. Under Connection name, type Codex on this computer so your phone shows what has access. Tap Connect assistant.

    The terminal finishes on its own and writes your settings into generated/codex/.

Allow phone access

On your phone

After the assistant connects, Backstage shows Allow phone access. Stay on Wi-Fi for this step.

  1. Turn on Wireless debugging

    Tap Open Android settings. In Developer options, turn on Wireless debugging, then tap its name.

    Can’t find Developer options?

    Open Settings → About phone and tap Build number seven times, then enter your screen-lock PIN if asked. Some phones put Build number under Software information. Go back to Backstage and tap Open Android settings again.

  2. Choose “Pair device with pairing code”

    Android shows a 6‑digit code. Keep this screen open.

  3. Enter the 6‑digit code in the Backstage notification

    Pull down your notifications, tap Enter code on the Backstage notification, and type the six digits. You can stay in Android Settings while you do this.

    No notification? Allow notifications for Backstage when it asks, or use split screen to show Backstage next to Settings and tap Enter the code in this app.

Finish in your assistant and send a test

On your computer

Showing steps for Codex. Change assistant

Steps for Codex

  1. Add Backstage to Codex

    Add the generated [mcp_servers.android-backstage] section to your Codex config. Keep existing sections. Restart Codex or open a new task.

    Generated file
    generated/codex/config.toml
    Goes into
    ~/.codex/config.toml

    Add only the Backstage entry. Keep everything else in that file. Codex documentation ↗

  2. Add the phone skill

    Copy generated/codex/skills/phone/SKILL.md to .agents/skills/phone/SKILL.md. If your assistant has no skills folder, paste its contents into the assistant’s instructions.

    It tells the assistant to work quietly on a hidden display and to leave your screen alone.

  3. Send a test

    Restart the assistant or refresh its tools, make sure Android Backstage is enabled, then send:

    Use Android Backstage on the phone named "phone". Read ro.product.model with a background command and tell me the result. Do not open or touch the screen.

    If you named your phone something other than “phone” during setup, use that name. A working connection replies with your phone’s model.

After setup

Control access from your phone

Backstage’s home screen has Pause access for everything, and each connection has its own Pause, Rename, Limit to an app and Remove.

One connection per assistant

Every chat that uses a connection shares its access. To add another assistant or computer, tap Add connection and repeat steps 2 and 4.

After a phone restart

Open Backstage and tap Resume access. Some phones turn Wireless debugging off when they restart; turn it back on if Backstage asks.

Only connect assistants you trust

A connected assistant can run commands and use apps on your phone. Pause or remove it at any time.

Fix a problem

I don’t see Wireless debugging

Connect the phone to Wi-Fi and turn on Developer options (see step 3). Android 11 or newer is required. Phones managed by a workplace may hide this setting; ask whoever manages the phone.

The 6‑digit code expires, or no notification appears

Allow notifications for Backstage, then open a fresh Pair device with pairing code screen and leave it open. Enter the new six digits in the Backstage notification. Split screen with Enter the code in this app also works. This is not your assistant’s connection code.

The connection code doesn’t connect

Keep the terminal command running while you enter the code; it expires after ten minutes. Type the code exactly as shown, like ABCD-EFGHJK. If it expired, run the setup command again for a fresh code. Backstage uses the server printed with the code; tap Change server only if yours differs.

It was working, then stopped

Open Backstage on the phone. If access is paused, tap Resume access. After a restart, turn Wireless debugging on again over Wi-Fi. Check that the phone has internet and that the computer running your relay is on. Short network drops reconnect on their own.

My assistant has no Android tools

Check that the Backstage entry is in the settings file listed in step 4, then restart the assistant or refresh its tools and enable Android Backstage. The paths in that entry must exist on the machine where the assistant runs; a path on your laptop does not exist inside a cloud VM.

ChatGPT says the connection is blocked

Your account or workspace must allow Developer mode and custom apps. Use the exact URL from step 4. If the approval code expired, ask for a new one. If a workplace policy blocks custom tools, its administrator has to allow them.

A request timed out. Should I ask again?

The phone may have finished the action anyway. Ask your assistant to check the result before repeating anything that sends a message, buys something or installs an app.