Install genie CLI

Cross-machine context, OAuth-secured. v0.1.0.

curl -fsSL https://pr253.preview.genie.tech/install.sh | bash

One line. Picks up node ≥ 20, verifies this server is reachable, installs to ~/.genie/bin/, and writes a config file pointing at https://pr253.preview.genie.tech. Safe to re-run.

Then sign in

genie auth login --device

Prints a short code. Visit https://pr253.preview.genie.tech/oauth/device on any browser where you’re signed in, paste the code, click Allow.

Use genie auth login (no flag) if your terminal can open a local browser; the device flow above works everywhere — SSH boxes, headless servers, second laptops.

Then save + retrieve a context

genie context save "hello from $(hostname)" genie context ls

Save on machine A, list on machine B (after running this same installer on B). Your contexts roam with your account, not the machine.

Manual install (no curl)

If you don’t want to pipe to bash
  1. Read the script first: https://pr253.preview.genie.tech/install.sh
  2. Or download the tarball: https://pr253.preview.genie.tech/install/cli.tar.gz tar -xzf genie-cli.tar.gz -C ~/.genie/bin/
  3. Symlink: ln -sf ~/.genie/bin/genie ~/.local/bin/genie
  4. Set api_base manually: echo '{"api_base":"https://pr253.preview.genie.tech"}' > ~/.genie/config.json