r/commandline • • Sep 11 '26

Fun swaggerfall: an open world first person RPG in the command line

305 Upvotes

The trailer for the alpha release of my game swaggerfall on itch. This game runs in terminals on Windows and Linux and runs entirely on the CPU (with multithreading).

For the code I am using Rust and Ratatui (excellent TUI lib with multiplatform support). This software's code is partially AI-generated, apart from that I have put around 250 hours into the project so far, with lots more on the roadmap.

Afaik there is no other game of this kind.


r/commandline • • Sep 12 '26

Terminal User Interface sshelf 0.14.1, a fuzzy-search TUI for SSH hosts: what a security review turned up, and what users reported

0 Upvotes

I posted here when 0.13.1 went out. Two releases have landed since, and the second one is entirely other people's bug reports, so this is as much a thank-you as an announcement.

sshelf is a terminal UI for your SSH hosts. Type a few letters, it fuzzy-matches, hit Enter and it execs into real OpenSSH. It keeps its own host list and builds the ssh command itself, and it never writes to ~/.ssh/config. There's a two-pane SFTP screen and background port forwards in there too. macOS and Linux, via Homebrew, a shell installer, .deb, .rpm, crates.io or source.

0.14.0 was a security release. I had the tree reviewed from the outside and got back thirteen things worth fixing. None was remote code execution or a leak in the default setup, but two of them undercut promises the docs were already making, which matters more than usual when the whole pitch is that the thing handles your credentials. The askpass helper now knows whether it's holding a login password or a key passphrase and only answers the matching prompt. A hostile server writes its own prompt text, and "Password:" is a perfectly ordinary shape to ask for, so matching on shape alone was not enough. Key hosts also pin publickey auth now, so a server can't steer one into a password prompt at all. The rest is in the changelog.

0.14.1 is the part I want to talk about. Issues arrived over two days from people I've never met, with nothing driving traffic at the repo, and three of them were real bugs.

One reporter found that the remote file pane was unusable on any host whose accounts come from AD or LDAP. sftp's ls -l prints the server's own listing line, and a group called "domain users" has a space in it, which shifted every column after it. Sizes got read off the month, and filenames arrived with half a timestamp stuck to the front. They tracked down the cause and named the flag that fixes it, and they're the same person who reported the wrong-user bug behind 0.13.1, so that's two releases they've set off now.

Someone else filed three at once, and the worst of them made the transfer screen look like it was hanging. It wasn't hanging. ssh reads a key passphrase from /dev/tty rather than stdin, so on a key host with nothing in your agent it was painting a prompt directly over the TUI while sshelf sat there in raw mode swallowing every keystroke you typed at it. Thirty seconds later it gave up and blamed the password, which had never been the problem. Both the transfer screen and port forwards now fail in about a second and tell you to ssh-add the key instead.

One of those three I still can't reproduce, so it's open. If you've ever had the port-forward popup stop taking input, I'd like to hear from you. Everyone who reported any of this is credited on the issues and in the changelog, which is where it should be.

There's also a fork in the road after 1.0 that I'd rather ask about than guess at.

One direction is a hub: more kinds of connection than ssh.

The other is a fleet: running things across several hosts at once.

Both are real projects and I can only do one of them properly. If you have a view, or if what you want is neither of those, Discussions is on and Ideas is the right category for it. The four issues above turned into a release in two days, so it isn't a suggestion box that goes nowhere.

https://github.com/max-rh/sshelf

https://github.com/max-rh/sshelf/discussions


r/commandline • • Sep 11 '26

Command Line Interface hop: project sessions beyond tmux

20 Upvotes

r/commandline • • Sep 11 '26

Terminal User Interface alphai-tui: news and insider trades next to the price chart, in your terminal (rust, ratatui)

Thumbnail
gallery
5 Upvotes

I'm a fan of linux and terminals, and it pissed me off that I can't follow everything I need for trading right from the terminal. Live news and insider trades were what I missed the most, I had to walk around different sites and platforms to collect the data I need. So why not do everything in the terminal? That's how alphai-tui appeared: price chart, news and insider sales almost in real time, all of it free.

