"Hey Lembas" could not work well: Lembas is not a word the model knows. - The phrase is a greeting (Hey, OK, Hello) and a name (Assistant, Computer, Google, and ten ordinary names); the default is Hey Assistant and an old saved id reads as it. - Token pieces are generated, not hand-written: fetch-wakeword.py also takes the model's bpe.model from the same pinned archive, gen-wake-phrases.py encodes every word with it into wake/WakeWords.kt, CI checks the committed table against the tokenizer, and WakeWordsTest checks every piece against tokens.txt. "OK" is spelled as the model's speech wrote it, OKAY. Elizabeth and Benjamin are dropped (four or more single-letter pieces). - Each keyword line carries a boosting score and a trigger threshold (sherpa-onnx's ":boost #threshold"), chosen by a Sensitivity setting: Low 1.0/0.35, Normal 1.5/0.25, High 2.0/0.15; short phrases 0.05 stricter. numTrailingBlanks is the engine's own 1. - Settings says the phrase is English whatever the app's language is, and that a Google device nearby answers to Google too. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LLeMbas for Android
A native Android app for a LLeMbas instance: your chats and agent chats, notifications that arrive when the app is closed, and LLeMbas as the phone's digital assistant -- hold the power button and ask.
- Native, not a web view. Kotlin and Jetpack Compose on the server's JSON API (
/api/v2). The installable web app keeps working; this is for what a web page on a phone cannot do. - No Google services. Notifications come through UnifiedPush (ntfy, or any distributor you like), so the app runs on de-Googled phones and builds for F-Droid.
- Your instance, nobody else's. Nothing is predefined: the app talks to the address you give it, and to nothing else.
Alpha. 0.x versions may change how things work between releases.
Install
Download the APK from the latest release
and check it against SHA256SUMS. The full APK updates itself from llembas.eu; the -fdroid
one does not. Android 10 or newer; the instance must run LLeMbas server 2.0 or newer (an older
one is refused at sign-in, with a sentence saying so).
Test builds. Every push to dev builds a debug APK: open the newest green run under
Actions, download the
llembas-android-debug-N artifact (GitHub asks you to be signed in), unzip it and install the APK that does
not end in -fdroid. It is a separate app ("eu.llembas.android.debug") beside a released one,
signed with a public test key kept in this repository, so each test build installs over the one
before it -- and anyone could sign one, so take test builds only from this repository's runs.
If your instance uses a certificate from your own certificate authority, install that CA on the phone first (Settings › Security › Encryption & credentials › Install a certificate › CA certificate). The app trusts CAs you installed, as the browser does.
Use
- Sign in: type the instance's address and approve the code shown, in the browser.
- Notifications: install a UnifiedPush distributor (for example ntfy), then Settings › Notifications › Turn notifications on.
- Assistant: Settings › Assistant › Open the assistant settings, and choose LLeMbas as the digital assistant app. On Samsung phones also set Settings › Advanced features › Side button › Press and hold › Digital assistant.
A wake word is there if you want one, off by default: Settings › Assistant › Wake word, a greeting and a name in English ("Hey Assistant"). Android reserves its low-power, always-on hotword detection for the system's own preinstalled assistant, so LLeMbas listens with an on-device engine in a microphone service, with a notification up the whole time; nothing leaves the phone before the word. Not in the F-Droid build.
Build
Builds run on GitHub Actions (.github/workflows/ci.yml); locally it is the usual
./gradlew assembleFullDebug with JDK 17 and the Android SDK.
Three things are generated from the server at one ref; the first two are pinned with a lock file CI checks, and CI checks the strings against the code:
| What | Script | From the server |
|---|---|---|
ui/theme/Tokens.kt |
scripts/fetch-tokens.py <server-ref> |
tokens.css |
contract/*.json |
scripts/fetch-contract.py <server-ref> |
tests/fixtures/api_v2/ |
res/values*/strings.xml |
scripts/gen-strings.py <server-ref> |
the translation catalogues |
The icons come from the server's pixel leaf (scripts/gen-icons.py).
Licence
MIT -- see LICENSE.