Skip to content
lpm-devPublic

About

Native macOS app for project environment variables and secrets, with Keychain storage, encrypted sync, and LPM CLI integration.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

LPM Vault logo

LPM Vault

Project environment variables and secrets for your Mac.

Download for Mac · Documentation · Releases · Security

LPM Vault is a native macOS app for the environment variables and secrets of your projects. An env project holds the environments of one project, such as development and production, and the variables of each environment. LPM Vault stores the values in the macOS Keychain and shares them with the signed LPM CLI. Encrypted sync through LPM.dev is optional. It connects personal and organization env projects.

LPM Vault compares dummy variables across three environments

The screenshot uses dummy project data. It contains no real credentials.

Install

LPM Vault runs on macOS 14 or later, on Apple silicon and Intel Macs. You unlock it with Touch ID or with your Mac login password.

  1. Download the installer.
  2. Open the DMG.
  3. Drag LPM Vault into Applications.
  4. Open LPM Vault.

Official releases have a Developer ID signature and Apple notarization. If LPM Vault cannot read its protected data, the locked screen gives the recovery step. If a project does not load, LPM Vault shows Retry and a support link. Data that LPM Vault cannot read stays protected.

Updates

LPM Vault looks for updates in the background. To look for a new version now, choose Check for Updates… in the LPM Vault menu.

Settings → Updates shows the installed version and the update channel. Check automatically turns the background checks on or off. Download and install in the background installs updates without a prompt. It is off by default. The Stable channel offers stable releases. The Nightly channel offers development releases and newer stable releases. Development releases can contain bugs. A stable install starts on Stable. A nightly that you install from its DMG starts on Nightly. LPM Vault keeps your channel choice across app updates and account changes. Both channels use signed, notarized installers and signed update feeds.

A change of channel does not install an update, and it does not change your stored secrets. If an update is downloaded or ready to install, install it or skip it before you change the channel. To open that update again, choose Check for Updates…. If you change from Nightly to Stable, LPM Vault keeps the installed nightly until a newer stable release is available. LPM Vault never installs an older version by itself. Settings shows when this is the case.

The release workflow runs every night at 03:37 UTC. It publishes a nightly only when main has commits that the last nightly does not have. Release maintainers can also start the workflow from main by hand. Release channels gives the publishing and recovery procedures.

What you can do

With LPM Vault, you can:

  • Keep the variables of a project in many environments.
  • Compare values across environments, and find missing keys, in All Keys.
  • Edit an environment as .env text in Raw Text.
  • See each change to the values of a project on the History page. Undo a change, or roll back to an earlier point.
  • Import variables from an .env file or from pasted text.
  • Export an environment to an .env file.
  • See and edit the rules that lpm.json declares for each key, on the Schema page.
  • Publish an environment to Vercel, Netlify, Coolify, GitHub Actions, or Cloudflare Workers.
  • Back up every env project to one file that a passphrase protects, and restore it.
  • Find where a value is stored, and find values that you store more than once.
  • Use the values with lpm env, lpm dev, and lpm run.
  • Sync encrypted data to personal or organization env projects.
  • Choose when LPM Vault locks, and when it asks again for Touch ID, in Settings → Security.
  • Choose a System, Light, or Dark appearance.

You do not need an LPM.dev account to keep env projects on this Mac. Cloud sync needs an account and permission for the project. To connect your account, choose Sign In… in the account menu at the bottom of the sidebar. Then choose Sign In with Browser. After the browser step, the browser opens a page that LPM Vault serves on your Mac. If the sign-in fails, this page tells you how to try again. It loads no external resources. Go back to LPM Vault to see the connection status.

Start with a project

  1. Unlock LPM Vault.
  2. Create an env project with New Project. The sheet also sets its icon, its folder (optional), CLI approval and Local history.
  3. Add environments to the project.
  4. Add variables to each environment, or import them.
  5. To compare the environments, select the project in the sidebar. All Keys opens.
  6. To connect the LPM CLI, select Connect CLI.

Click a key cell to open the inspector. The inspector shows the values, the rules, and the description of the key. To change the width of a column, drag its boundary in the table header. LPM Vault keeps the column widths of each project, and the widths of the sidebar and the inspector. They stay after a lock, and after you quit and open LPM Vault again.

The status bar of a project page counts three kinds of keys. It counts keys that differ between environments, keys that an environment does not have, and keys that fail their rules. Click a count to see only those keys in All Keys.

Edit, import, and export

Raw Text shows an environment as .env text. You can select and copy single lines, or edit the text. LPM Vault marks each line that it cannot save, and gives the reason. Before the save, a review lists each new, changed, and removed key. After the save, you can undo it.

