Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Vault Screen Lock

Zhiyuan JuZhiyuan Ju35 downloads

Lock the vault workspace with a password when the app loses focus.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Lock an Obsidian vault's workspace with a local password. Reopening the vault or returning to a locked workspace requires the password.

Vault Screen Lock requires Obsidian 1.15.0 or later.

Install and use

  1. Create a vault-screen-lock folder under the vault configuration folder's plugins directory. The default location is .obsidian/plugins/vault-screen-lock/.
  2. Download main.js, manifest.json, and styles.css from the same GitHub release and place them directly in that folder.
  3. Restart Obsidian and enable Vault Screen Lock under Settings → Community plugins.
  4. Return to the workspace, then enter and confirm a password on the setup screen. Run Vault Screen Lock: Lock now from the command palette to test the lock.

Automatic locking

  • Desktop — When Obsidian receives a system screen lock signal, the plugin locks the main window and any pop-outs. Switching apps or minimizing Obsidian keeps the vault unlocked. If Obsidian shows a notice that detection is inactive, run Vault Screen Lock: Enable system screen lock detection from the command palette. Availability depends on the OS and Obsidian's runtime. Some desktop environments also report an active screen saver as a screen lock. Use Lock now whenever detection is unavailable.
  • Mobile — Set Background grace period in the plugin settings. The default is 15 seconds. Returning before the grace period ends keeps the vault unlocked if the same app session is still running. Set it to 0 to lock as soon as Obsidian goes into the background. Force quitting or relaunching after the system closes Obsidian always requires the password.

Switching apps and minimizing have been tested on Linux with X11, along with a screen lock signal from an isolated D-Bus session. Mobile background handling has been tested in Obsidian's mobile layout with simulated app lifecycle conditions. Locking on desktop devices and lifecycle behavior on iOS and Android still need device verification.

Privacy and limits

The plugin runs offline. It stores a salted password verifier in Obsidian's vault-specific device storage. Set a password on each device. Obsidian stores the mobile grace period with the plugin data in the vault's configuration folder. Sync can carry the grace period across devices if it includes plugin settings.

This is a privacy screen for casual access. Notes and attachments remain readable on disk. Anyone who can open Obsidian's Settings can disable the plugin, including from a separate Settings window that was left open. Close Settings before stepping away. Restricted Mode also lets you open the vault with community plugins disabled. On mobile the plugin covers the workspace during the grace period when the web view delivers its background event. The operating system controls when it captures app previews.

Recover a password

If you forget the password or the lock screen says the saved settings could not be read, reset the verifier for that vault on this device.

  1. Disable Vault Screen Lock in Settings → Community plugins, or open the vault in Restricted Mode. If you cannot reach either option, quit Obsidian and temporarily move the plugins/vault-screen-lock folder out of the vault's configuration folder. Reopen the same vault.

  2. In the vault workspace, open View → Toggle Developer Tools and select Console. On mobile, use the Obsidian guide to inspecting the web view on the device where you set the password. Run this command to clear just the plugin's password verifier for the open vault.

    app.saveLocalStorage("vault-screen-lock:verifier", null)
    
  3. If you moved the plugin folder, quit Obsidian, restore the folder, and reopen the vault. Enable Vault Screen Lock if needed, then return to the workspace and set a new password.

Build

Build with Node.js 24 or later and npm.

npm ci --ignore-scripts
npm run lint
npm run build

Attach main.js, manifest.json, and styles.css individually to a GitHub Release whose tag equals the manifest version.

The build pins the public obsidian type package independently of the minimum app version, which reflects the runtime used to verify the plugin.

License

MIT

HealthExcellent
ReviewSatisfactory
About
Lock your vault workspace with a local password whenever Obsidian loses focus, covering the main window and pop-out windows. Store a device-specific salted password verifier locally and run offline as a casual privacy screen while notes remain readable on disk.
WorkspacesInterface
Details
Current version
0.1.3
Last updated
4 days ago
Created
4 days ago
Updates
4 releases
Downloads
35
Compatible with
Obsidian 1.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Zhiyuan JuZhiyuan Jujuzhiyuan
GitHubjuzhiyuan
  1. Community
  2. Plugins
  3. Workspaces
  4. Vault Screen Lock

Related plugins

Hearth

A beautiful, heavily customizable home screen — dashboard, launchpad, mission control, homescreen, search - all in one. As simple or complex as you need.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Note Toolbar

Add customizable toolbars to your notes.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Force note view mode

Force the view mode for a note by using frontmatter: YAML block with 'obsidian_ui_mode' as key.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.

Open Tab Settings

Adds options to customize how tabs are opened, including open in new tab by default, preventing duplicate tabs, and more.