Installation
Karga has two parts: Karga Core runs on the Linux machine where Hermes is installed; the Karga app runs on your Android phone. They connect over your Tailscale network. Dictation is optional.
The source is on GitHub. The Android app isn't public yet.
System requirements
Linux host
- Linux with systemd user services and a working Hermes Agent installation. Run setup as the user who runs Hermes, not as root.
- Tailscale connected, with the
tailscalecommand on your PATH. - Rust and Cargo to build Karga Core from source.
Android phone
- Android 8.0 or newer (API 26).
- Tailscale connected to the same tailnet as the Linux host.
The hardware and Python requirements below apply only to local dictation.
Linux Karga Core
Clone the source, build the bridge and run the setup wizard:
git clone https://github.com/vcdsgn/karga.git
cd karga
./install-karga.sh
export PATH="$HOME/.local/bin:$PATH"
karga setupThe wizard checks Hermes and Tailscale, lets you choose a Hermes profile, and starts two user services: karga-dashboard and karga-core. It can show a pairing code at the end.
Karga uses your existing Hermes setup and its approval settings. Check those settings before asking the agent to run commands from your phone.
macOS Coming soon
Karga Core for macOS is in development. For now, use a Linux host to run Core alongside Hermes.
Android
Karga for Android
Android 8.0 and later
If you already have the beta APK, install it on your phone and open Karga. Public download instructions will go here once a release is available.
Pair your phone
- Use the QR code shown at the end of setup. If you’ve already closed setup, run
karga pairon the Linux machine for a new one. - In Karga, scan the code. If you can’t use the camera, choose Paste a pairing link instead and paste the full link from the terminal.
- Check that the server shown is yours, then confirm. When Karga says You’re connected, choose Start chatting and send a short message to check that Hermes replies.
Pairing codes expire after five minutes. Run karga pair again if the code has expired. Keep the code and its link private.
Dictation Optional
Choose dictation during setup, or change it on the Linux machine later:
karga setup dictation- On this computer: Karga Core sends audio to karga-whisper on the same Linux machine. Setup checks for an x86-64 or ARM64 processor with at least two cores, 4 GiB of RAM, 2 GiB of free disk, and Python 3.10 or newer with
venvsupport. Choose a model in the wizard. - Your own speech API: supply an OpenAI-compatible transcription endpoint and key. Karga Core forwards audio to that endpoint; the key stays on the Linux machine.
- Off: use Karga without dictation.
Notifications Optional
Choose a mode during setup, or change it on the Linux host later:
karga setup notifications- Off: No background notifications. Replies still sync when you open Karga.
- Time-based: The phone checks for replies on a 15-, 30-, or 60-minute schedule. No Firebase required. Android can delay background checks.
- Instant: Use your own Firebase project. Firebase sends only a wake-up signal; the phone fetches the reply from your server over Tailscale.
Set up Firebase for Instant notifications
In karga setup notifications, choose Instant notifications. Karga needs a service account JSON key, not a Firebase API key or google-services.json.
- Create a project. In the Firebase console, choose Add project, name it, and leave Google Analytics off.
- Register Karga for Android. Go to Project settings → Your apps → Add app → Android. Enter
com.karga.androidas the package name, then choose Register app. Skip thegoogle-services.jsondownload. - Download the private key. Go to Project settings → Service accounts → Generate new private key, then choose Generate key. Put the downloaded JSON file somewhere private on the Linux host running Karga Core.
- Check the key in Karga. At Where is the key file?, enter the file path and choose Check the key. Continue when the wizard verifies it. Don’t send the JSON in chat or commit it to Git.
Checking the key does not send a notification. After pairing, allow Karga notifications on Android and send a test notification separately.
Troubleshooting
Can’t connect from Android
Make sure Tailscale is connected on both devices and that both devices are on the same tailnet. If only the code expired, generate a fresh one rather than reinstalling.
Check the Linux services
systemctl --user status karga-dashboard karga-core
journalctl --user -u karga-core -n 50If the wizard reports writable Hermes folders, review the paths shown. Choose Fix folder permissions, then Check again.
Updates and devices
karga updatefetches updates from the checkout’s configured upstream, rebuilds, and restarts Karga. It stops if the checkout has uncommitted changes or the branches have diverged.karga restartrestarts Karga’s services, not the Hermes gateway.karga deviceslists paired phones.karga unpair <name>removes one after confirmation.