stakpak pipelines a script into your shell and then starts an agent that never stops
Ship your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
At a glance
- What is it?
- Stakpak is a Rust agent that runs on your own machines and keeps infrastructure code, Kubernetes debugging and deployment work inside a policy envelope, with secrets substituted rather than read. The quick path to that is three commands, the second of which installs from a piped script and the third of which leaves an autonomous process running unattended.
- Who is it for?
- Worth a look if the alternative is giving a hosted model production credentials, since the secret substitution and the network guardrails are the actual point of the project. Before you run it, read which profile an inbound chat message gets versus a cron schedule, because that is the boundary that decides how much a stranger in a Slack channel can do.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 140 days ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- stakpak/agent1,886 ★ · +105
| Repository | 2026-09-11 | 2026-11-22 |
|---|---|---|
| stakpak/agent | 1.8k | 1.9k |
105 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The three command demo installs from a pipe and never stops
The whole pitch is three lines long:
curl -sSL https://stakpak.dev/install.sh | sh # install Stakpak
stakpak init # understand your apps and tech stack
stakpak up # start the autonomous agent, running 24/7 in the backgroundTwo things happen there that are worth separating. The first line is the usual convenience pattern, with the same trade every such pattern carries: whatever that URL serves is executed by your shell, unpinned and unverified, at the moment you run it. The third line is different in kind. The first two commands are things you run and finish. The third leaves a process running on your machine indefinitely, holding credentials, with permission to act on your infrastructure.
Those are also two different risk decisions, and the demo presents them as one. If you want to read the script before running it, nothing in the documentation stops you, but the page does not suggest it, and it does suggest the alternative Homebrew route in a section further down.
There is a second install path through a tap, and the section describing it is cut off mid-sentence in the visible text, so the details of the third option have to come from the hosted documentation.
Twenty four hours a day needs user services that survive logout
The prerequisites list for running autopilot on a remote machine is the most useful paragraph in the documentation, because it names everything that quietly stops the agent.
Docker must be installed and accessible to the user running it, not just present. Two gigabytes of RAM is recommended for the agent plus its sandbox runs. Swap is described as strongly recommended on small Linux hosts. And Linux user services may require linger to survive logout.
That last one is the one people hit. The agent runs as a user service, and a user service is normally killed when you log out of SSH. The fix is enabling lingering for your user so the service manager keeps running it, and nothing about that is obvious from the phrase runs 24/7 in the background.
The rest of the operational story is the same shape. There is a status command, a logs command and a down command, plus a doctor command described as a deployment readiness check. Note the slight redundancy: the shorter up command is documented as running preflight checks before startup anyway, and the docs still show running doctor first and then up, as two separate steps.
A cron job and an inbound chat message get different tool profiles
Configuration is split by purpose. Behaviour lives in the profile, in the file under the user's home directory, and covers the model, the allowed tools, whether approval is automatic, the system prompt, the maximum turn count and provider credentials. Runtime wiring lives in a second file, covering schedules, channels, notification routes and service settings.
The profiles are then attached at two different entry points, and this is the part that matters. A schedule carries its own profile, so a health check running on a cron expression can be given a monitoring profile. A channel carries a different one, and the example wires an ops profile to the Slack channel. Any session started from an inbound message on that channel runs with the ops profile.
So the same agent, the same machine and the same credentials run with different tool permissions depending on whether a person or a timer started the work. That is a deliberate design, and it is the kind of boundary worth reading twice: whatever tool set the ops profile carries is reachable by anyone who can post into that channel, while the monitoring profile on its cron is not.
Notification routing is kept strictly out of it. Routes decide where messages go, never which model or tools are used.
Two words for delivery, one file for behaviour
Notification configuration uses exactly two terms everywhere, which is worth more than it sounds. The channel is the transport, one of Slack, Telegram or Discord. The target is the destination inside that transport, a channel name like a hash-prefixed ops room or an identifier like C1234567890.
A channel is added with a default route, and schedules inherit that default unless they override either the target or the channel. The example wires a health check every five minutes and a deploy watcher every fifteen, both with the monitoring profile, where the first inherits the default Slack route and the second overrides only the target.
The same setup is then shown a second time as configuration file content, with a notifications table holding the channel and target and two schedule tables carrying the cron expression, the prompt text, the profile and, for the second one, the override key. Reading the two side by side is the clearest statement of the design, because the override key is named differently from the flag and the inheritance rule has to be inferred once.
One caveat is stated for the transport: public channel names are accepted where Slack supports them, but identifiers are more reliable for private channels, direct messages and scripts.
The image carries no DevOps tools and downloads them on first use
The container is built in two stages. The builder is a Rust slim image that installs a compiler and the OpenSSL development headers, copies the tree, builds in release mode and strips the binary. The runtime stage is not a Rust image at all, it is a Python slim image.
What fills the runtime layer is a tool loader. The image header explains that a set of command line tools is lazy-loaded rather than installed, which is what takes the image from roughly two gigabytes down to about six hundred megabytes. The tools are fetched the first time something needs them, and a named volume at a path under the agent user's local share directory keeps them between container runs.
The pre-warm line in the header names exactly which tools that means:
docker run --rm --entrypoint sh -v stakpak-cache:/home/agent/.local/share/aquaproj-aqua ghcr.io/stakpak/agent:v0.3.88 \
sh -c "kubectl version --client && terraform version && helm version && \
aws --version && doctl version && gcloud --version && az --version"Kubernetes, Terraform, Helm, the AWS, Google, Azure and DigitalOcean clients, plus a config file at the repository root that pins them. So the agent image starts with none of the tools a DevOps agent exists to run, and acquires them on demand from a network fetch. That is a good trade for image size and a real one for reproducibility, because the tool versions your agent debugs Kubernetes with are whatever that root config file says.
A Rust binary shipped on a Python base image
The runtime stage of that image installs curl, unzip, git, transport packages for apt over https, certificate authorities, GnuPG, netcat, wget, DNS utilities, sudo and gosu, and then installs the Docker command line client from a keyring.
gosu is the entry that explains the rest. The comment on that install line says it is there for entrypoint privilege dropping, which means the container starts as root and then hands off to the agent user. The volume path in the caching example confirms the target account, since the tool cache lives under a home directory for a user named agent.
The Python base is the part that needs an explanation nobody gives. A compiled Rust binary with its libraries linked in does not need a Python runtime. The plausible reason is the lazy tool loader, since some of the command line tools on that list are Python distributions. If that is the reason it is sound. If the base image was simply never changed from an earlier arrangement, it is a few hundred megabytes of interpreter shipped in every image.
The build also strips the release binary before copying it out, which is a small sign that image size is an active concern for whoever maintains this file.
cargo build at the root builds one crate out of thirteen
The workspace has thirteen members, and the list is the clearest map of what the project is. There is the command line crate, the terminal interface crate, and then a set of libraries: shared code, an API client, the AI layer, the agent core, a server, a gateway, an architecture kit, and four crates for the Model Context Protocol, split into client, config, server and proxy.
Two things stand out. The MCP surface is four crates rather than one, including a proxy, which means the project is not just an MCP client but something in the middle of MCP traffic. And there is a separate crate for shell tool approvals, which is the approval machinery promoted out of the agent core into its own package with its own version.
The catch is one line in the manifest:
default-members = ["cli"]So a plain cargo build at the root compiles the command line crate and nothing else. The terminal interface and all twelve libraries are skipped, silently, and a contributor who follows the obvious command and sees a clean result has built perhaps a fifth of the project. The Docker build avoids this by naming the binary explicitly in the path it copies out.
All thirteen members carry the same version string as the workspace, and the same version is stamped on every internal path dependency, so the version is duplicated fourteen times in one file.
Two tags thirty two minutes apart, and none since June
The three most recent tags are v0.3.86 in early June 2026, then v0.3.87 and v0.3.88 on the same morning, the second and third separated by about half an hour. The manifest version matches v0.3.88, so at least the version number and the latest tag agree.
Nothing has been tagged since, and the last commit is from early July 2026. So the sequence at the top of a 0.3.x line is two patch releases half an hour apart followed by roughly four months of commits with no tag. Whether that is deliberate batching or a release that did not happen is not stated anywhere.
Two smaller inconsistencies sit in the same material. The manifest records the project homepage as one apex domain, while the install script, the badge links and the demo commands all use a different one, and the documentation lives on a third host entirely. And the badge block at the top of the front page is present but inert: the section is wrapped in markup comments and only the documentation and community links have anything behind them, so the license, release, build status and download badges that the source anticipates are not rendering.
The supporting tooling is more complete than that. There is a shell release script, a changelog generator config, a clippy configuration, a pinned toolchain file, a platform testing directory, a third party notices file and a separate getting started document beside the main readme.
Editorial conclusion
Worth a look if the alternative is giving a hosted model production credentials, since the secret substitution and the network guardrails are the actual point of the project. Before you run it, read which profile an inbound chat message gets versus a cron schedule, because that is the boundary that decides how much a stranger in a Slack channel can do. Then check that your host has user services surviving logout, and pin the CLI tool versions yourself rather than letting them arrive on first use.
Frequently asked questions
What does Stakpak autopilot need before it will run?
Docker installed and accessible to the current user, at least 2GB of RAM, and swap is strongly recommended on small Linux hosts. Because it runs as a user service, Linux user services may also require linger to survive logout, and the up command runs preflight checks while a separate doctor command serves as a deployment readiness check.
How does Stakpak keep credentials away from the model?
Through dynamic secret substitution, where the agent can read, write and compare secrets without ever seeing the actual values. That sits alongside Warden guardrails described as network level policies that block destructive operations before they run, and mutual TLS for the Model Context Protocol connection.
Where does Stakpak keep its configuration?
In two files. The config file under the stakpak home directory holds profile behaviour, covering model, allowed tools, auto approval, system prompt, maximum turns and provider credentials. The autopilot file holds runtime wiring, covering schedules, channels, notification routes and service or server settings.
How do I install Stakpak on Linux or macOS?
The quick path pipes the install script into a shell, then stakpak init, then stakpak up. A Homebrew route is also published, using brew tap stakpak/stakpak followed by brew install stakpak, and the hosted documentation covers Windows and the remaining options.
Official sources
Was this useful?