dsh-mobile-apk README

The project's README from github.com/kelai141/dsh-mobile-apk. As one markdown file: README.md.

dsh-mobile-apk — 手机上的 AI Agent(DeepSeek Harness 安卓壳)

English README

License: MIT Release Android QQ群 QQ2群

一个 APK 装下完整的 AI agent:AI 能操作浏览器与手机、真实执行 bash——无需 root,无需刷机。

DeepSeek Harness 的安卓壳。应用名 DeepCode,包名 com.dsharnessmobile.shell。

本项目基于 MIT 开源,欢迎二次开发,二次分发,为项目提交建议与反馈。 AI 生成内容与执行的操作请自行判断;实验性能力会在对应条目如实标注。 下载站https://kelai141.github.io/dsh-mobile-apk/

它能做什么

界面速览

主界面与对话 双工作区分栏与悬浮小窗
主界面与对话 双工作区分栏与悬浮小窗
通知栏应答 侧边栏与会话管理
通知栏应答 侧边栏与会话管理

截图来自真实任务运行。

快速开始

项目 要求
系统版本 Android 8.0 及以上
安装包大小 约 150-160 MB,建议 Wi-Fi 下载
root 不需要(可选装 Shizuku 解锁高级设备控制)
  1. 下载与本机匹配的 APK(见下一节):真机选 arm64,模拟器选 x86_64。
  2. 安装并首次启动。首次启动或升级后需要解压/刷新运行环境,可能需要几分钟到十余分钟,期间请勿强杀应用。
  3. 按需开权限:无障碍、通知、Shizuku,应用内有引导。
  4. 在设置里配置模型 API,跑第一条命令。

进阶安装:adb install -r -t <apk>(同签名覆盖安装)。

下载与安装

最新版永远在这里:GitHub Releases(latest)。 访问 GitHub 困难时,用官方下载页(自动路由官方源与镜像加速源)。

包 适合
arm64 版 APK 绝大多数真机
x86_64 版 APK 模拟器 / x86_64 设备

ABI 必须与设备匹配:装错包引擎启动即崩(处理器架构不符),请按设备类型选包;装错了重装对应包即可。

请始终从同一渠道获取升级:应用自带应用内检查更新;跨渠道混装出问题时,先完整卸载重装再反馈。

覆盖升级会保留会话、设置与插件配置;若触发运行环境刷新,可能需要十余分钟,期间请勿强杀应用。

权限说明

权限 用途
网络连接 加载 AI 对话、探测本地引擎、检查更新(仅手动触发)
通知 通知栏应答与任务提醒(Android 13 及以上需在系统设置里允许)
前台服务 保活运行,让 AI 任务在后台持续跑
所有文件访问 使用外部工作区目录时需要,你在系统页手动授予
安装未知应用 应用内检查更新时唤起系统安装器,须你在系统页显式授权

选择目录与图片走系统选择器,无需额外权限。虚拟屏与特权操作需你自行安装、启动并授权 Shizuku。

常见问题

为什么必须给无障碍权限? 无障碍是 AI 看屏幕内容、替你操作的数据通道;不开启则仅虚拟屏可用。默认只允许 AI 操作虚拟屏,要动真实屏幕需要你在设置里主动放开范围。

后台被杀怎么办? 按应用内引导把本应用加入电池优化白名单;个别厂商的激进省电策略可能仍需手动加白。

应用出问题去哪反馈? 到 issues 反馈,请附机型、应用版本(关于页可见)与复现步骤;也可以加文末用户群直接说。

模型 API 从哪来、怎么配? 在设置页的模型条目里直接选择协议与思考档位,应用不内置任何模型服务。

armv7l / 老机型什么时候支持? 暂不支持,欢迎到 issues 提需求。

面向开发者

致谢

这个项目是靠社区一起做出来的。下面按代码贡献行数排序,致谢贡献最多的八位协作者(维护者本人与 AI 账号不计入;统计排除上游构建产物与 lockfile):

