I built myself an SSH client for the browser because the one I was using had grown too big. Dirl is a single JAR with one way to log in and a handful of features, and every one of them had to earn its place. This post explains why I think that is the better approach for a tool with SSH access.
Dirl is a self-hosted web SSH client: terminal, SFTP file manager, up to two jump hosts and server status.
A single Kotlin JAR (Java 21 is enough to run it), plus a Docker image.
Login only through OpenID Connect, for example with Pocket ID. Hosts and keys live in an encrypted vault.
No native app, but an installable PWA with a view made for smartphones.
Left out on purpose: its own passwords, an editor in the browser, an app API.
I had wanted my own SSH tool for years, but as a side project next to many others it was too much work and too complex. Then I found Termix, fairly early on. It made a good impression, so I set it up and enjoyed using it.
One thing bothered me from the start: small things kept going wrong, mostly in the file manager. Then Termix grew extremely fast, driven by AI. Countless features arrived, and none of them interested me. Bugs piled up, and bugs that had been closed came back. More code and more features mean more complexity and more room for errors, and that is not a small matter for a tool with SSH access.
The switch to plugins brought bugs that hit me quite hard. That was when I had enough.
Everything follows one principle: KISS. Less code, less logic, less attack surface.
Kotlin on the backend, as little JavaScript as possible. A robust, compiled language and a single JAR instead of many parts.
OIDC is the only login. No passwords of its own and no login logic of its own. That raises the barrier to entry noticeably, but it saves code, logic and bugs. Pocket ID or another open source provider is quick and easy to set up.
No app, on purpose. I have been an app developer for years, and that is exactly why I did not build one. An app means more code, more attack surface and an app API of its own. Instead there is a PWA you can install on your phone, and a view optimized for phones: snippets, Enter and Cancel instead of the keyboard.
Docker only as an offer. There is an image because it lowers the barrier for most people. I am not a Docker fan, so it is not the main route.
Every feature has to earn its place. It is worked out and only adopted if it is really necessary, useful and important. That does not mean nothing new will come, but it is checked strictly.
Yes, Dirl is built with AI, and the README says so. Code, tests and documentation were written with Claude, and I reviewed all of the code myself. I am not saying Termix is bad because of AI. I think AI was used the wrong way there: for quantity instead of quality.
My first prototype was ready after two days. Version 1.0.0 still took weeks, even though the project is not especially large. The AI saved me time, I could learn and build faster. I spent that time on reviews, hardening and analysis.
This is how a review went: Claude first checked everything on its own, with real SSH servers and with skills. Every finding had to be proven, and so did every proposed fix. Then we went through each point together, rated it, and either implemented or dropped it.
Dirl is not perfect. But what it says it can do, I believe it does really well and reliably.
What the audits found, what was changed as a result and what I deliberately rejected is written down in security.md. Many findings protect more against a compromised target server than against someone getting into Dirl. Dirl therefore treats a compromised server like an attacker: everything it reads from one is capped, for example metrics at 256 KiB, directory listings at 10,000 entries and SFTP packets at 1 MiB.
One example of a deliberate rejection: during an SFTP upload the temporary file has a fixed name and is opened without O_EXCL. Someone who can write to the target directory could plant a symlink there. Hardening that would have made the write path more complicated, and with one service per container the gain is small. So the risk is written down with its reasoning and a clear warning in the docs (do not upload with a privileged login into directories that less privileged users can write to), instead of letting the code grow.
You need Java 21 to run it and an OIDC provider. The ready-made dirl.jar is on the Releases page, the Docker image is ghcr.io/nexus421/dirl. Set publicUrl and the oidc section in config.json, then:
cp config.example.json config.json
java -jar dirl.jar config=config.json
Without an identity provider you can try Dirl locally with ./gradlew devRun.
Code and docs: github.com/nexus421/Dirl
Issues and feedback are welcome.
Why Dirl? In Bavarian dialect, “Dirl” means door. SSH is the door to your servers, and Dirl should be just that: a door, not a whole building.
Deutsche Version: Dirl auf Deutsch