To import variables, drop an .env file on the window, choose a file, or paste text. The review sorts the keys into new, changed, and unchanged keys, and hides their values. You can keep an existing value or replace it, and you can leave new keys out. For 30 seconds after an import, you can undo it.

Export makes git ignore the file before it writes the file, as lpm env export does. Export does not write to a file that git tracks.

History

LPM Vault and the LPM CLI keep a local history of the changes to the values of each project. It records changes from LPM Vault, the LPM CLI, an import, a restore, and a pull from LPM.dev. To see it, select History under a project. Or Control-click an environment in the sidebar, and choose Show History. You can show only the changes to one environment or one key, or the changes from one source.

Select a change to see it in the inspector. Its values stay masked until you reveal them. Undo This Change… reverses only that change, and keeps the changes after it. Roll Back to This Point… restores the values as they were just after that change. A review comes before each undo or rollback. For 30 seconds after a rollback, you can undo it. Remove from History… removes a value from the history.

The history stays on this Mac. It does not sync, and backups do not include it. To turn off history for a project, use Local history in Project Settings. This deletes the history of that project. Keep local history for new projects in Settings → General applies to new and imported projects. The Local history switch in the New Project sheet starts from this setting.

LPM CLI 0.85.0 and later record their changes in the history. The lpm env history and lpm env rollback commands use the same history. An older LPM CLI can still read and write values, but it does not record its changes. The History page shows such changes as changes outside local history.

Rules for keys

The lpm.json file of a project can declare rules for each key. Examples are required keys, formats, defaults, and keys for the browser. The LPM CLI enforces these rules. Select Schema under a project to see and edit them. A rule from an imported schema file or a preset shows where it comes from. Rules from an imported schema are read-only. Override rules edits a copy in lpm.json, and Reset to original removes the copy.

Select a key or a group to edit it in the side panel. Your edits stay in a draft until you save them. ⌘Z undoes an edit, and ⇧⌘Z does it again. Review & Save (⌘S) shows each change as lines of lpm.json, and what the change does to the values of each environment. The review names problems, never values. LPM Vault writes nothing until you choose Save to lpm.json. A new name for a declared key is different. After you save or discard your draft, LPM Vault writes the new name to lpm.json and to the stored values at once. If lpm.json changes on disk, LPM Vault applies your draft again on top of the change. If the change conflicts with your draft, you choose which one to keep.

LPM Vault tests each stored value against the rules, with the same engine as the LPM CLI. A value that fails a rule gets a red marker, and its tooltip gives the reason. When you add a value, LPM Vault tests it while you type. You can still add a value that fails a rule with Add anyway, as lpm env set does. The test covers stored values only. When the LPM CLI runs a command, it can also read the .env files of the project and shell variables.

A key that the rules make public shows a globe, and its value is not masked. Frameworks give such keys to the browser. All other values stay masked until you reveal them.

Hidden characters

Some characters are hard to see. Examples are a zero-width space, a no-break space, and a newline at the end of a value. LPM Vault warns about them with the same engine that lpm env set, lpm env import, and lpm env check use. A warning gives the name and the position of each character, never the value. Remove hidden characters and Trim the ends change a value only when you choose them. A warning never stops a save or an import.

Find values

Find Value… (⇧⌘F) lists each project, environment, and key that stores a value that you paste. Find Reused Values… lists credentials that more than one key, environment, or project stores. You can search the selected account, or every account on this Mac. The results name places, never values. LPM Vault searches only while it is unlocked, and keeps no history or index of a search.

Publish to platforms

You can publish an environment to these destinations:

  • A Vercel project.
  • A Netlify site.
  • A Coolify application or service, over an https:// address.
  • GitHub Actions secrets and variables.
  • Cloudflare Worker secrets.
  1. Select Platforms at the bottom of the sidebar.
  2. Connect your account for the platform.
  3. Select an environment.
  4. Choose Publish… in the title bar.
  5. Read the review. It shows what will change before LPM Vault sends anything.

LPM Vault saves each destination for the next publish.

A Coolify connection that uses HTTP shows Needs HTTPS and can't publish. Connect the instance's HTTPS address with Connect HTTPS, use Change Destination to select and review the new connection for each saved destination, then disconnect the old connection.

Back up and restore

Settings → Backup & Restore exports every env project to one backup file. A passphrase that you choose protects the file. To restore a backup, open the same section and choose the file. A review comes before the restore. Your logins to lpm.dev and to the platforms are not in the backup. On a new Mac, you sign in again. The local history of your projects is not in the backup.

LPM Vault reminds you to make a backup every month. Later moves the reminder one week forward. To stop the reminders, turn off Remind me to back up every month.

Connect the LPM CLI

Connect CLI links a project folder through lpm.json, and links the folder to the project for the LPM CLI on this Mac. Linking a folder does not install the LPM CLI. Install the official LPM CLI for shared Keychain access. Then run a project script:

