bekov001/dsh-android
À propos
Native Android messenger client for DeepSeek Harness (DSH): pin sessions as named chats, no WebView, 2.8 MB APK, Kotlin + Compose
IA et apprentissage automatiqueProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- Historique en cours
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalDSH for Android
English | 简体中文
A native Android client for DeepSeek Harness (DSH). It pairs with the DSH running on your computer and turns the sessions you pick into a list of named chats — like a messenger full of your own AI agents.

Try it in 10 seconds: Download the latest APK (2.8 MB) and tap "Try the demo" on the first screen — no DSH host needed to explore the UI.
More screenshots (built-in demo data)
Why another mobile client?
| DSH for Android | Mobile Web UI / WebView | On-device Linux / proot | |
|---|---|---|---|
| UI Architecture | Pure Kotlin + Jetpack Compose (no WebView) | Browser / WebView wrapper | Bundled Ubuntu + Node + WebView |
| APK Size | 2.8 MB | 10–40 MB (or 7+ MB web bundle) | 500 MB – 1 GB+ |
| Mental Model | Messenger: pin only the sessions you use as named chats | Desktop IDE layout squeezed onto a phone | Full local environment on phone |
| Android IME & Scrolling | Native Compose keyboard & smooth scrolling | Frequent IME / viewport quirks | Same as WebView |
| Telemetry / Relay | Direct to your paired host, zero analytics | Depends on wrapper | Local |
What it does
- Your own chat list. Tap
+, pick a folder, pick one of its sessions, give it a name and a colour. Only the sessions you pinned show up — e.g. Executive Assistant, Researcher, Finance instead of a deep tree of session titles. - Native chat. Pure Kotlin and Jetpack Compose, zero WebView. Markdown, code blocks, collapsed reasoning, tool calls as compact rows, and history paging.
- Live streaming. Replies stream in as the model writes them, with a stop button right in the composer.
- Question cards. When an agent asks you something, the options show as a card above the composer, like a quiz: tap one, pick several, or type your own answer.
- Notifications. A chat you pinned notifies you when it finishes a reply or asks a question, also while the app is closed. Tap to open that chat. Turn it off in Settings.
- Agent mode. Turn it on for a chat from its menu. That chat stops notifying you after every reply and speaks up only when the agent pings you or asks something. Give it a job like “check the build every 10 minutes and ping me when it is green”. Needs the small host plugin in
host/dsh-pingand, for timers, DSH Schedule. - Model per chat. The chat header shows the model a chat runs on. Switch it, and its reasoning effort, from the chat's ⋮ menu; the list is every model your DSH can route to, grouped by provider.
- Dictation. With the message field empty, the send button turns into a mic. Speak, tap done, and the text lands in the field, ready to edit and send. Speech to text runs on your computer through the dsh-voice plugin, so its keys and local engines stay there; the phone only records (AAC, about 4 KB a second). The mic shows up only when the plugin answers.
- Faces and colours. Each pinned chat gets a random face; tap the face while naming it for another. Settings has the theme and an accent colour for buttons and links.
- Attachments.
+adds files or gallery photos, and pasting an image or a file into the message field attaches it too. Images reach the model as images; other files are uploaded to the host. - Pair once. Paste or scan the pairing link from DSH Remote access. The device credential is encrypted at rest with an Android Keystore key.
- Demo mode. "Try the demo" on the first screen runs the full UI on built-in sample data so you can inspect it before pairing.
Install
Download the APK from Releases and install it, or via USB:
adb install -r DSH-0.5.0.apk
Requires Android 10 or newer. Current preview APKs are signed with a debug key.
Connect
- On your computer open DSH, then Remote access (the phone icon next to Settings). Currently connects via the
@linxin666/dsh-remote-web-uiplugin. - Copy the pairing link (valid for 10 minutes).
- Paste it into the app and tap Connect, or scan the QR code and open the link with DSH.
The app talks directly to your computer through the same tunnel or LAN address the link points at.
How it talks to DSH
The app speaks the same wire protocol as the DSH remote web client:
| Pairing | POST <base>/api/pair/accept with the token from the link, returns a device id |
| Calls | POST <base>/remote/api/<endpoint> with a client-request envelope |
| Streams | one WebSocket at <base>/remote/api/remote.mux, many logical streams |
| Auth | header x-dsh-remote-device: <device id> on every request |
Endpoints used: session/list, session/follow, session/page, session/prompt, session/cancel, fileUploads/upload.
Code map:
data/wire/— encrypted credential storage, unary RPC, WebSocket stream multiplexerdata/Transcript.kt— folds live follow frames and history pages into chat itemsdata/DshClient.kt— host API consumed by the UIui/— Jetpack Compose screens
Replies and questions come from the read-only session/control stream: the turnOutline projection gets its reply when a turn ends, and the userQuestions projection lists the question calls an agent waits on. Answers go to userQuestions/answer. In the background a foreground service of type remoteMessaging keeps that stream open and shows one silent notification.
The app does not open the $events stream. The host asks every client holding it to answer tool approvals in turn, and a phone that drops its connection mid-request would fail the approval. So approvals are answered on the computer; the chat shows that one is waiting and how it was decided.
Build
Needs JDK 17 to 21 and the Android SDK (platform 36).
./gradlew :app:assembleRelease
./gradlew :app:testDebugUnitTest
Opt-in read-only integration test against a local DSH host (never sends a prompt):
DSH_LIVE=1 ./gradlew :app:testDebugUnitTest --tests '*LiveHostTest*'
Status & Roadmap
Verified against a live DSH host (0.2.0-rc.2): pairing, session list, history paging, sending prompts, and live streaming frames on Android.
Planned next:
- Question cards
- Answering tool approvals on the phone
- Agent mode with pings (
host/dsh-ping) - Switching a chat's model and reasoning effort
- Settings: theme, accent colour, notifications
- Image and file attachments
- Image previews in the transcript
- Stock
dsh web/@deepseek-ai/dsh-client-remote-connectionand@linxin666/dsh-remote-bridgeprotocol support - Notifications for finished replies and questions
- Voice input through
dsh-voiceon the host - Creating, renaming and archiving sessions on the host
Bug reports, protocol notes, and PRs are welcome!
Privacy
The app talks only to the DSH host you pair it with. No analytics, no telemetry, no third-party servers. The pinned chat list lives in app-private preferences, the device credential is encrypted with Android Keystore, and cloud backups are disabled.
License
Explorer des projets similaires
Chargement…