Installation
This guide walks you through the complete installation and configuration process for PhoneClaw.Hardware requirements
Android device
Any Android device running Android 8.0 (API 26) or higher
No root required
PhoneClaw works on unrooted devices using the Accessibility API
Recommended device
The cheapest option for testing is a Moto G Play - available at Walmart in the US for around $30. This is the device used in the demo videos.PhoneClaw adapts to different screen sizes and resolutions, so most Android devices will work. Tablets are also supported.
Prerequisites
Before installing PhoneClaw, you’ll need:- Android Studio - For building the APK
- Git - To clone the repository
- Moondream API token - For vision features
- Android device with developer mode enabled
Installation steps
Clone the repository
Get the PhoneClaw source code from GitHub:
Replace
yourusername with the actual GitHub username or organization hosting PhoneClaw.Configure Moondream authentication
PhoneClaw requires a Moondream auth token for vision-assisted UI targeting. Add your token to the project:Option A: Local properties (recommended)Create Option B: Global Gradle propertiesAdd to
local.properties in the project root:local.properties
~/.gradle/gradle.properties:~/.gradle/gradle.properties
Getting a Moondream token
- Visit moondream.ai
- Sign up for an account
- Navigate to API settings
- Generate a new API token
- Copy the token to your properties file
Enable developer mode on Android
On your Android device:
- Go to Settings
- Scroll to About Phone (or About Device)
- Find Build Number
- Tap Build Number 7 times rapidly
- You’ll see a message: “You are now a developer!”
On some devices, you may need to enter your PIN or password to enable developer mode.
Enable USB debugging
- Go back to Settings
- Find Developer Options (usually in System or Advanced settings)
- Enable USB Debugging
- Connect your device to your computer
- Accept the USB debugging authorization prompt
Build the APK with Android Studio
Open the project in Android Studio:
- Launch Android Studio
- Click File > Open
- Navigate to the
phoneclawdirectory - Click OK to open the project
- Wait for Gradle sync to complete
Generate the APK
- Click Build in the menu bar
- Select Generate Bundles / APKs
- Click Build APK(s)
- Wait for the build to complete
- Click locate in the notification to find the APK
app/build/outputs/apk/debug/app-debug.apkSideload the APK to your device
Transfer and install the APK on your Android device.
Method 1: Direct install via ADB
Method 2: Manual transfer
- Copy
app-debug.apkto your device via:- USB file transfer
- Email attachment
- Cloud storage (Google Drive, Dropbox, etc.)
- On your Android device, open the APK file
- Tap Install
- If prompted, allow installation from unknown sources:
- Go to Settings > Security
- Enable Install from Unknown Sources
- Or grant permission for your file manager app
Grant required permissions
After installation, launch PhoneClaw and grant permissions:
- Open the PhoneClaw app
- Grant Microphone permission (for voice commands)
- Grant Storage permission (for downloading/uploading media)
- Grant Overlay permission (for screen capture)
- Grant any other requested permissions
Enable accessibility service
This is the most critical permission:- PhoneClaw will prompt you to enable the accessibility service
- Tap Go to Settings
- Find PhoneClaw in the accessibility services list
- Toggle it ON
- Read and accept the warning about accessibility services
The accessibility service is what allows PhoneClaw to interact with other apps. Without it, no automations will work.
Configure device settings
For optimal performance, adjust these Android settings:
Disable battery optimization
- Go to Settings > Battery
- Tap Battery Optimization
- Select All Apps
- Find PhoneClaw
- Select Don’t Optimize
Keep screen timeout reasonable
- Go to Settings > Display
- Set Screen Timeout to at least 2 minutes
Disable Doze mode (optional)
For devices that will run unattended:Verify installation
Test that PhoneClaw is working correctly:Check accessibility service
- Open PhoneClaw
- You should see ”✓ Accessibility service enabled” in the status
- If not, go back to Settings > Accessibility and enable it
Test voice recognition
- Tap the microphone button
- Say “Hello PhoneClaw”
- You should see the text transcribed
- PhoneClaw will speak a confirmation
Configuration options
OpenRouter model selection
PhoneClaw can use different LLM models for script generation:- Open PhoneClaw
- Tap the Model button in the toolbar
- Select your preferred model:
- Gemini 2.0 Flash (default) - Fast and accurate
- Llama 4 Maverick (free) - Free tier option
Debug mode
Enable debug mode to capture screenshots for troubleshooting:- Screenshots are captured every 30 minutes
- Uploaded to Firebase (if configured)
- Visible in the PhoneClaw web dashboard
Firebase integration (optional)
For cloud features like remote monitoring:- Create a Firebase project
- Download
google-services.json - Place it in
app/ - Rebuild the APK
Firebase is optional. PhoneClaw works fully offline without it.
Build configuration
The PhoneClaw build is configured inbuild.gradle.kts:
build.gradle.kts
Troubleshooting installation
Build fails with 'MOONDREAM_AUTH not found'
Build fails with 'MOONDREAM_AUTH not found'
This means the Moondream token isn’t configured:
- Create
local.propertiesin project root - Add:
MOONDREAM_AUTH=your_token_here - Rebuild the APK
~/.gradle/gradle.propertiesAPK installation blocked
APK installation blocked
If installation is blocked:
- Settings > Security > Install unknown apps
- Enable for your file manager or browser
- Try installing again
- Settings > Biometrics and Security
- Install unknown apps
- Select your app and enable
Accessibility service won't enable
Accessibility service won't enable
If you can’t enable the accessibility service:
- Restart your device
- Uninstall and reinstall PhoneClaw
- Check if other accessibility services are conflicting
- Ensure you have Android 8.0 or higher
ADB device not found
ADB device not found
If
adb devices shows no devices:- Enable USB debugging on device
- Accept the USB debugging authorization
- Try a different USB cable
- Install device-specific USB drivers
- Run:
adb kill-server && adb start-server
Gradle sync fails
Gradle sync fails
If Android Studio can’t sync Gradle:
- Check your internet connection
- Update Android Studio to latest version
- File > Invalidate Caches > Invalidate and Restart
- Delete
.gradlefolder and sync again
App crashes on first launch
App crashes on first launch
Common causes and fixes:
- Missing Moondream token: Rebuild with token configured
- Android version too old: Requires Android 8.0+
- Corrupted APK: Rebuild and reinstall
- Conflicting apps: Uninstall other automation apps
Advanced installation
Custom build variants
Create a release build with optimization:Signing the APK
For distribution, sign the APK:-
Generate a keystore:
-
Configure signing in
build.gradle.kts: -
Build signed APK:
Multi-device deployment
Install on multiple devices:Next steps
Now that PhoneClaw is installed:Quickstart
Run your first automation in 5 minutes
ClawScript basics
Learn the fundamentals of ClawScript
Voice commands
Master voice-driven automation generation
Example scripts
Browse pre-built automation examples
Need help?
Join the PhoneClaw community:- Discord: https://discord.gg/n9nbZUrw
- YouTube: https://www.youtube.com/@getsuperpowers
- Twitter Community: Join us