Your phone does the work. You take the backseat.
Reason this release was yanked:
0.1.0 is broken — pip install "backseat[agent]" on Android/Termux fails because paramiko pulls in cryptography which requires Rust to compile. Anyone who installs 0.1.0 right now can't run the phone agent.
Project description
Backseat
Your phone does the work. You take the backseat.
Backseat is an open source Python CLI that turns your Android phone (running Termux) into a personal deploy server. Deploy apps, run saved command workflows, monitor system health, and expose services publicly via Cloudflare tunnels — all from your laptop terminal.
No VPS needed. No monthly bill. Just your phone.
How it works
[Laptop — backseat CLI] ──SSH/SCP──▶ [Android Phone / Termux]
│ │
│◀────────── HTTP ───────────────────────│
│
[Terminal dashboard] [Web dashboard — any browser]
A lightweight agent runs on your phone inside Termux. Your laptop pairs with it using a QR code + pairing code, then communicates over your local network (or via Cloudflare tunnel when remote).
What it is (and isn't)
Right now:
- A Python CLI (
backseat) that runs on your laptop - A Python agent (
backseat-agent) that runs inside Termux on your phone - A web dashboard served by the agent, viewable in any browser
Not yet:
- A native Android app — the phone side requires Termux. A native app is on the roadmap.
Requirements
Laptop: Python 3.10+, any OS
Phone: Android with Termux installed
- Install Termux from F-Droid, not the Play Store
- Same WiFi network as your laptop (or use
backseat tunnelfor remote access)
Installation
Laptop
Pick whichever package manager you already have:
# npm (no Python required — auto-installs it)
npm install -g backseat
# pip
pip install backseat
Phone — one command in Termux
pkg install python openssh && pip install "backseat[agent]" && sshd && backseat-agent
That's it. Your phone will display a QR code and a pairing code.
Quickstart
1. On your phone (Termux)
pkg install python openssh && pip install "backseat[agent]" && sshd && backseat-agent
You'll see:
====================================================
BACKSEAT AGENT
====================================================
[QR CODE]
IP Address : 192.168.1.5
Port : 8080
Pair Code : A3F9C1B2
On your laptop:
backseat init
====================================================
2. On your laptop
backseat init
Follow the prompts — enter your phone's IP and the pairing code shown on screen.
3. You're paired. Try it:
backseat status # live terminal dashboard
backseat deploy ./myapp ~/myapp # push your app to the phone
backseat tunnel start 3000 # expose port 3000 to the internet
Commands
Setup
backseat init # pair with your phone
backseat connections # list saved connections
Monitor
backseat status # live terminal dashboard (CPU, RAM, uptime, tunnel)
backseat tunnel status # show active tunnel URL
Deploy
backseat deploy ./myapp ~/myapp # upload folder
backseat deploy ./myapp ~/myapp --start "python app.py" # upload + start in background
Saved commands
backseat add restart # save a command called "restart"
backseat run restart # run it (tries HTTP, falls back to SSH)
backseat list # list all saved commands
backseat remove restart # delete one
Cloudflare tunnels
backseat tunnel start 3000 # expose port 3000 publicly via Cloudflare
backseat tunnel status # show the public URL
backseat tunnel stop # stop the tunnel
Web Dashboard
Open in any browser on the same network:
http://<phone-ip>:8080/dashboard?token=<your-session-token>
Your session token is shown after backseat init and stored in ~/.backseat/config.json.
Shows: CPU, RAM, storage, uptime, request count, Cloudflare tunnel status, and top processes. Auto-refreshes every 3 seconds. Works locally or publicly when a tunnel is active.
Security
Backseat is a personal, local-network tool. It is not hardened for direct public internet exposure.
Known limitations and why they exist
1. No HTTPS between laptop and agent
All communication is plain HTTP over your local network. Adding TLS to a local IP requires certificate management and breaks the zero-config setup goal.
Mitigation: Use on trusted networks only. For remote access, use backseat tunnel — traffic goes through Cloudflare's encrypted edge rather than exposing the agent directly.
2. Session token has no expiration
The session token is valid for the lifetime of the agent process. If compromised, access persists until the agent restarts.
Mitigation: Token is stored at ~/.backseat/config.json with 0600 permissions (owner read/write only) on Unix. Restarting backseat-agent generates a new token and invalidates the old one.
3. /run executes arbitrary shell commands
The agent runs any shell command sent to it. This is the feature — it's how backseat run works. It is protected behind the session token.
Mitigation: Keep your token secure. Never expose port 8080 to the public internet directly.
4. Web dashboard token in URL
The dashboard authenticates via ?token= query parameter, which appears in browser history and access logs.
Mitigation: Don't use the dashboard on shared computers. Cookie-based auth is on the roadmap.
5. Re-pairing required after agent restart
The pairing code regenerates every time backseat-agent starts. After 5 failed attempts the endpoint locks for 60 seconds.
Mitigation: Persistent pairing across restarts is planned.
6. Single client only
Only one laptop can be paired at a time. A second pairing attempt returns 409. This is intentional — Backseat is a personal tool.
Config
~/.backseat/config.json stores your phone connections and saved commands.
- Permissions:
0600on Unix (owner-only) - Passwords are never stored — prompted at runtime if you use password auth
- Writes are atomic to prevent corruption
Contributing
Contributions are welcome. See DEVELOPMENT.md for architecture notes.
- Fork the repo
- Create a branch:
git checkout -b feature/your-feature - Make your changes
- Open a pull request
Please open an issue before starting large changes.
Roadmap
- Native Android app (no Termux required)
- Persistent pairing across agent restarts
- HTTPS with self-signed certificate
- Cookie-based dashboard auth
- Multiple paired clients
- Deploy hooks (pre/post commands)
- Live log streaming from running processes
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file backseat-0.1.0.tar.gz.
File metadata
- Download URL: backseat-0.1.0.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ceaae16d5c636fd0c439382f60402ea0b74c8995684404c5e64ec1b34d557b
|
|
| MD5 |
083723a9cdfbaedd0871cb506c470dea
|
|
| BLAKE2b-256 |
9cddaaee400eadeedb07a1184eed2bdcd6c8cf9e41c59f95d16458588b7ab689
|
File details
Details for the file backseat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: backseat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
568d0747c7c9aeb57fc00b020ec00b5e073319766c90d628e52339672586849d
|
|
| MD5 |
1f5168f2bb0629d56aa0c24d6ab00752
|
|
| BLAKE2b-256 |
0da741ac0b9977fe74791b0ad7002e3b52ff1bd9f029f27965ee14b937d6907b
|