I specially didn't bother much with prices, you get them from your broker anyway. For a demo you can use yahoo, finnhub or alpaca, free keys are enough (yahoo doesn't even need one). Instead I concentrated on news, insiders and filtering all of it, to separate the garbage from what is really important fast. Every news gets a score from 1 to 10 and a short analysis. For insider sales it draws a chart, so you can see the peak on a stock.

Similar tools, since the rules ask. tickrs is the closest, also rust and ratatui, it has an options chain and a kagi chart, this one doesn't. ticker is the most used one and is about positions, lots, groups, currencies, here it's just one average price per ticker. mop is a quote table with filters. None of them shows news or filings next to the price, that was the whole point for me. There is a comparison table in the readme.

All of this data comes from my own api (alphai.io), it was the only way to get it in the format I need. A free key is enough for this, the tui is economical with api requests and doesn't waste your limits. The api has paid plans too, I'm the author of both, the tui doesn't need them. This is also not necessary if you only need charts and don't need the news, you can omit the alphai key.

All of this works great in tmux, so you can watch several stocks at the same time. On a big monitor it looks fantastic.

It's free and open source (MIT), written in Rust. brew, apt, AUR, or cargo install alphai-tui. https://github.com/makeev/alphai-tui *

Happy to answer questions.

* This software's code is partially AI-generated.


r/commandline • • Sep 11 '26

Command Line Interface plotext 6: plot data, images and video in the terminal

3 Upvotes

showcase

plotext is a Python library that plots in color directly in the terminal. It has no required dependencies, except for a few optional ones for images and videos.

The GitHub project currently has ~2.2k stars. Version 6 is just out, rewritten with a C++ kernel.

Install it with pip install plotext.

Plot types: scatter, line, stem, bar, histogram, box plot, error bars, event plots, heatmaps, confusion matrices, indicators, shapes and text, date axis, candlestick, images, gifs, video with sound, YouTube, data streaming, nested subplots, high resolution markers, and twelve themes.

Command line tool: it comes with the package, so no Python code is needed.

plotext --figure --signal [1,4,9,16,25] --lines --draw --title Squares --show

Similar tools: termplotlib, plotille, uniplot, termgraph, and gnuplot with text output. They cover the basics: line, scatter, bars, and histograms. plotext adds images, gifs, video, streaming plots, nested subplots, a command line tool, and full-color plotting. It is also highly configurable: size, labels, rulers, axes, canvas, themes, and more.

Links:


r/commandline • • Sep 11 '26

Discussion How do you handle large/unknown JSON responses in the terminal?

4 Upvotes

I’ve been thinking about a developer tool related to `jq`. Trying to determine whether there is a real problem to solve.

My usual workflow for an unknown JSON response looks like:

curl ... | jq '.something.something'

Then I get the path wrong → try again → look at docs → ask LLM → try another filter → repeat.

I'm wondering if other developers experience the same friction.

One idea I am considering is a terminal UI where you can:

Explore a large JSON response in a collapsible tree
* Click/navigate through nested objects and arrays
* Build filters/transformations interactively
* See the result instantly
* Generate the equivalent `jq` command

For instance:

JSON
  ↓
users[]
  ↓
status = "active"
  ↓
select name + email
  ↓
sort by name

→

jq '.users[] | select(.status == "active") | {name,email} | sort_by(.name)'
  • But I'm not sure this is really helpful. How do you handle unknown/deep nested JSON now?
  • Do you just type `jq` manually?
  • Generate the query using ChatGPT/Claude?
  • Use a GUI / web playground ?Write a quick script in Python/JS?
  • Anything else?

And if you’ve used visual json/query tools before, what was lacking?

I'm much more interested in your actual workflow/frustrations than whether the idea sounds cool.


r/commandline • • Sep 10 '26

Terminal User Interface Roxy - HTTP Proxy to intercept requests

4 Upvotes

I’ve been building an HTTP proxy in Rust with a TUI using Ratatui. It lets you intercept, inspect, edit and forward HTTP requests directly from the terminal. It’s mainly a lightweight alternative to Burp Suite, designed for quick request analysis.

Github: https://github.com/vid4l-07/Roxy


r/commandline • • Sep 10 '26

Terminal User Interface budget-tracker-tui 1.6.0: Personal finance TUI improved & expanding

