Answer your computers from your phone, and a terminal for your own servers. Part of the LibrePortal family.
  • Kotlin 63%
  • Shell 36%
  • Dockerfile 0.5%
  • Python 0.5%
Find a file
2026-12-03 22:19:29 +00:00
app LibreTerminal 0.1.8: accept requests by themselves 2026-12-03 18:13:30 +00:00
docs LibreTerminal 0.1.8: accept requests by themselves 2026-12-03 18:13:30 +00:00
gradle/wrapper LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
libreportal-app@9826e21957 LibreTerminal 0.1.5: in-app update check (libreportal.org, sha256 + same certificate, download kept and resumed), Check for updates in Settings 2026-12-02 20:17:26 +00:00
tests/e2e LibreTerminal 0.1.8: tests follow the new Settings card and the pop-up's wording 2026-12-03 22:19:29 +00:00
third_party/termux-terminal LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
tools LibreTerminal 0.1.8: accept requests by themselves 2026-12-03 18:13:30 +00:00
.gitignore LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
.gitmodules LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
build.gradle.kts LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
gradle.properties LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
gradlew LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
gradlew.bat LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
LICENSE LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00
README.md LibreTerminal 0.1.8: accept requests by themselves 2026-12-03 18:13:30 +00:00
settings.gradle.kts LibreTerminal 0.1.0: answer your computers' requests from the phone, and open a terminal on them 2026-11-28 14:24:28 +00:00

LibreTerminal

Answer your computers from your phone. When a script on one of your own computers needs a password, a yes or no, or a short code, LibreTerminal brings the question to your phone. Tap the notification, answer, and the waiting script carries on. Your answer goes straight to it, and is never saved on the phone or on the computer.

It is also a terminal for your own computers and servers, over SSH, in the LibrePortal look.

Preview: it works, but expect the odd rough edge.

What you get

  • Requests. A script runs lt-ask --secret "Signing key password" and waits. You get a notification, tap it, type the password and tap Send. Yes/no questions are one tap.
  • Accept requests by themselves. Off unless you turn it on, for all computers or one: yes/no questions are accepted without asking, with a quiet notice and a history. Never anything typed.
  • Link servers. A computer can offer LibreAccess invites with lt-link; tick, tap Yes, and the LibrePortal app links them.
  • A terminal on the computers you saved, with the keys a phone keyboard lacks (Esc, Ctrl, Tab, arrows, |, ~, /), pinch to zoom, and sessions that stay open in the background and reconnect by themselves.
  • Saved commands such as tmux attach -t unlock, one tap from the app, a home-screen shortcut or a link.
  • Your keys stay on the phone, sealed by the phone's own key store. The first time you connect, the app shows the computer's identity for you to check; if it ever changes, LibreTerminal refuses to connect.
  • Nothing else. No accounts, no analytics. The only network connections are the ones you start, and one small look at libreportal.org for a newer version (when you open the app, at most every few hours, or when you tap Check for updates).

Get started

  1. Install the APK. The first time, Android asks you to allow installs from your browser.
  2. Open LibreTerminal and tap Add a computer: a name, its address and your user name on it.
  3. On the computer's page, tap Sign in with the password. LibreTerminal adds this phone's key there and forgets the password. (Or Set up by hand to copy the key.)
  4. Tap Let (computer) ask me things. LibreTerminal puts its small helper on the computer, with a second key that can only answer requests, never open a terminal, and gives the computer a notification topic of its own. LibreTerminal then listens for it itself: no other app is needed. (Topics are made on ntfy.sh unless you set your own server under Advanced first; a computer that already has an ntfy_url keeps it. The ntfy app is still an Advanced option.) It then asks Android to let it send notifications and run in the background: allow both, or requests can't reach you while the app is closed.

Then, in any script on that computer:

pw=$(lt-ask --secret "Signing key password") || exit 1
if lt-ask --yesno "Deploy now?"; then deploy; fi

To have a command run only when you say so, lt-run "Why" -- COMMAND ARGS… shows it on the phone in full with Run and Don't run.

More in tools/README.md.

LibreTerminal opens these, from a notification, a shortcut or another app. A link can only name things you saved on the phone; it can never carry a command, an address or a key.

  • libreterminal://open?host=<saved name>: a terminal on that computer
  • libreterminal://open?host=<saved name>&cmd=<saved command>: the same, running one of its saved commands
  • libreterminal://request?host=<saved name>&id=<request id>: answer a waiting request (what lt-ask sends)

For developers

  • How it is put together: the engine, the keys, the request protocol, and what comes next.
  • Build: ./gradlew :app:assembleRelease (on the LibrePortal build server: .claude/dev-helpers/lp-remote-gradle.sh). Unit tests: :app:testDebugUnitTest. The computer-side tools: bash tools/test/run.sh. End to end on Redroid: tests/e2e/README.md.

The shared look lives in the LibrePortal app, included as the submodule libreportal-app. Clone with --recurse-submodules.

Contributing and reporting problems

Found a bug or have an idea? Open an issue. Please never post passwords, keys or other secrets in an issue. For security problems, use the report a bug page rather than a public issue. Pull requests are welcome.

Licence

GNU AGPL-3.0-or-later. sshj, Bouncy Castle and Termux's terminal-emulator and terminal-view are under permissive licences (see docs/DESIGN.md).