How to Set Up Mobilerun with Portal, ADB, and a Model Provider

Connect one Android phone to the local Mobilerun framework and isolate device, Portal and model-provider problems.

Mobilerun's local framework gives your computer three jobs. Android Debug Bridge (ADB) connects it to the phone. The Portal app helps it read the interface and enter text. A model provider decides which action to try next. Check each connection separately and you can tell why an instruction never reached your phone. Mobilerun's framework quickstart

The ADB, Portal and model-provider checks for Mobilerun

ADB can see a phone even when Portal still needs its accessibility permission.

Connect your Android phone

Use a computer with Android Platform Tools, the uv package manager and Python 3.11, 3.12 or 3.13. Mobilerun's guide warns that using Python 3.14 can silently select an older package. Connect one unlocked phone with a USB data cable, enable USB debugging in Developer options and run the following command on the computer.

adb devices -l

Look for one serial number followed by device. If you see unauthorized, unlock the phone and review the debugging prompt. An empty list means the computer hasn't established the connection yet. Check the cable and USB debugging before installing any Python packages. Android's ADB setup instructions

Install the command and check Portal

Install the command-line tool with Python 3.12, then set up and check Portal.

uv tool install mobilerun --python 3.12
mobilerun setup
mobilerun ping

Setup chooses a compatible Portal APK and installs it on the connected phone. If Android opens Accessibility settings, review the Portal service request and enable it to use this route. The ping command should report that Portal is installed and accessible. An ADB-only setup has a different connection check. Mobilerun device setup

Ask for one visible result

Three checks for a Mobilerun first run
  1. Connect the handset

    Check the chosen ADB target before installing the companion app.

  2. Confirm the Portal match

    Use the framework’s supported Portal version and run its connectivity check.

  3. Read one screen

    Request a small observable task and verify the result on the phone.

Run mobilerun configure, select a provider and model you have access to, and complete the authentication it requests. Now give the phone a task with an answer you can check.

mobilerun run "Open Settings and find the Android version. Read it back."

Compare the answer with Settings → About phone → Android version on the handset. If ping succeeded but the provider rejects the request, check the selected model and authentication. Reinstalling Portal won't change the provider's response.