# 协作者 主要贡献
1 @snoworwind 可来源审计的 ARM64 构建链、来源链可复现性修复、快照面板层级与遮罩修复
2 @cmyfqwq AI root 权限授权开关与应用级 root 授权面、root 租约清算判据改写为真绑定实证、入口拆锁落地
3 @lemonhub-io 启动页与控制台 UI 重构、原生界面的设计令牌体系、应用命名与图标、版本号收编为单一来源
4 @daum110715 下载页整体改版为瑞士国际主义排印风格(网格、字阶、等宽数据)
5 @SinBC227 图片输入与视觉读图(含华为 WebView 兼容)、剪贴板桥、LaTeX 流式渲染、字体大小与沉浸式状态栏
6 @adeahejshshsh 通用设置里安卓自建项的行规与控件重做、语言跟随系统改为启动时解析
7 @wen0531 快照内 git SHELL_PATH 重定位、arm64 资产名口径、文件写入回退、预设播种修复
8 @FuRongJun-1999 灵枢(AEIS)长期记忆框架的快照构建工具与手机端测试指引

另外感谢最早一批通过 issue 与 PR 帮我们定位问题的成员:cdwlll、haitunlang、TACONailoong、X-SCI-TECH、Yangerwei、gr12-cmd,以及所有提交反馈与建议的用户。

欢迎加入用户群反馈

dsh-mobile 用户群二维码(群号 1109493992) dsh-mobile 用户2群二维码(群号 1038381236)

使用问题、机型兼容、功能建议都可以在群里直接提。一群已满或无法加入时,请扫码加入二群(群号 1038381236)。

支持我们

请在个人生活有余力且经济自主的前提下进行适当的自愿赞助。

微信赞赏与支付宝收款码:

微信赞赏码 支付宝收款码

License

MIT。第三方组件按各自许可,见 LICENSES/ 与 THIRD_PARTY_NOTICES.md。GPL 合规:copyleft 许可全文三形态在场——快照 usr/share/LICENSES/、仓库 LICENSES/、APK assets/licenses/。

dsh-mobile-apk (kelai141/dsh-mobile-apk)

Searching Database…

What is this?This is 'dsh-mobile-apk', an Android shell app for DeepSeek Harness (dsh): a WebView UI wrapped around an embedded Termux runtime snapshot, giving you a full dsh web agent on your phone that can really execute bash, no desktop or separate Termux app required.
Is this a standalone app, or do I need Termux installed separately?It's one self-contained APK (app name DeepCode) that bundles its own Termux runtime snapshot — node, git, bash, coreutils, dsh, plugins, pnpm, python/perl/ruby — so no separate Termux app is needed.
Do I need to pick the right APK variant for my device?Yes — the ABI must exactly match your device; installing the wrong variant (arm64 vs x8664) crashes the engine at startup instead of just failing to install.
Does the plugin marketplace work well on phones?Not reliably yet — most third-party plugins in the built-in marketplace are likely unavailable or buggy on mobile because WebView engine, filesystem, and permission models differ from desktop; the project treats this as a beta usability test, not a production dependency.
Does it need an internet connection to run?No — once the runtime snapshot is extracted, the dsh engine runs fully offline; internet is only needed for the optional online runtime-update manifest.
What permissions does the app need?It requests INTERNET and POST_NOTIFICATIONS, foreground-service permissions for its keep-alive engine service, and MANAGE_EXTERNAL_STORAGE ('All Files Access') for the external workspace; SAF directory picking itself needs no extra permission.
What is the ADB real channel for?Added in 0.13.0, it pairs with the device over wireless debugging (adb pair SPAKE2 handshake plus mDNS port discovery) and runs shell commands via adbd, gated by a three-step authorization flow (All Files Access, an in-app switch, pairing code), a danger-command blacklist, and an on-device audit log.
What happens if the main dsh engine crashes?A built-in standalone bash console (backed by the embedded Termux) stays usable for diagnostics even when the engine is down, and a 5-second watchdog plus crash auto-rollback gate try to restart it automatically.
Can the runtime update itself without a new APK install?Yes — it fetches a manifest.json with a URL and SHA-256, downloads and verifies the new snapshot, atomically swaps it in, and restarts the engine, all without needing an APK update.
What does the File-to-session (F5) feature do?Opening a file via Android's Share/Open-with jumps into the app and starts a fresh temporary workspace session for that file, which auto-cleans up after a 7-day TTL.
Creator
kelai141
Size
135.8 MB
Stars
1.1K
Age
3mo
Commits · 90 Days