Hermes-Android brings the Hermes workspace to Android without turning it into a second product.
It hosts the official Hermes Webapp or Hermes WebUI as the real application surface and adds the Android capabilities that matter on a phone or tablet: a hardened WebView, trusted navigation, native sharing, uploads and downloads, notifications, secure local settings, update delivery, and recovery paths when the mobile runtime gets in the way.
Hermes-Android is the native shell that makes the web frontend feel at home on Android.
Now supporting the official Hermes Agent WebApp: bring the browser-hosted Desktop workspace to Android with native sharing, file pickers, notifications, and normal Android Back navigation. No separate Hermes WebUI installation required. See Official Hermes Webapp for setup and current limits.
- Your Hermes workspace, on Android
- Native where Android matters
- WebUI where Hermes matters
Hermes-Android keeps the real Hermes experience intact, then makes it feel right on Android.
|
|
|
|
Connect to either the official Hermes Webapp (Hermes Agent v0.22.6 or newer) or a separate Hermes WebUI instance. On first launch, enter that frontend's URL. The official Webapp does not require installing Hermes WebUI.
Enable the browser-hosted Desktop workspace on your Hermes host with
hermes config set webapp.enabled true, then run hermes webapp. For access
from Android, configure Desktop Settings > Web Access or follow the
upstream Webapp guide to publish it through your trusted VPN/reverse proxy.
Use the Webapp URL, not the separate admin Dashboard URL. Android does not
enable Web Access or change server configuration for you.
Add that URL in Android's server settings and sign in using the server's own page. Use HTTPS for remote access: microphone capture and other browser secure-context features are unavailable on ordinary LAN HTTP. Do not copy one-use sign-in links or tokens into saved server profiles.
Android recognizes the official workspace's __HERMES_UI_SURFACE__ marker.
Android Back steps through the workspace's in-page (hash) navigation
without reloading it or returning to the sign-in page, then asks you to press
Back again to exit. WebUI uses its browser history first, then the same
press-again-to-exit confirmation. Back never opens Application Settings.
Open Application Settings even when the page fails to load from the launcher icon's long-press Settings shortcut or the Edit server URL button on the connection error screen. In Application Settings > Notifications, While open or working enables a silent Settings shortcut while Hermes is visible and background WebUI session monitoring. The idle shortcut disappears when you leave Hermes. Background work and the latest browser message share that same notification instead of adding another entry. Expand it to read the message and use Reply when supported; tapping opens the conversation. Settings becomes a compact cogwheel beside Reply, with the normal text label otherwise. Android controls the final action layout. Android notification settings opens the system controls for permission, sound and notification channels. Long-pressing an alert also opens Android's controls, not Application Settings. In WebUI, the sidebar entry still works too.
Both frontends use the native upload picker, trusted HTTP(S) downloads, microphone permission handling, system-bar insets, pinch zoom, and Android Notification API bridge. The official workspace keeps ownership of its React editors, mobile keyboard behavior, tabs, responsive layout, and voice UI; Android does not emulate Electron or inject WebUI's sidebar/editor repairs. WebUI-specific session deep links, background SSE monitoring and approval actions are not an adapter for the official Webapp's gateway WebSocket protocol. Blob/data-URL exports and notification clicks that require a page-local JavaScript callback are not yet supported natively.
In Application Settings > Appearance > Launcher icon, near the bottom above About, choose the existing Hermes WebUI artwork or the official Hermes Agent artwork. This changes only the Android launcher entry, independently of the current server. Launchers may take a moment to refresh; a previously pinned home-screen shortcut may need to be pinned again.
Servers default to Automatic: after the configured frontend loads,
Android recognizes its explicit page marker and remembers a blue Hermes Agent
or gold Hermes WebUI badge. Detection may need you to finish signing in first.
Unknown/older pages stay unlabeled rather than being guessed from their URL,
title, or /api/status.
Long-press a server and choose Edit > Server type to override detection, or choose Automatic to use the detected type again. Existing manual choices are preserved. Detection and labels never change navigation, trust, frontend behavior, or your launcher icon, and label edits do not reload the workspace. Official Agent artwork attribution is included in THIRD-PARTY-NOTICES.
Production Play description text is maintained in store/google-play/en-US/
and submitted with production releases; F-Droid's channel-specific text lives
under fastlane/metadata/android/en-US/. Publisher API readback verifies the
committed Play text, not the timing of public storefront review/propagation.
The first time you open the app with no server configured, a short swipeable welcome guide explains what Hermes-Android is (a remote control for your own Hermes Agent), the two interfaces it can host (the community Hermes WebUI, or the official Hermes Agent Webapp, which you must enable on your computer first), how to have your agent set up the host side, and why you need a private network such as Tailscale to reach it away from home. Swipe or use Back/Next, or Skip. Reopen it any time from Show welcome guide in Settings. It is informational only: external links open in your browser, and nothing is sent to a server. Existing users with a server already configured do not see it automatically.
Already running Hermes Agent? On first launch, use Copy command to set up WebUI or Copy command to set up Hermes WebApp below the connection form. After connecting, expand Need help setting up a server? under Servers. Paste the copied text into your existing Hermes chat on the computer/server that runs Hermes, not a terminal. Android only copies the prompt: it does not install software, run a shell command, or change your server.
Choose the official WebApp for the Desktop workspace without a separate WebUI
installation, or WebUI for the community web interface. Follow Hermes' guidance,
then paste the reusable server URL into Android and sign in. A URL beginning
with localhost or 127.0.0.1 points to the phone when opened on the phone.
Prefer authenticated HTTPS over a trusted VPN; never save temporary sign-in links.
These prompts guide an existing agent, not a guaranteed unattended installer.
If you do not have Hermes Agent yet, start with the
official installation guide.
Copy command to set up WebUI (paste into Hermes chat):
Help me set up Hermes WebUI for the Hermes-Android app on my phone. Work on the computer/server that runs my existing Hermes Agent, not on the Android phone. First check the operating system, existing Hermes/WebUI installations, active profile, ports and network access. Preserve my models, credentials, conversations and configuration; do not reinstall or overwrite a working setup.
Read https://github.com/nesquena/hermes-webui and its docs/onboarding-agent-checklist.md for current instructions. Reuse an existing WebUI installation. If it is missing, explain the installation plan and ask before installing dependencies or downloading/running installers. The documented bootstrap uses git clone https://github.com/nesquena/hermes-webui.git hermes-webui, then cd hermes-webui and python3 bootstrap.py; native Windows needs a supported alternative such as WSL2. Check compatibility instead of blindly running these commands.
Help me choose safe phone access using an existing trusted VPN such as Tailscale, an SSH tunnel, or an authenticated HTTPS reverse proxy. Localhost/127.0.0.1 on my phone is the phone, not this server. Keep authentication enabled. Do not expose an unauthenticated service, open router ports, disable TLS verification or change firewall/network settings without explaining the risks and asking me first. Prefer HTTPS for microphone and browser features.
Verify the server's health and sign-in locally, then guide me through a phone-side connection check; do not claim phone reachability from a localhost check. Give me the reusable server URL to paste into Hermes-Android, simple sign-in steps and how to stop/restart the service. Never include passwords, API keys, bearer tokens or one-use login links in the saved URL or your response. If access or a check is unavailable, state what remains unverified.
Copy command to set up Hermes WebApp (paste into Hermes chat):
Help me enable the official Hermes Agent WebApp (the browser-hosted Desktop workspace) for the Hermes-Android app on my phone. This is not the admin Dashboard and does not require the separate Hermes WebUI repository. Work on the computer/server running my existing Hermes Agent, not on the Android phone. Check the installed version, active profile, gateway state and network access first. Preserve my credentials, conversations, models and working configuration.
Read https://hermes-agent.nousresearch.com/docs/user-guide/desktop and the linked Webapp configuration/authentication documentation for the installed version. The basic host commands are hermes config set webapp.enabled true and hermes webapp. Explain the plan and ask before updating Hermes, downloading/building dependencies or restarting a gateway that may have active chats. Use the existing profile and do not install Hermes WebUI as a substitute.
For phone access, prefer Desktop Settings > Web Access with authenticated HTTPS through my existing trusted VPN/reverse proxy. A same-host proxy can keep the Webapp on loopback and use webapp.public_url; other topologies need their documented configuration. Do not blindly bind to 0.0.0.0: non-loopback access requires the documented sign-in gate. Do not expose unauthenticated access, forward router ports, disable TLS verification or change firewall/network settings without explaining risks and asking first. WebApp access can run commands and access files as the host user.
Verify hermes webapp --status and the sign-in flow, then guide me through a phone-side connection check. Localhost/127.0.0.1 on my phone is not this server. Give me the reusable HTTP(S) server URL to save in Hermes-Android and simple sign-in steps. Keep temporary one-use sign-in links, passwords, API keys and tokens private and out of the saved URL and your response. Prefer HTTPS for microphone and browser features. If any setup or phone check cannot be verified, say what remains.
Hermes already has a strong web experience. Android should not fork that experience or reimplement it badly.
This repository exists to solve the Android-specific problems well:
- Host Hermes WebUI inside a secure, reliable Android shell
- Preserve WebUI behavior instead of replacing it with app-specific workflows
- Fix Android WebView compatibility issues that break real usage
- Add Android-native capabilities where the browser alone is not enough
- Keep distribution, signing, updates, and device behavior production-ready
The result is a native-feeling Android client that still behaves like Hermes WebUI, not a parallel mobile rewrite that drifts out of sync.
Hermes-Android is built for:
- Hermes users who want their real workspace on Android, not a reduced mobile fallback
- Self-hosters who need HTTP or HTTPS support for trusted local or remote Hermes deployments
- Testers and contributors who want a proper Android distribution channel instead of a one-off wrapper
- Teams that want Hermes WebUI parity while still respecting Android platform expectations
Because opening Hermes in a mobile browser is not the same as integrating it properly with Android.
Hermes-Android adds the platform work that a plain browser tab does not own:
- Trusted in-app navigation and host-boundary enforcement
- Native share-sheet intake, uploads, downloads, and camera capture
- Android-backed notifications and update delivery
- Recovery flows for bad server settings, broken WebView states, and reconnect windows
- WebView-specific compatibility fixes so Hermes surfaces render and behave correctly on Android
The goal is not to replace the web app. The goal is to make the web app feel first-class on Android.
- Secure WebView hosting for trusted Hermes HTTP and HTTPS deployments
- Host allowlist enforcement and external handoff for untrusted links
- Android lifecycle, recovery, deep links, and session restore behavior
- Native settings, encrypted local storage, and server profile management
- Share-sheet intake, file uploads, downloads, and camera capture
- Android-backed Hermes notifications and update alerts
- Release packaging for both Play and GitHub channels
- Product behavior and feature workflows
- Chat, sessions, workspace, routing, and API behavior
- UI layout, styling, animations, and dashboard behavior
- Cross-platform features that should work the same in browser, desktop, and Android
If a change belongs to Hermes everywhere, it belongs in WebUI first.
- Kotlin + Jetpack Compose app shell around the official Webapp or Hermes WebUI
- Hardened WebView defaults with DOM storage and browser-managed HTTP and service-worker cache behavior
- Pull-to-refresh, loading, offline, and recovery flows designed for Android
- Deep link support for Hermes sessions through
hermes://session/{id} - Native recovery route through
hermes://app/settings
- Measured layout/visual-viewport repair for Android WebView builds that collapse Hermes layout, including shifting prompt surfaces fully above the software keyboard
- Clarify-specific initial-autofocus handling that keeps multiple-choice options visible without blocking editable WebUI dialogs or later validation focus
- System-bar safe inset handling so Hermes content does not sit under Android status and navigation bars
- Forced WebView darkening disabled so Hermes controls its own visual presentation
- Local network permission handling for Android 16+ so LAN-hosted Hermes WebUI instances can load inside the WebView. A confirmed permission error can prompt for access even when the host was not recognized in advance. A failed form submission prompts without automatically replaying the form; Retry and Open in browser return to the configured server so the action can be started again. An older sign-in page reached with Back may also require a manual retry.
- Microphone compatibility handling so trusted Hermes pages can use Android-supported capture paths
- Spoken replies can play without a fresh tap on the trusted WebUI route. Android denies new microphone requests while not resumed and dispatches a proposed
hermes-app-foregroundhost signal; current WebUI does not consume it. Stopping existing capture/playback and requiring explicit re-arm depend on WebUI support (tracked in #120). - OAuth/OIDC callback handling that keeps trusted sign-in flows in-app until the declared Hermes callback returns
- WebView passkey integration uses the same AndroidX Credential Manager dependency across app variants, without a Google Play Services adapter in any build. End-to-end availability remains unverified and depends on the installed Android/WebView and credential provider; omitting the optional adapter may limit compatibility on older devices. The identity-provider's sign-in domain must also publish Digital Asset Links for the exact app package and signing certificate. Some providers, including Pocket ID, may reject Android-app WebAuthn origins even with that association.
- Reverse-proxy sign-in redirects (such as Authelia) can continue in-app after you confirm the server and login origins;
/api/statusdoes not need to be exposed outside proxy authentication. If that sign-in gateway (for example TinyAuth) starts its own OAuth/OIDC sign-in whose callback returns to the same gateway, the identity-provider pages also stay in the app so the gateway keeps its sign-in cookie. - Optional Settings → Connection → Sign in with Chrome (off by default) opens OAuth/OIDC sign-in pages in a Chrome Auth Tab, where browser passkeys work, and returns the callback to the app. It needs Chrome 137 or newer, an
https://callback, and the callback host (Hermes for Hermes sign-in, or the sign-in gateway such asauth.example.com) must publish/.well-known/assetlinks.jsonfor this app. Copy assetlinks.json in that setting copies the file for the exact build you have installed; Play, GitHub, F-Droid and debug builds each need their own entry. If Chrome is missing, too old, or the callback ishttp://, sign-in stays in the app. If Chrome cannot verify the app, you can Continue in app instead. - When a recognized sign-in request falls back to the WebView, the app records a reason without its URL or OAuth parameters in its diagnostic breadcrumbs. This does not establish that every provider flow can be recognized or that a live Auth Tab round trip succeeds.
- Proxy-level HTTP Basic challenges on the configured server show a native username/password prompt with the password masked. The app no longer saves sign-ins from this prompt or automatically supplies previously remembered sign-ins. WebView may reuse an entered sign-in in memory for the same origin. Credentials embedded in a saved server URL remain part of that URL and may be sent automatically. Edit the URL to remove them, and also check the server name: leaving the name blank when adding a server copies the full URL into it, so it may need editing too. Startup, reconnect, notification taps and workspace recovery reject old routes with different URL credentials; Back skips entries with those credentials on the server host. Main-frame requests exposing outdated URL credentials for a selected or previously selected server in the current activity are blocked, including POST and popup handoffs. If history contains outdated credentials when the server changes, the app clears that history. This is not a sign-out and does not clear WebView's authentication cache. Data from the former Remember setting is inactive and can be deleted under Settings → Connection → Forget saved sign-ins; this does not change server URLs or names. Basic-auth challenges from other hosts are rejected.
- Delayed WebView callbacks during a server change can still affect the displayed route or error state when their URL credentials are unchanged or absent. The app keeps the existing WebView rather than resetting it to separate those callbacks; navigation can still discard page state. This limitation remains tracked in #184.
- File uploads and downloads, including direct camera capture when pages request image capture
- Chat and Files downloads keep server-provided filenames and extensions, including UTF-8 names
- Downloads save to the shared Download folder on Android 10+, so they appear in Files > Downloads
- Share-to-app intake for text and files
- Android-backed browser notifications for Hermes WebUI alerts
- One notification for the optional quiet Settings shortcut (only while Hermes is visible), background WebUI monitoring/reconnect work, and the latest browser message, shared by both frontends. Pending approvals take priority over messages. Leaving the app removes the idle shortcut, not an unread message or Android's required active-work notification. Disabling While open or working turns off the shortcut and background monitoring, not browser messages; use Android notification settings to mute those. Update/download and opt-in debug-capture notifications remain separate. No idle foreground service or process-survival guarantee is added.
- WebUI browser alerts for an idle current session offer Reply directly in the notification. This uses the existing signed-in session cookie and WebUI chat endpoint; it does not open the app or replace a composer draft. Enable notifications in WebUI as well as Android. Replies expire after 30 minutes, closing Hermes, a server switch, or process death; an expired action cannot send; reopen the conversation instead. Stale actions cannot replace a newer alert. Rejections and uncertain delivery are shown explicitly, with no automatic resend. WebView-only HTTP Basic credentials and client-certificate challenges cannot be reused by this cookie-backed native request. Official Webapp direct reply is not supported. An alert received while approval is pending stays read-only even after the approval clears: open the conversation to reply, rather than assuming it is still idle. Unread text can survive process restart, but Reply actions cannot; obsolete actions report that they are unavailable without replacing newer alerts.
- Persistent authenticated session-stream monitoring (
/api/session/stream) for trusted WebUI/session/{id}pages (including server mount prefixes), with reconnect polling fallback when live streaming is unavailable - Optional debug-log capture with persistent foreground notification and one-tap stop action
- Channel-aware app updates: Play uses in-app update flow, GitHub APK builds download and hand off to installer in-app
- GitHub APK updates surface a stateful in-app action flow (
Check->Download->Install) and still show an install-ready notification when Hermes is backgrounded - About and Updates are together at the bottom of Settings: see the installed version, check/download/install for your build channel, and open the latest GitHub release notes. GitHub checks retain the latest release summary even when there is no newer APK; GitHub notes are not a claim about which version Google Play has delivered. The manual notes link works in every build, without enabling an update provider in F-Droid or debug builds.
- Only
http://andhttps://Hermes hosts are supported in-app - Allowlisted Hermes navigation stays in-app; other web links are externalized
- Non-web schemes are blocked
- HTTPS in the app uses Android's system and user-installed CA stores; normal certificate-chain and hostname checks remain enabled. User-installed CAs apply app-wide, not just to one server profile.
- Notification routing, microphone access, and callback handling stay scoped to trusted Hermes origins
- Proxy sign-in approval lasts five minutes and permits only the server and confirmed login origins. It does not grant the login site Hermes notification, microphone, or download privileges; unrelated redirect destinations remain external.
- Local settings are encrypted with Android Keystore-backed storage
- Optional VPN/Tailscale startup guard for Tailscale-addressed Hermes servers (
*.ts.net, Tailscale CGNAT/ULA ranges) - Optional VPN launch-app picker with search plus a Tailscale default package fallback before Android VPN settings when the VPN/Tailscale guard blocks a server load; Hermes first asks Tailscale to connect while keeping Hermes on screen, keeps an every-second
/api/statusprobe alive, automatically reloads once VPN and server are ready, and only opens Tailscale if auto-connect has not established a tunnel within ten seconds
When Hermes-Android is doing its job well, the experience should be simple:
- Open the app and land in your actual Hermes environment
- Stay inside Hermes for trusted work instead of bouncing between browser surfaces
- Use Android-native sharing, capture, notifications, and recovery where the phone should help
- Keep Hermes WebUI as the source of truth for product behavior and interface flow
Hermes-Android currently publishes through two release channels, with a third pending:
- Google Play production via the
playbuild - GitHub APK distribution via the side-by-side
githubbuild - F-Droid (pending inclusion, #141):
F-Droid builds the Play-free
releasebuild from source at eachv<version>tag and signs it with its own key. After inclusion, no extra release step is needed.
Only the Play build contains Google Play/Play Services libraries (Play Core in-app updates). Every build uses the same AndroidX Credential Manager dependency, without the optional Play Services adapter; GitHub and F-Droid builds contain no Google Play or Firebase code.
Current checked-in release metadata:
- Version name:
1.3.5 - Version code:
10305 - Play application ID:
com.hermeswebui.android - GitHub application ID:
com.hermeswebui.android.github - F-Droid application ID:
com.hermeswebui.android.fdroid - Compile SDK / target SDK:
37 - License: MIT
If you want access to the Play release, install from Google Play or sideload the GitHub APK from the Releases page.
git clone https://github.com/hermes-webui/hermes-android.git
cd hermes-android
.\gradlew.bat assembleDebug --no-daemonOpen the repository in Android Studio to run on an emulator or device.
Requirements:
- Android Studio with Android SDK 37
- JDK 17 or newer compatible with Gradle
- A reachable official Hermes Webapp or Hermes WebUI URL over HTTP or HTTPS
Default app strings live in:
app/src/main/res/values/strings.xml
Important values:
default_server_url- default Hermes WebUI URLdefault_dashboard_url- optional explicitly configured dashboard origin used only for Android-side Custom Tab matchingapp_name- Android launcher label
Android identity and app-level wiring live in:
app/build.gradle.ktsapp/src/main/AndroidManifest.xmlsettings.gradle.kts
The shipped WebUI default is a placeholder HTTPS origin and the shipped dashboard default is blank. In normal use, WebUI owns dashboard auto-detect and persistence.
Local signed release builds use an untracked repo-root keystore.properties
file. CI builds use the corresponding ANDROID_KEYSTORE_* environment
variables and secrets.
Local signing setup:
- Copy
keystore.properties.exampletokeystore.properties. - Fill in the real keystore path and passwords.
- Keep that file untracked.
Example:
storeFile=C:/path/to/upload-keystore.jks
storePassword=replace-me
keyAlias=upload
keyPassword=replace-meUseful commands:
.\gradlew.bat test --no-daemon
.\gradlew.bat lintDebug --no-daemon
.\gradlew.bat assembleDebug --no-daemon
.\gradlew.bat stageGithubReleaseApk --no-daemon
.\gradlew.bat printReleaseVersionName --no-daemonDevice check:
.\gradlew.bat connectedDebugAndroidTest --no-daemonRepository tooling checks can be run with:
python -m unittest discover -s tools/tests -p 'test_*.py' -v
python tools/check_markdown.pyThe docs-only CI short-circuit is fail-safe: only a non-empty diff containing Markdown files exclusively can skip the Android Gradle gates. Unreadable, empty, invalid, renamed, or mixed diffs run the full suite.
CI runs the full debug unit suite, including Android voice ownership, microphone permission lifecycle, and selected-server navigation regressions. Android source/build changes run unfiltered instrumentation on API 35 and 36; releases repeat the full API 36 suite. Selected-server instrumentation uses isolated encrypted preferences to check active-profile repair, edited-server persistence, allowlists, and startup/reconnect trust. Tooling contracts reject narrowed test commands. These Android checks do not prove upstream WebUI's foreground-event consumer or end-to-end voice conversation behavior.
Release automation is centered on:
.github/workflows/1-orchestration-release.yml.github/workflows/2-publish-github-apk.yml
Optional/manual Play workflows:
.github/workflows/3-publish-play-store-production.yml.github/workflows/play-store-beta-manual.yml
That flow builds:
hermes-webui-v<version>-github.apkfor GitHub/device installshermes-webui-v<version>.aabfor Google Play production
Release orchestration builds the reviewed appVersionName already checked into
Git and never commits or pushes source changes. versionCode is derived from
semantic version as major*10000 + minor*100 + patch; update the Gradle and
README metadata together before starting a release.
See RELEASE.md for the operator workflow, including the phone and tablet GitHub APK acceptance checklist and the human approval gate before any push, tag, release, or secret change. Android updates always hand off to the system installer; no silent install is promised.
Core runtime areas:
MainActivity.kt- Android platform boundary, WebView host, intents, dashboard Custom Tab handoffcore/security/- URL policy and trust-boundary decisionsdata/- encrypted settings persistence and local statedomain/- validation and share-intent parsingnotification/- Hermes notification bridge and Android notification presentationbackground/- reconnect, debug logging, and foreground-service coordinationserver/- startup preflight and server profile validation/switchingupdate/- Play and GitHub update checks and update UXui/- Compose screens and ViewModel state
See ARCHITECTURE.md for the detailed runtime flow and security model.
- ROADMAP.md - project status, maintenance posture, and wishlist
- ARCHITECTURE.md - runtime flow, boundaries, and extension points
- RELEASE.md - release operator workflow and retry path
- AI_USE.md - AI-assisted development approach, review, validation, and accountability
- AGENTS.md - repository instructions for AI assistants
- assets/ - README images, branding assets, icons, and TWA handoff files
Hermes-Android uses AI-assisted development openly as part of implementation, investigation, and documentation work.
Architecture, security boundaries, validation criteria, and release decisions remain under human ownership. AI output is reviewed as proposed engineering work, not treated as authoritative by default.
See AI_USE.md for the full policy and workflow.