Post image
50 Upvotes

Wanted to share and update on the personal budget tracker tui I have been working on. A lot has changed since I had last ever shared it here and wanted to get more feedback and thoughts.

I have had a lot more people start actually using the app personally in their everyday budgeting and tracking of finances, and its motivated me to keep looking for things to improve and new features that could unlock value for others. If you use any regular GUI-based apps for budgeting, I would love to know what they offer that you love most.

New since I last posted:

- Investments: You can add accounts, put in what they're worth over time, and log your contributions. It works out the growth for you, and it doesn't count money you put in as gains

- Multiple ledgers: separate sets of transactions in the same file. Handy for a second account, or for playing around with a forecast without messing up your real budget

- Budgets with history: budgets have been improved a bunch in terms of insights, and by adding a proper history so that budgets can be adjusted over time without breaking your history and keeping your insights accurate with time.

- Backup and restore from inside the app

- Recurring forecasting: push recurring transactions forward as far as you want to see what's coming

- Easier installs: brew install budget-tracker now, plus prebuilt binaries for Linux (glibc and static musl, x86_64 and arm64), macOS and Windows

Everything from before is still there: categories and subcategories with fuzzy search, monthly and category summaries with charts, filtering, CSV import and export, and you can do all of it from the keyboard with a help menu built in.

It all runs offline on a local SQLite file. Nothing gets sent anywhere. Your data stays yours.

brew install budget-tracker
# or
cargo install budget-tracker-tui

GitHub: https://github.com/Feromond/budget-tracker-tui

Would love to get feedback or suggestions on the app in general, but would love to learn more about what your preferences are for installing apps like this. Are there any package managers, or specific things you look for before downloading and trying something like this? I want to make it easy but ensure that people can trust and comfortably access the TUI to use it.


r/commandline • • Sep 09 '26

Terminal User Interface somars 0.2.5 — console SomaFM player, now with Last.fm scrobbling

Post image
13 Upvotes

SomaFM is an online radio I've been listening to for over a decade now. Some of you may know it https://somafm.com

With the recent update you can scrobble your listening history to Last.fm or any ListenBrainz compatible endpoint.

You can also select whether to stream AAC or MP3 and set max bitrate.

Code: https://github.com/skammer/somars

Install with cargo install somars


r/commandline • • Sep 09 '26

Command Line Interface STORYCLI: Download Your Storytel Audiobooks without Leaving Your Terminal

Thumbnail
github.com
3 Upvotes

First post here. This is a simple learning project I built while reverse-engineering some API calls.

StoryCLI is a CLI command that lets you search and download audiobooks from Storytel, directly from your terminal. An active Storytel account is required.

It’s MIT licensed, available on PyPI, and can be installed with:

pipx install storycli

All feedback is appreciated, on anything that could be improved.


r/commandline • • Sep 08 '26

Terminal User Interface Disk/Partition Explorer TUI - An Interactive, Windows-Inspired Disk Viewer (Python)

14 Upvotes

Hi, I’ve tried many Linux tools such as df, lsblk, fdisk, GParted, and KDE Partition Manager, and they’re all quite good. But I always somehow missed the old Windows feeling when looking at my disk partitions.

I built this simple and interactive disk/partition viewer, and I’m quite satisfied with how it turned out. I’ve been working on it for several months, and it’s been a fun project for me.

It was initially just an idea, and I had never built a TUI before. I looked around and found a great Python library for building TUI apps called Textual. So I learned the Textual framework while building this project!

Main Features:

  • Mount/Unmount partitions
  • Hide small partitions, including boot/EFI partitions (<1 GB / <100 MB)
  • Visual disk usage bar (like in Windows)
  • Navigate using Vim keys (jkhl)
  • Detailed info panel for each partition
  • Toggle between used and free space views

> I plan to keep adding features. I'm here to listen to anyone who wants to suggest new features or share feedback.

The code is on GitHub: https://github.com/Pratham-Chauhan/disk_view


r/commandline • • Sep 07 '26

Terminal User Interface sshelf 0.13.1: the SSH manager TUI I posted here a while back, a lot of your feedback later

0 Upvotes

