zert-cli

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Zert

Zert-cli is the client for the zert sandbox service. Boot a vm hosted in Norway, copy your repo, work inside an airgapped development enviroment, with access to Norwigian hosted AI. Debug, build or test knowing your data is safe.

  • One static Go binary.
  • Your SSH key authenticates you to your VMs; the session token never appears in argv or URLs.
  • VMs are killed automatically when you leave the shell (unless --keep).

Install

brew tap Torgersrud/zert
brew install zert

or the Go toolchain:

go install github.com/Torgersrud/zert-cli@latest

Prebuilt binaries for every platform are on the releases page (tagging vX.Y.Z builds and publishes them automatically).

Quickstart

zert login                      
zert vm                         # creates a VM, and instantly ssh into it 
zert ./myproject                # run a zert vm with your repo
zert extract ~/report.pdf       # copy a file/dir out of your live vm
zert ls                         # list your VMs
zert kill <id>                  # terminate a VM
zert kill all                   # terminate all your VMs
zert --version

zert ./myproject starts a VM if none is live and drops you into an ssh session afterwards (killing that VM on exit unless --keep); if one is already live it just copies into it.

zert extract <vm-path> [dir] is the way back out: it copies a file or directory from your live VM into [dir] (default: the current directory). VM paths resolve against the VM's home directory, just like after a fresh ssh login. The entry is streamed back as one compressed tar, and extraction refuses to write anything outside the chosen destination. It never creates or kills a VM — start one with zert vm or zert <path> first.

To add args for the zert ssh session, pass them after the command (e.g. zert vm -L 8080:localhost:8080 or zert ./myproject -L 8080:localhost:8080). With zert <path>, extra ssh args (or --keep) also make you enter an already-running VM after the copy; the entered VM is only killed on exit if that same command created it.

Configuration

  • Credentials live in ~/.config/zert/credentials
  • Server host resolution: --host flag > $ZERT_HOST > stored credentials.
  • $ZERT_TUNNEL_TOKEN is an internal handoff used by the hidden zert tunnel ProxyCommand child — you never set it yourself.

Security

Short version: HTTPS is enforced (plain http:// only for loopback or an explicit --insecure flag), tokens never touch argv or URL query strings, and server text is sanitized against terminal-escape injection. Full notes in SECURITY.md; known limitations and planned hardening (host-key pinning, token revocation, idempotent create) are tracked in docs/FOLLOWUPS.md. Report vulnerabilities privately — see SECURITY.md.

Development

go build ./... && go test ./...    # tests use httptest stubs, no VMs needed
./build.sh                         # static cross-compile → dist/ + SHA256SUMS

License

MIT — see LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL