Documentation Index
Fetch the complete documentation index at: https://docs.getbindu.com/llms.txt
Use this file to discover all available pages before exploring further.
Mess might happen when
Some agents can’t rely on a plainpip install at deploy time:
- Native deps that require a Rust toolchain or system libraries.
- CI/CD pipelines that already produce container images.
- Teams that need pinned, auditable, reproducible deploys.
What to do then?
Get bindu to boot your agent from a Docker image you built and pushed, instead of packaging your source folder and runningpip install inside
the VM.
How to do it
1. Write a Dockerfile
Your image must start an agent that listens on0.0.0.0:3773 —
that’s the port bindu’s boxd proxy forwards public HTTPS traffic to
(see BINDU_DEFAULT_PORT).
You can either run the script directly or use the bindu serve --script
shim (both end up calling bindufy() inside your file):
2. Build and push to a registry
Push to any public registry, or a private one with credentials configured on your boxd account (e.g.ghcr.io, Docker Hub, ECR).
3. Deploy with --image
--image is set, bindu changes its behaviour (deploy() source):
- No source upload — your folder stays on your machine.
- No
pip installstep — deps are already baked into the image. - Image
CMDis the entrypoint — whatever you put inCMDstarts the agent. Bindu does not exec into the container after creation; it only waits forGET /healthon port 3773. --envis not injected. A2 source mode merges--envflags into the agent process at start time, but the A1 branch skips_start_agententirely — env values currently never reach your container. Bake required env into the image, or read them from a secret store inside the agent. Tracked as a known gap; once fixed this section will move to “everything else is identical.”
/tmp/bindu-agent.log, on-exit lifecycle — works as in A2, provided
your image writes its stdout/stderr to /tmp/bindu-agent.log if you
want bindu logs <agent> to work. (The default A2 mode does this for
you via shell redirection; A1 images have to opt in.)
You see that
Your agent boots from a pinned, reproducible image with full control over every system dependency. Here’s how that compares to the default A2 mode:| A2 (source mount) | A1 (custom image) | |
|---|---|---|
| Setup | None - just run | Build + push image |
| Iteration speed | Fast (1–3s warm) | Slow (build + push + redeploy) |
| Reproducibility | Depends on pip install resolving the same deps | Pinned by image hash |
| Native deps | Limited to what pip install can build in the VM | Anything that builds at image time |
| Image registry needed | No | Yes |