Skip to content
kalfasyanPublic

About

web-interface and cli to manage python and shell scripts in tmux sessions

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

104 stars

Watchers

1 watching

Forks

Latest commit

 

History

810 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

desto logo

Run your scripts in the background. Watch them from your browser or terminal.

desto is a self-hosted dashboard for launching, monitoring and scheduling bash and Python scripts in tmux.
No more ssh → tmux attach → scrolling back to see whether your job finished.

PyPI version PyPI Downloads Tests Documentation Status OpenSSF Scorecard security: bandit gitleaks Ruff

Try the live demo, no install needed

desto demo: launching scripts, watching one fail, reading a live log and switching to dark mode

Quick start · Highlights · All features · Terminal UI & CLI · Security · Docs


⚡ Quick start

curl -LsSf https://raw.githubusercontent.com/kalfasyan/desto/main/install.sh | sh   # Linux & macOS
desto        # web dashboard at http://localhost:8809
desto-tui    # or the same thing in your terminal

The installer sets up everything desto needs (tmux, at, Redis, uv) and then desto itself (read it first if you like). Drop your .sh and .py files into desto_scripts/ and they show up in the dashboard.

🐳 Docker Compose

Everything runs in containers, Redis included. You only need Docker.

git clone https://github.com/kalfasyan/desto.git && cd desto
docker compose up -d                              # dashboard at http://localhost:8809
docker compose exec dashboard uv run desto-tui    # terminal UI inside the container

Other handy commands: docker compose logs -f, docker compose up -d --build (after pulling changes), docker compose down. Uninstall, from inside the desto folder (copy out any scripts you want to keep first): docker compose down -v --rmi all && cd .. && sudo rm -rf desto

🐍 uv or pip

First install Python 3.11+, tmux, at and Redis, and make sure Redis is running (on Debian/Ubuntu: sudo apt install tmux at redis-server). Then:

uv tool install desto      # or: pip install desto

Uninstall with uv tool uninstall desto (or pip uninstall desto).

🔄 Start on boot with systemd
desto-cli service install            # as a user service (recommended)
sudo desto-cli service install --system

Docker Compose doesn't need this: the containers' restart policy already starts desto on boot.

Source installs, other distros and what each uninstall leaves behind are in the installation guide.

🌟 Highlights

You have a box somewhere (a home server, a VPS, a lab workstation, your laptop) and scripts that take a while: a training run, a nightly backup, a scraper, a data pipeline. desto turns that box into one page you can check from anywhere.

🚀 Launch in two clicks

Pick a script, name the session, hit Launch. It keeps running in tmux after you close the tab, and you can re-run, kill or attach to it later.

📜 Live logs

Follow any session's output as it happens, or read it long after it finished. Logs stay on disk and can be downloaded.

📈 Per-session CPU & memory

See CPU, memory, threads and disk IO for every session's processes, and click to chart them over the whole run. Finished sessions keep their peak memory and CPU time.

⏰ Chain & schedule

Queue scripts to run one after another, or start them at a set time, once or on repeat. Get a phone push when they finish.

⌨️ Terminal UI over ssh

desto-tui is the whole dashboard as a keyboard-driven terminal app, working on the same sessions as the browser. Plus a scriptable desto-cli.

🔒 Safe by default

Listens on localhost only, with an optional password login and a warning if it's ever reachable without one. Checked by OpenSSF Scorecard, bandit and gitleaks.

✨ All features

