Open source · AGPL-3.0 · Self-hosted

Your passwords, SSH keys and secrets. On your server.

Hisar is an end-to-end encrypted password, SSH key and secrets manager for developers. Run the server yourself, connect the Mac app, the CLI, the iPhone app and the browser extension, and read every line of code that touches your keys.

$ git clone https://github.com/tosunlab/hisar
Your server holds ciphertextKeys come from your master password and a Secret Key that never leave your devices.
Every key use asks, by nameTouch ID on your Mac, or a signed approval from your iPhone.
Nothing to take on trustClients, server and the crypto design are all in one public repository.
What it does

Built for the terminal, not just the browser.

SSH agent and git signing

Your SSH keys live in Hisar. Every use asks first.

Point SSH_AUTH_SOCK at Hisar and keep using ssh, git and your editor. The dialog names the app, the processes behind it, who signed it, and the host or commit. Unsigned programs are flagged.

export SSH_AUTH_SOCK=~/.hisar/agent.sock
hisar run

Commit the .env. It holds no secrets.

Write hisar:// references instead of values. hisar run resolves them in one request, you approve once, and the command gets real values. Nothing is written to disk, and printed values come out concealed.

$ hisar run --env-file .env -- npm test
password <concealed by hisar>
hisar mcp

Coding agents use your secrets. They never see them.

Mark the vaults an agent may use. It runs tests, migrations and deploys with secrets in the environment; you approve each command, and output is masked. Masking is a safety net, not a sandbox.

$ claude mcp add hisar -- hisar mcp
Self-host

One server, three steps.

The server only syncs encrypted data between your devices, so it needs little: a small Linux machine with Docker, where it runs next to Postgres. Everyone who uses it creates an account on your instance with an invite from you.

  1. 01 Start the server
    $ git clone https://github.com/tosunlab/hisar
    $ cd hisar/deploy
    $ docker compose up -d
    Set your domain and a database password first; deploy/README.md walks through it.
  2. 02 Put it behind HTTPS
    # Caddyfile
    hisar.example.com {
      reverse_proxy localhost:8080
    }
    Any reverse proxy with a valid certificate works: Caddy, nginx, Traefik.
  3. 03 Point the apps at it
    Sign in → Use a different server…
    https://hisar.example.com
    The Mac app, iPhone app and CLI all take your server's address at sign-in.
Back it upBackups only hold ciphertext, but they're still the only copy of your server's state.
Keep it updatedWatch the repository's releases and update the server before the apps.
No recovery, by designNeither you nor your server can reset a lost master password. Print the Emergency Kit.
Configuration reference on GitHub
Security model

Running the server doesn't let you read the vaults.

Keys are made on each device. Even the person who runs the server, you included, only sees what's on the left.

What the server sees

  • Account emails, and who can open which vault
  • Item counts, sizes and when they change
  • Devices, IP addresses and app versions

What it never sees

  • Passwords, notes, one-time code seeds, SSH private keys
  • Item titles, URLs and vault names
  • Master passwords, Secret Keys, and the key in a share link

Cryptography

Sign-in
OPAQUE (RFC 9807)
Stretching
Argon2id + Secret Key
Items
XChaCha20-Poly1305
Vault keys
HPKE, ML-KEM-768 + X25519
Signatures
Ed25519
Full security model Found a vulnerability? Email support@tryhisar.com rather than opening a public issue.
Contribute

Built in the open.

Bug reports, fixes, translations and reviews of the crypto are all welcome. Start with the design document, or pick an issue labelled “good first issue”.

hisar/
core/
Shared vault and crypto code
server/
Sync server, in Go
desktop/
Mac app and SSH agent
cli/
The hisar command
mobile/
iPhone app
extension/
Browser extension
deploy/
Docker Compose setup for the server
docs/
Design document and copy guide