- Kotlin 63%
- Shell 36%
- Dockerfile 0.5%
- Python 0.5%
Claude-Session: https://claude.ai/code/session_01NyjujUGDCQzAjWVziwsi6g Assisted-by: Claude Sonnet 5.5 |
||
|---|---|---|
| app | ||
| docs | ||
| gradle/wrapper | ||
| libreportal-app@9826e21957 | ||
| tests/e2e | ||
| third_party/termux-terminal | ||
| tools | ||
| .gitignore | ||
| .gitmodules | ||
| build.gradle.kts | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.md | ||
| settings.gradle.kts | ||
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
- Install the APK. The first time, Android asks you to allow installs from your browser.
- Open LibreTerminal and tap Add a computer: a name, its address and your user name on it.
- 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.)
- 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.shunless you set your own server under Advanced first; a computer that already has anntfy_urlkeeps 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.
Links
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 computerlibreterminal://open?host=<saved name>&cmd=<saved command>: the same, running one of its saved commandslibreterminal://request?host=<saved name>&id=<request id>: answer a waiting request (whatlt-asksends)
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).