🚀 Run Launch bash (.sh) and Python (.py) scripts as tmux sessions, with arguments. Re-run finished jobs or kill running ones.
✍️ Write Create and edit scripts in a built-in editor with syntax highlighting and bash/Python templates. Or paste what your favorite LLM wrote. 😉
👀 Monitor Live sessions table with status, exit code and durations, plus host CPU, memory and disk.
📈 Usage CPU, memory, threads, CPU time and disk IO per session, sampled every 5 seconds, with history charts that cover long runs. Also tracks tmux sessions desto didn't start.
📜 Logs Live-updating log viewer with download, kept after the session ends.
🔗 Chain Run several scripts one after another in a single session.
⏰ Schedule Run a script or chain at a set date and time, once or every N minutes, hours, days or weeks. Learn more →
⭐ Favorites Save, search and re-run frequent commands, with usage counts. Learn more →
🔔 Notify Optional Pushbullet push when a job finishes, with its exit code.
🗄️ History Session tracking in Redis, plus optional SQLite that keeps history forever. Learn more →
🌙 Dark mode One click, top right.
📸 Screenshots
desto dashboard
Dashboard
Dark mode
Dark mode
Launch a script
Launch a script
Write a new script
Write a new script
View logs
Live logs
Settings
Settings
Favorite commands
Favorite commands

⌨️ Terminal UI and CLI

Not in the mood for a browser? desto-tui gives you the dashboard in your terminal: launch, chain and schedule scripts, follow logs, attach to a session's tmux, and manage favorites. Press 1 2 3 to switch between Sessions, Scripts and Favorites, and ? for every key.

desto terminal UI

For scripts and cron jobs, desto-cli covers the same ground:

desto-cli doctor                                         # check tmux, Python and Redis
desto-cli sessions start "my-task" "python my_script.py" # start a command in a new session
desto-cli sessions logs "my-task"                        # view its logs
desto-cli sessions usage                                 # CPU, memory and IO per session
desto-cli scripts run "my_script"                        # run a saved script in tmux
desto-cli monitor                                        # record usage when no dashboard or TUI runs

📖 Terminal UI guide · Full CLI documentation

🔒 Security

desto can run any command on its machine, so treat the dashboard like a shell.

  • Localhost by default. It listens on 127.0.0.1. Set DESTO_HOST=0.0.0.0 to accept other machines. (Earlier versions listened on all interfaces, so set this to keep that behavior after upgrading.)
  • Password login. Set DESTO_PASSWORD to require a password for every page.
  • Use TLS on the internet. The dashboard serves plain HTTP, so put a TLS-terminating reverse proxy in front before exposing it.

Docker Compose publishes port 8809 (and Redis on 6380) on 127.0.0.1 only. To open it up, change the mapping to "8809:8809" and uncomment DESTO_PASSWORD in docker-compose.yml.

⚙️ Configuration

All settings are environment variables. The most common ones:

Variable Default Description
DESTO_HOST 127.0.0.1 Interface to listen on. Use 0.0.0.0 for all interfaces.
DESTO_PORT 8809 Port to listen on.
DESTO_PASSWORD (unset) Turns on the login page when set.
DESTO_STORAGE_SECRET (random per start) Signs the session cookie. Set a fixed value to stay logged in across restarts.
DESTO_SCRIPTS_DIR ./desto_scripts Where your scripts live.
DESTO_LOGS_DIR ./desto_logs Where session logs are written.
REDIS_HOST / REDIS_PORT localhost / 6379 Redis server to connect to.
SQLITE_ENABLED false Keep session history in SQLite as well, so it outlives Redis's 7-day expiry.
DESTO_PUSHBULLET_API_KEY (unset) Pushbullet key for finish/fail notifications (also settable in Settings).
DESTO_METRICS_ENABLED true Record CPU, memory and IO of each session.
DESTO_METRICS_INTERVAL 5 Seconds between usage samples.

See the configuration reference for the full list.

🤝 Contributing

Ideas, bug reports and pull requests are welcome. Next on the roadmap: pausing and resuming processes inside a session. See CONTRIBUTING.md to get started, and report security issues as described in SECURITY.md.

If desto saves you some terminal gymnastics, a ⭐ on GitHub or a coffee is much appreciated.

📄 License

CC BY 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

About

web-interface and cli to manage python and shell scripts in tmux sessions

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

104 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages