CLImate
Run containerized CLI tools nativelyhttps://github.com/gblach/climateCLImate lets you run containerized command-line tools as if they were installed natively. Think of it as Flatpak, but for the terminal - a seamless way to use tools without polluting your host system.
Each app is described by a small TOML file that says how to fetch its image and how to run it. When an app shares a directory from your computer (your working directory or your home), CLImate runs the tool as you, at the same path, so the files it reads and writes stay yours.
CLImate is a self-contained container engine: it pulls an app’s image, mounts the layers, and runs the container in-process. There is no Docker, Podman, crun, or skopeo to install - just a single binary.
Features
- Single binary - no dependency on heavy container runtimes or daemons.
- Rootless and locked down - read-only image, no capabilities, and a seccomp filter by default.
- Per-app networking - no network, full access, the host’s loopback only, or the loopback plus local networks.
- Resource limits - memory, CPU, and process limits enforced by the kernel through cgroup v2.
- Symlink shortcuts - call tools directly by name from your
PATH. - Ready-made app definitions - simple TOML files, synced from a shared repository.
- Automatic updates - an optional systemd timer keeps your images up to date.
Getting started
CLImate needs fuse-overlayfs to mount image layers:
sudo dnf install fuse-overlayfs # Fedora
sudo apt install fuse-overlayfs # Debian, Ubuntu
sudo pacman -S fuse-overlayfs # Arch Linux
Install the binary:
# From source
cargo install climate
# Prebuilt binary
cargo binstall climate
# From a clone of this repository
cargo install --path .
Then download the app definitions:
climate sync # download the app definitions
climate list # show available apps
Running apps
Arguments after the app name are forwarded to the tool. A missing image is downloaded on first run:
climate run ffmpeg -i clip.mov clip.mp4
climate run nmap -sn 192.168.1.0/24
climate run nmap --help # shows nmap's own help
Symlink shortcuts
When climate is invoked under any other name, that name is used as the app. climate link
creates such symlinks next to the binary, so the tools feel installed:
climate link ffmpeg nmap # link specific apps
climate link --all # link every available app
ffmpeg -i clip.mov clip.mp4 # same as: climate run ffmpeg -i clip.mov clip.mp4
Customizing apps
To change only a few keys of an app, write them to an override file. It applies on top of the
synced definition, so climate sync keeps updating the rest:
# ~/.config/climate/overrides/f/ffmpeg.toml
[run]
network = "full"
[limits]
memory = "2G"
climate show ffmpeg prints the definition that is actually in effect, with every default filled
in. Redirect it to a file to start your own copy of an app.
Tools that have no image of their own can be built from a base image with an install script:
[image]
reference = "docker.io/library/node:lts"
install = """
npm install -g @google/gemini-cli
npm cache clean --force
"""
Networking
Each app picks one of four network modes:
| Mode | What the app can reach |
|---|---|
none |
nothing; the default |
full |
the host’s own network, so the internet as well |
localhost |
services on the host’s loopback, nothing else |
localnet |
the host’s loopback and local networks, no more |
In localhost mode the container still has a private network of its own, but its loopback is
bridged to the host’s in both directions. A port the host listens on is reachable at the same
127.0.0.1:<port> inside the container, and the other way round.
Resource limits
An app can cap how much of the machine it takes:
[limits]
memory = "2G" # memory ceiling
swap = "0" # swap on top of it; "0" makes the ceiling hard
cpu = 1.5 # CPU cores' worth of time per second
pids = 512 # processes and threads at once
The limits are applied to the container’s systemd scope in your user session, which is what makes them work without root.
Security
Containers run rootless, as your own user and with no extra privileges:
- The image filesystem is read-only. Writable space is provided only at
/tmp,/run, and/var/tmp, plus any host directory the app mounts. - Containers hold no capabilities, not even the three an OCI runtime grants by default. An app that needs one asks for it by name.
- A seccomp filter allows only the system calls an ordinary tool makes, and refuses the ones that would create a new user namespace and hand the capabilities back.
Automatic updates
A systemd user timer can refresh your images daily:
cp systemd/climate-update.{service,timer} ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now climate-update.timer