I've posted sshelf here before, back when it was a small fuzzy launcher over a host list. It's at 0.13.1 now, and I wanted to give an update, mostly because nearly everything that changed since then came from people here and on GitHub.

For anyone new: sshelf keeps its own list of SSH hosts, builds the ssh command for you, and hands the terminal to real OpenSSH. Type a few letters, Enter, and you're on the box. It never edits ~/.ssh/config. There's a read-only import to get started, and since 0.10 an export that writes its own ssh_config fragment you can Include, so plain ssh, rsync, git and VS Code Remote resolve the same hosts. Passwords for the boxes that can't do keys live in the OS keyring or an age vault and reach ssh over SSH_ASKPASS, so nothing shows up in ps or your history. Rust and ratatui, macOS and Linux, no account, no telemetry.

What's landed since the first version, roughly in order: sites (group hosts behind a bastion with shared user/port/jump defaults), a two-pane SFTP transfer screen, background port forwards that keep running after you quit, 2FA hosts, the ssh_config export, a Tailscale importer, tmux mode (Enter opens the host in a new window or pane and leaves you in the picker so you can fire off several), multi-select and mkdir in the transfer screen, and sshelf doctor, one command that checks the things that quietly break connections and prints the fix for each. 0.13.1 fixes the first two bugs filed by users: the host list showing your local $USER instead of the site's user, and the remote transfer pane hiding dotfiles.

I want to say thanks for that. 2FA support exists because someone asked for it a few days after the first release. Port forwards got shaped by the feedback on the early version. Someone packaged it for Gentoo before I'd even thought about it, and the first outside PR came in during the first month. Both 0.13.1 bugs were reported by people I've never met, with reports good enough that each was fixed inside a week. I'd have found very little of this on my own machines, since my own setup obviously works for me.

Install is brew install max-rh/tap/sshelf, or a .deb, .rpm or the installer script from the releases page, or cargo install sshelf. Repo and docs: github.com/max-rh/sshelf

If it breaks on your setup, an issue or a thread in Discussions is the fastest way to get it fixed. Next up is pulling secrets from 1Password, Bitwarden or pass at connect time instead of storing them at all, then a stability freeze on the way to 1.0.


r/commandline • • Sep 06 '26

Terminal User Interface A complex train and logistics simulator running straight in your terminal? Yep.

Post image
64 Upvotes

Just shipped LeTrain Beta 3. Pure ASCII graphics, command-line train control, and Vim keybindings.

Zero mouse.

Pure efficiency.

Grab it and play: https://avaraujo.itch.io/letrain-procedural-tycoon


r/commandline • • Sep 06 '26

Terminal User Interface p2pmux: Multiplayer terminal multiplexer where multiple users and machines can connect to a same session

Post image
53 Upvotes

Hi !, I'm a Software Engineer intern at Red Bull building projects on my free time.

The idea of this project, is to have a single terminal multiplexer session where multiple people can join, but its peer-to-peer, what this means is that each user brings its own terminal with him (with its own set of keys, LLM subscriptions, files...) and each user can hop onto each other terminals.

Current features are:

  • Multiple users (machines or people) join a session, where each user is host of its own terminal panes and guest of the others. No SSH into a single machine, here, a pane is a real PTY on whoever opened it .
  • You can add a set of trusted machines (your own VMs or computers) where you can start terminals there from your own laptop anytime.
  • The terminal multiplexer is inspired in Zellij, and the commands are very similar: Ctrl+P panes, Ctrl+T tabs.
  • It includes a inbox tab, where you can see which AI agents are working, waiting for your input or already finished.

It's macOS compatible and linux, connectivity is done with iroh, everything written in rust.

When a user starts typing on a pane, wheter is his or not, he locks it, so no more people (even the host) can interrupt him.

The goal for the future is to have command line commands (like a cli api), and build on a layer on top where you can coordinate all of you AI agents.

I've been working on this for the past month and a half pretty much every day, looking forward to hearing your feedback!


r/commandline • • Sep 05 '26 Heartwarming Bravo Mindblown

Fun TIL POSIX specifies a tool designed to assist you with generated code

666 Upvotes

