1. Install the CLI
The recommended path is the install script (Linux and macOS; Bun is not required). Releases are pre-release tags until v0.1.0, so name the tag explicitly:
# Replace V with the latest tag on https://github.com/maruhiapp/maruhi/releases
V=<latest-tag>
curl -fsSL "https://raw.githubusercontent.com/maruhiapp/maruhi/${V}/packaging/install.sh" -o maruhi-install.sh
less maruhi-install.sh # read the script before running it
sh maruhi-install.sh --version "${V}"Other options — prebuilt binaries with checksums, Homebrew (from v0.1.0), and npm on Linux and macOS (bun install -g maruhi@next) — are described in the README, together with the install script’s trust model.
2. Point the CLI at a server
maruhi config set server https://my.maruhi.app # or the URL of your own deployment3. Sign in
maruhi loginmaruhi login opens your browser for a GitHub sign-in and shows a confirmation code in both places — compare them before approving. During the private preview, creating an account requires an invite code; see how to get access on the landing page.
The token is stored in the OS keychain. On a headless Linux box, in WSL, or in a dev container there may be no keychain yet and this command fails — Keychain on Linux and in containers shows the five-line setup, and maruhi agent -- bash for a session that keeps the token and key in memory only.
4. Generate your keys (first time only)
maruhi key generateThis creates two keys: this device’s key, which stays in this machine’s keychain, and a reserve key that lives only in the recovery ledger, sealed with the recovery code the command shows. It runs on a human’s machine. Keep the code somewhere safe: maruhi is zero-knowledge, so nobody can recover your key for you. A second machine does not get a copy: run maruhi device add there and approve it from this one — Devices covers that, and Recover your key covers the reserve key, the code, passkeys, and guardians (teammates who can help when every device is lost).
5. Create a project and push a secret
maruhi project init # prints the new project ID
maruhi config set defaultProject <project-id> # the ID printed above
maruhi env create dev
maruhi config set defaultEnvironment dev
maruhi push DATABASE_URL # reads the value from stdin
maruhi run -- your-command # values arrive as environment variablesThe two maruhi config set lines make that project and environment the defaults, so later commands need no --project or --env. maruhi push encrypts the value it reads from stdin before anything leaves your machine. maruhi run decrypts in memory and passes the values to your-command as environment variables. Nothing is written to disk.
Next steps
Deploying to Cloudflare Workers, Vercel, or Netlify, or keeping a few GitHub Actions secrets in step with maruhi? Deploy targets shows how to copy values there with maruhi sync and the platform’s CLI or API. Running tests or deploys in GitHub Actions? GitHub Actions shows how a job leases values with no secrets stored on GitHub. Working on a server, in WSL, or in a dev container where sign-in fails? Keychain on Linux and in containers has the setup. Ready to share the project? Invite a teammate walks through the invite link, and registering your key on GitHub with maruhi key publish so members can be added without a call.