DSH Mobile — DeepSeek Harness on Android
Run the DeepSeek Harness agent natively on an Android phone — no root, no Termux, with a full on-device toolchain and 176 device routes.
- Source repo
- Soodok/Deepseek-Harness-Local-Android
- Stars
- ★ 588
- Last updated
- today
- FARS reviewed
- Nov 25, 2026
- License
- MIT
- Primary language
- Kotlin
- FA score
- 50/100 · Major gaps
At a glance
- Works with
- Portable with changes
- You'll need
- Typical use
- Developers who only have an Android phone and want to write C or Java and actually produce an APK on-device.
- Main limitation
- The model is not in the APK; you must supply a paid API key or model service, so usage costs are on you.
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-25
- Source review
- 50/100 · Major gaps
What does this agent do, and when should you use it?
DSH Mobile packages the whole DeepSeek Harness engine inside an Android APK. A bionic Node.js runtime is pre-bundled, so cold start is about 2.3 seconds; a self-built rootless user-space container called dsh_alpine runs a command in roughly 2.4 ms and reaches engine-ready in 1.33 seconds end to end. The extension center ships 20 toolchains, including real clang and a working OpenJDK 17 + gradle + aapt2 + apksigner chain that can build an APK on the phone itself. On the device side, an accessibility service, virtual HID, and a root gate script expose 176 HTTP routes and 42 self-describing catalog entries behind 21 separate capability switches. The model itself is not bundled — you supply an API key or model service — and the project is an independent community effort, MIT licensed except for the proprietary dsh_alpine runtime.
On launch the app unpacks and execve's the native Node runtime, starts the DeepSeek Harness engine on a loopback port, and renders chat and the workspace in a WebView. The agent drives the phone through the dev gate script and HTTP routes: GET /dev/status and GET /dev/sensors read device and sensor state, POST /dev/control toggles WiFi, Bluetooth, volume, brightness and torch, POST /dev/clipboard, POST /dev/media and POST /dev/notify-reply handle clipboard, playback and RemoteInput replies, and POST /dev/hid registers a real keyboard or mouse through /dev/uhid. Screen interaction is built on the accessibility node tree: the scr script covers dump, shot, tap, input, swipe, key and find, while the loop executor runs 21 action primitives in a PICK → ACT → VERIFY → RETRY cycle with fallback anchors. The extension center installs clang, JDK 17, gradle, rustc, go, python3 and ffmpeg in one click, and build output can be served locally and previewed in the WebView. A mcp gate script exposes a stdio JSON-RPC MCP server whose tool table is derived from the same 42-entry catalog.
- Developers who only have an Android phone and want to write C or Java and actually produce an APK on-device.
- Users automating a phone — tapping, swiping, filling forms, reading notifications and sensors — with an LLM agent instead of manual scripts.
- Operators who need to run a glibc-only prebuilt CLI or install packages via apt/apk on a phone.
- Engineers wiring phone capabilities into an MCP client so a desktop agent can drive the device.
- Hobbyists who want llama.cpp for lightweight local inference while keeping an external model API for heavier work.
- Researchers testing whether a rootless Linux environment is viable on constrained hardware, including a 3 GB watch.
How do you install or deploy this agent?
Check the ABI first, then pick a package. The full build is about 161 MB with the runtime pre-bundled and starts offline; the lite build is about 34 MB and downloads the 130.8 MB runtime on first launch.
adb shell getprop ro.product.cpu.abiDownload the matching -release.apk or -noruntime.apk from Releases and install it:
adb install -r Deepseek-Harness-Local-Android-release.apkBuilding from source requires JDK 17+, Android SDK 36, Node 22 and Python 3:
./scripts/build-runtime.sh --abi arm64-v8a --out dist/runtime-arm64-v8a.zip
./gradlew :app:assembleDebug -Pabi=arm64-v8a -Ppackage=full \
-PruntimeZip="$PWD/dist/runtime-arm64-v8a.zip"The APK lands at app/build/outputs/apk/debug/app-debug.apk.
How do you use this agent?
The first launch walks through language, orientation and theme, run mode (normal, Shizuku or Root), runtime unpacking, model API key or model service login, and workspace selection. To let the agent touch other apps, enable the DSH Screen Tap accessibility service in system settings manually, and on Android 13+ confirm "allow full device control".
To sanity-check the toolchain, ask the agent to build and run a small C file, or drive the gate script directly:
dev # list the nine capability groups
dev api GET /dev/help # inspect parameters and limits
dev api GET /dev/routesTo use the Linux container, switch to Linux mode in settings; Alpine ships offline while Ubuntu downloads roughly 30 MB on first use. Both paths share the same $DSH_HOME and workspace.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Native bionic Node runtime launched by execve: 2.3 s cold start on a OnePlus 15T, and it still runs on a 3 GB device.
- The dsh_alpine rootless container executes a command in 2.4 ms — 8–14x faster than proot and about 1 ms behind a root-requiring chroot.
- A genuinely complete build environment: clang plus OpenJDK 17, gradle, aapt2 and apksigner can produce an APK on-device, with the toybox/gradle startup bug already patched.
- 176 HTTP routes, a 42-entry self-describing catalog and 21 independent capability switches; the MCP tool table is derived from the same catalog rather than maintained separately.
- A compile-cache flusher turns NODE_COMPILE_CACHE into a real 15 MB on-disk cache, cutting a clean A/B startup by about 24.5%.
- The model is not in the APK; you must supply a paid API key or model service, so usage costs are on you.
- The Linux Workspace is explicitly not a security sandbox, and in Root mode the agent has full read/write access to the device.
- Accessibility, MediaProjection, and Android 13+ WiFi/Bluetooth toggles cannot be granted silently — the user must confirm each one.
- On the WebView side only roughly Chrome 85 JS support is guaranteed; CSS features such as anchor positioning degrade silently between Chrome 85 and 124, so popovers can misplace.
- dsh_alpine is under a proprietary license separate from the repo's MIT, which constrains modifications to the runtime.
- Long-running tasks can be killed by OEM background freezing, device reboot or root operations and must be re-dispatched.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| DSH Mobile — DeepSeek Harness on Android This agent | 50 · Major gaps | — | ★ 588 | today | Kotlin | — |
| iPolloWork | 76 · Good | Desktop appFree + model costs | ★ 7.5k | today | TypeScript | — |
| octo-agent | 73 · Some gaps | CLIFree + model costs | ★ 156 | 7d ago | Go | OpenAI API · Claude API |
| Kitaru | 71 · Some gaps | CLIFreemium | ★ 322 | today | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The README describes a default sandbox, optional Shizuku/Root/accessibility modes, a LAN proxy with a 6-digit code and stop control, SHA-256 and closure audits for downloaded dependencies, and two-phase runtime swaps. However, no AndroidManifest or core source is included; Root mode grants full read/write; the agent can install extensions and run shell commands without a stated per-command confirmation flow; and the claim that data never leaves the device conflicts with remote model APIs, LAN WebUI, and extension downloads. least_privilege, user_confirmation, data_flow_transparency, sensitive_data_handling, and rollback are therefore partial. dependency_security gets 2 for pinned plugin versions, npm integrity, SHA-256, and ELF closure checks. source_attribution gets 2 for clear upstream DeepSeek Harness attribution and MIT license, but the 0.2.1-rc.2/0.2.2-rc.3 engine mismatch deducts.
The README and workflows show a dual-ABI build matrix, three-tier runtime fetch fallback, runtime command-closure validation, CI summary, and i18n checks; but version statements conflict (badge/workflow comment says 0.2.1-rc.2, README says pinned 0.2.2-rc.3), extension counts are inconsistent (19/20 vs 57 entries), and self-healing or failure-message behavior is asserted without runtime code or log samples. self_consistency is 1; dependency_availability is 2 for fallback and verification; failure_messages is 1 due to missing product-side error handling evidence.
The project clearly targets Android 8.0–16 users who want dsh without Root or Termux, and it documents what the product is and is not, WebView 85+, silent CSS feature degradation, and the lack of a security sandbox. Scenarios and capability boundaries are reasonably clear. Trigger precision is weak: there is no explanation of when the agent automatically runs shell commands, installs extensions, or uses accessibility, and no AGENTS/SKILL trigger definition is shown. audience_and_scenarios and capability_boundaries get 2; trigger_precision gets 1; environment_fit gets 2.
The README is well organized, with a documentation index, limitations section, MIT license, release-note archive, and CI tag validation. However, there is no step-by-step install guide or FAQ; installation assumes familiarity with APK/runtime choices; the DSH Mobile product name and repository name are not fully aligned; and maintainer identity is unverified. information_architecture gets 2; install_notes, naming_stability, and examples_and_faq get 1; known_limitations and license get 3 for completeness; versioning_changelog gets 2 for release-note archive and tag rules; maintenance_responsibility gets 1 because publisher identity and responsibility boundaries are unclear.
The value proposition is clear: native Android execution of dsh, an extension center, WebView previews, and task notifications; output scenarios are described. But source and runtime evidence are absent, the APK is about 161 MB, the runtime expands to about 418 MB, and 20+ toolchains impose notable resource costs; Termux/proot alternatives remain. output_usability, marginal_value, and cost_benefit each get 2; promotional performance figures are not enough for a higher score.
The README claims measured data and cites docs, Issue #86, and CI, and the workflows partially corroborate runtime and plugin packaging. But there are no raw logs, benchmark scripts, or source, engine versions and extension counts conflict, and marketing claims are mixed with facts. claim_traceability, cross_source_corroboration, and fact_inference_separation each get 1.
- Publisher identity is unverified; Root, Shizuku, accessibility, and LAN WebUI are high-risk optional capabilities and should be reviewed in actual code and permissions before enabling.
- The README says data never leaves the device, but model APIs, LAN WebUI, and extension downloads involve network traffic; verify what is sent and to which endpoints.
- The agent can run shell commands and auto-install extensions without a stated per-command confirmation or general workspace rollback; back up important files first.
- The engine version is inconsistent across the README and workflow/badge (0.2.2-rc.3 vs 0.2.1-rc.2); verify plugin compatibility.
- The Linux container is explicitly not a security sandbox; do not run untrusted code in it.
FAQ
Is DSH Mobile — DeepSeek Harness on Android open source?
Is DSH Mobile — DeepSeek Harness on Android safe to use?
Is DSH Mobile — DeepSeek Harness on Android still maintained?
Who makes DSH Mobile — DeepSeek Harness on Android?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.