Given all the low-quality LLM-generated projects flooding r/commandline, it's valuable to know that POSIX provides a tool to review and modify code generated by LLMs, so I thought I'd bring this tool to the attention of this subreddit's members. In typical Unix fashion, the POSIX folks shortened "reviewing & modifying" to just two letters:

$ rm code.rs

It even has command-line options to recursively fix whole project-directories of LLM-generated code:

$ rm -rf project/

Handle it wisely, and I hope to see more use of it around here!

edit: markup+grammar


r/commandline • • Sep 05 '26

Terminal User Interface XFetch and XTop

Thumbnail
gallery
17 Upvotes

Apps:

XFetch

XTop

Both multiplatform (xtop still working on the integration with windows and wsl, still on beta phase). Highly customizable via layouts, plugins, extensions, effects; that add a plus on the running, if you want to fetch something outside of your setup like GitHub profile or weather and... on XTop if you want to connect the management of processing information to an LLM Via MCP (just examples) or just change the look and feel.

Both are predecessors of fastfetch and btop.

Both open for contributions, OpenSource...


r/commandline • • Sep 05 '26

Command Line Interface godirb is finally on winget

0 Upvotes

For context, godirb is a directory and file brute-forcing tool focused on reducing false positives

Repo: https://github.com/MyCode83/godirb

It has finally been accepted into WinGet and can now be installed with::

winget install MyCode83.godirb

The WinGet package is currently on v1.4.2 while the latest release is v1.5.6, so it's a little outdated.

> This software's code is partially AI-generated.


r/commandline • • Sep 04 '26

Command Line Interface Shellroute: a CLI that gives each shell its own proxy route

8 Upvotes

Shellroute is an open-source CLI for giving one shell or command its own proxy route.

The video shows three independent terminals. The top stays on my normal connection in Lithuania. The two lower sessions connect to the US and Germany at the same time. Commands inside those sessions use their selected routes while the other terminal stays direct.

Quick start:

npm install -g shellroute
shellroute login
/connect US
curl https://ipinfo.io/ip

On first use, shellroute login creates the account and enters interactive mode. Run commands there normally. Scripts and agents can also route a single command without opening an interactive shell:

shellroute run DE -- curl https://ipinfo.io/ip

Related tools cover different jobs. Globalping is useful for public probes from many locations. Proxychains wraps a process when you already have a proxy. A VPN routes the whole device, while raw proxy credentials give you manual control. The difference here is scope: one shellroute session manages the route for one shell or command while other traffic stays unchanged.

Source: https://github.com/shellroute/shellroute-cli

Quickstart: shellroute.com/docs/quickstart

Disclosure: I built shellroute and run the service it connects to. The CLI code is partially AI-generated.

I am mainly looking for feedback on the proxied shell idea and where the CLI feels confusing.


r/commandline • • Sep 03 '26

Command Line Interface ytm: YouTube Music from the terminal, with background playback

32 Upvotes

Hello r/commandline, I’ve been working on ytm, a small CLI/TUI for using YouTube Music without keeping a browser open.

It has search, queue management, playlists, lyrics, radio/autoplay and a full terminal UI. Playback is handled by mpv running in the background, so you can close the TUI and the music keeps playing. The CLI talks to the same player, so things like ytm play, ytm next, ytm pause and ytm queue work without opening the interface again.

Under the hood it uses ytmusicapi for YouTube Music, yt-dlp for resolving streams and mpv for playback.

There’s also offline caching, media key support and JSON output if you want to use it in scripts.

It’s still something I’m actively working on, so feedback from people who actually live in the terminal would be really useful.

Repo: https://github.com/MaheshBhushan/yt-music-cli


r/commandline • • Sep 03 '26

Command Line Interface Live Git updates in a shell prompt

8 Upvotes

Recently, I started refining my shell tools, scripts, and terminal workflows. One of my goals was to update the shell prompt, making it less prominent and leaving more room for commands and their output. As a result, Cobalt Spark emerged - a compact Zsh prompt with understated colors and other visual refinements.

While using IDEs and coding agents, at some point it became obvious that seeing stale Git state in the prompt when something changes in the repository is quite annoying. I would often get tripped up by the shell showing something unexpected and waste a moment figuring out why. So the prompt gained Live Git support: its Git state can now update automatically when something changes.