lpm run dev

Connect CLI shows commands for the selected environment, with an explicit --env flag. Run these commands from the linked project folder. The flag overrides the environment that the script settings select. Aliases in lpm.json still apply. If an alias selects another environment, the sheet tells you what to change in the configuration before it shows commands. If an environment is empty, a script uses the default vault values.

The app guide and the env guide tell how the LPM CLI selects an environment.

LPM CLI 0.87.0 and later use a project's values only in folders linked to it on this Mac. Write File in Connect CLI, and a folder chosen in New Project, link the folder before they write lpm.json. If Connect CLI shows Not linked on this Mac yet, choose Link Folder, or run lpm env link in the folder. With Manual Setup, the LPM CLI asks to link the folder the first time it runs there. Deleting a project removes its links.

A project has one folder. Project Settings, the project's icon, backups and Export use it. To change it, choose Change Folder… in Project Settings. LPM Vault refuses a folder that another project on this Mac uses. A folder whose lpm.json links another project becomes this project's only after Replace Vault ID in Connect CLI.

CLI approval

CLI approval controls whether the LPM CLI must ask you before it reads the values of a project. To change it, open Project Settings (⌘I) for a project, then use CLI approval. Ask before the CLI reads a new project in Settings → CLI applies to new and imported projects, and is on by default. The CLI approval switch in the New Project sheet starts from this setting. A project the LPM CLI creates, as lpm env set does in a project without one, starts with CLI approval off. When CLI approval is off, lpm run gets the values without a prompt. When CLI approval is on, macOS asks for Touch ID or your Mac login password before the Keychain releases the values. If the authentication fails or you cancel it, the LPM CLI stops before it runs lifecycle hooks or the main script.

In the sidebar, a lock marks a project that requires CLI approval. You can change the setting while LPM Vault is unlocked, with no other authentication prompt. The setting applies to every environment of the project on this Mac.

The Lock button hides secrets and clears the authentication of LPM Vault. It does not change CLI approval. CLI approval protects secret reads and the temporary records that updates use. It does not take back values that a process already received.

Changes from the CLI

LPM Vault and the LPM CLI share the LPM home. The LPM home is the folder for your login and env projects, ~/.lpm by default. If your shell sets LPM_HOME, choose the same folder for LPM home in Settings → CLI. LPM Vault then restarts with that folder. If that folder has no login and no env projects, LPM Vault offers to move them there from the current home first.

When you go back to LPM Vault while it is unlocked, it refreshes the changes that the LPM CLI made. To refresh while LPM Vault stays active, use Refresh. A refresh reads the project metadata, CLI approval, and secrets of the selected project. It does not contact the cloud.

Unsaved values stay in the editor. If the LPM CLI changed or deleted a secret, LPM Vault shows a conflict and blocks Save. Copy and export wait for a refresh in progress, so they use the new values. If a refresh fails, copy, reveal, and export stop until Retry succeeds. An automatic refresh does not reset the idle lock timer. While LPM Vault is locked, it does not read secret values.

Security and privacy

LPM Vault keeps local secrets in the Data Protection Keychain on this Mac. They do not sync through iCloud Keychain. Cloud sync encrypts values on your Mac before the upload. It keeps named empty environments, and projects with no keys. Exported .env files and copied values are outside this protection. You must protect them yourself.

Settings → Security chooses when LPM Vault locks, and when it asks again for Touch ID before it shows or copies a value. It also chooses when shown values hide again, and when copied values clear. LPM Vault always locks when your Mac sleeps, when its screen locks, and when you close the window. Values hide while another app is in front. Copied values stay on this Mac. Universal Clipboard and clipboard history apps skip them. Publishing and backups ask for Touch ID or your password every time. LPM Vault hides its window from screenshots and screen sharing. To take a screenshot, turn off Hide from screenshots and screen sharing.

The Mac app sends no analytics. The website uses limited analytics and has an opt-out control. PRIVACY.md describes the network activity of LPM Vault and the privacy of the website.

The security model gives the details of storage and sync. To report a suspected vulnerability privately, follow SECURITY.md.

Support and contributions

SUPPORT.md tells you how to troubleshoot and how to report an issue. CONTRIBUTING.md gives the development setup and the CI checks. RELEASING.md gives signed builds and the release procedure.

A build from source needs its own signing identity and storage contract for Keychain access. For production secrets and the LPM CLI, use the official installer.

LPM Vault is part of LPM CLI, LPM.dev Registry, and LPM Firewall.

License

LPM Vault is dual-licensed under MIT OR Apache-2.0, at your option. See LICENSE-MIT and LICENSE-APACHE. Third-party components keep their own licenses.

About

Native macOS app for project environment variables and secrets, with Keychain storage, encrypted sync, and LPM CLI integration.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages