hun.sh

brew tap hundotsh/tap

brew install hun

a command-line tool for seamless project context switching. manages your dev services, ports, and logs. switches your entire environment in one command.

hun
multi

services

next-dev

12:04:01compiled in 240ms
12:04:02GET /api/templates 200 12ms
12:04:03GET /dashboard 200 8ms
12:04:05compiled in 180ms
12:04:06GET /api/resumes 200 14ms
12:04:08GET /editor/abc123 200 22ms
↑↓ selecttab switch project/ searchr restart

say you're working on two projects. letraz, an ai resume builder, runs a next.js frontend on 3000, a thumbnail service on 4000, a backend on 8000, and postgres on 5432. novara, a remote healthcare platform, needs a frontend on 3000, backend on 8000, a node worker, and docker compose running a database, redis, and rabbitmq. now picture yourself ctrl+c-ing through six terminal tabs, killing orphan processes on :3000, restarting docker, and doing this every single time you switch. you lose context, hun preserves it.

$ hun switch letraz
stopping novara...
stopping frontend, backend, worker, compose
starting next-dev on :3000
starting thumbnail on :4000
starting backend on :8000
starting postgres on :5432
all services healthy
✓ letraz ready — 4 services

run hun init in each project and it detects your services automatically. then hun switch to swap between them, or hun run to run them side by side with automatic port offsets.

a daemon runs in the background. manages process groups, captures all output, detects ports. close your laptop, come back, everything's still there.

nodegopythondocker composemonoreposhybrid stacks

not a tmux replacement. tmux does session persistence and terminal multiplexing. hun thinks in projects — which services to start, which ports to free, which logs to capture. use both.

docs · github · built by sourabh rathour