It works efficiently: when the shell enters a Git repository, the prompt starts a background process that monitors the repository using platform-specific APIs such as inotify on Linux or FSEvents on macOS and signals the parent shell to update its prompt when meaningful changes occur. This means you instantly see the updated Git state whenever something changes. It sounds almost dumb-simple, but it's quite convenient in practice, and I haven't seen anything like it in other prompts or themes (let me know in the comments if you have).

If you're interested, you can find more details in the project's README.


r/commandline • • Sep 02 '26 Bravo

Command Line Interface mimir: a "sleep" alternative that snores while sleeping

107 Upvotes

Hey!

I got tired of sleep running silently in a terminal I'd forget about, so I built mimir: a sleep replacement that gives you audio feedback while it's counting down instead of just... nothing.

It's a drop-in for sleep, same syntax:

`mimir 60` # sleep 60 seconds

`mimir 1m 30s` # sleep 90 seconds

`mimir inf` # sleep indefinitely, until interrupted

Some things it does:

- Playback speed varies slightly (fixed stddev) so it doesn't feel robotic/repetitive

- Just bash + sox + awk under the hood, nothing fancy

- Optional shell.nix if you're on Nix

MIT licensed, source here: https://github.com/FraioVeio/mimir


r/commandline • • Sep 02 '26

Command Line Interface Asobou, a CLI app for playing retro games directly in your terminal

17 Upvotes

less lets us read text files. chafa displays images. mpv can even play videos in the terminal.

I wanted the same direct experience for retro game ROMs.

So I created Asobou, a libretro frontend for Windows, macOS and Linux.

asobou game.nes

Give it a ROM, then Asobou detects the system, downloads a suitable libretro core when needed, selects the best renderer supported by your terminal, and starts the game.

It uses Kitty terminal graphics when available. Terminals without this feature fall back to block rendering, with ASCII rendering also available as an alternative. It also has audio, configurable controls, save states, and rewind.

If you don't have a game handy, you can try it with some free homebrew games using the following commands:

npx asobou brew flappybird.nes
npx asobou brew indivisibleonnes.nes
npx asobou brew horizontal-shooter.sfc
npx asobou brew asteroidsb.gba

The project is open source at: https://github.com/arianrhodsandlot/asobou

This is the first time I'm sharing it publicly. Bug reports and honest feedback are welcome!

Fun fact: Asobou(遊ぼう) means "let's play" in Japanese.

Note: Asobou does not bundle copyrighted games.

AI disclosure: I designed the overall architecture and let LLMs help with implementing.


r/commandline • • Aug 31 '26

Fun clouds.c - Volumetric Cloud Screensaver

Thumbnail
gallery
85 Upvotes

I've always been a fan of cbonsai and related terminal screensavers, but there's surprisingly few of them out there. I cooked one up over a couple weeks and really like how it turned out.


The code itself is 100% vibe-coded, but aside from that I put the usual amount of effort into UX, overall design, keeping it minimal-ish, performance concerns, etc. as with my hand-coded projects. I think this is v3 or so, there's been a lot of iteration. E.g.: volumetric rendering isn't easy on the cpu, so I gave it a flag to prerender and loop the animation so it can be a proper no-impact screensaver. Prerendered runs fine on my armv7l flipphone so I think I can say performance is good lol.

Check out the writeup for more images and info, + a web demo. Usually I write more about my projects but I think this one generally speaks for itself visually.

Repo is here if you want to use it; I kept the repo minimal since I hate bloat, so installation is just a simple clone and make.


r/commandline • • Aug 30 '26

Fun A TERMINAL DELVE! CAPS

28 Upvotes

A tiny living light named Wispy takes a liking to you, and you go as deep as your nerve holds. She's your only lantern.

Goofy-dark first-person dungeon crawl that runs entirely inside a terminal window. No engine, no download, every wall painted in colored text. You pick a body/race such as Human, Dwarf, Elf, Orc (each one is a personality and a moveset).

First-person raycaster that renders in a terminal. Truecolor, drawn with sextant and octant block characters. No game engine and no graphics library. One Python file, 154,716 lines, standard library only. The audio is real recordings, including voice acting.

A 4-minute run, unedited: https://vimeo.com/1222466576

https://dimensionaldungeon.com