Radical
How-to guides

Run on a device

Choose a native target and connect a remote-mode shell to your server.

Prerequisites

Install Node.js 22.18+ and pnpm. Start with installation and the native toolchain setup.

For capability guides, install dependencies from the app directory, set the specified flags in Vite config, then regenerate:

pnpm exec radical android --generate-only

See the generation pipeline.

Launch a target

Prepare Android

Install the SDK, platform tools, compatible JDK, and an AVD or authorized USB device.

Tool discoverySet
SDKANDROID_HOME or ANDROID_SDK_ROOT
ExecutablesAlternatively, adb and emulator on PATH

Connect localhost

Start Vite on port 5173 with devHost: "localhost", then reverse the port:

adb -s YOUR_SERIAL reverse tcp:5173 tcp:5173

Launch

Pass a serial or installed AVD name from the app directory:

pnpm exec radical android --target YOUR_SERIAL_OR_AVD

You see your app on the selected target.

Use a LAN server

SettingValue
Vite bind--host 0.0.0.0
devHostDevice-reachable address
originUpdate or remove if overriding the dev URL

Remote offline support requires HTTPS; plain HTTP LAN origins cannot register workers.

See target defaults.

On this page