Hermes Warden
Bitwarden, built into Hermes.
No terminal, no setup guide: a tab with a button for each step.Then ask for a password from any chat, Telegram included.
The agent works with your vault and never reads a secret from it.
English · Português
Features · Installation · Usage · Privacy · How it works · Architecture · Changelog
If Hermes Warden is useful to you, a star on this repository helps other people find it.

What Hermes Warden does
The agent sees names, usernames and URLs, not the secrets in the vault.

About
| Hermes Warden does | Hermes Warden does not |
|---|---|
| Install, sign in and unlock from a tab, one button per step | Ask you to type commands in a terminal |
| Work wherever Hermes does: Desktop, Webapp, any chat | Run on Windows or cover Secrets Manager (bws) |
Give the agent all 29 bw commands through 9 tools | Show the agent passwords, TOTP codes or your master password |
| Take secrets only in masked dialogs, copy with auto-clear | Accept a secret typed in the chat, or keep the session on disk |
[!WARNING]
Hermes Warden protects you from an agent that is tricked into misusing its tools (prompt injection in a page, an e-mail, an item name). It cannot protect you from code already running as your own user account. The limits
[!NOTE]
Tested on macOS with Hermes Desktop, the Webapp and Telegram, and in Linux containers (arm64 and x86_64) without a screen. Not yet run on a Linux desktop. What ran
Features
Every feature
- A lock tab (sidebar Warden, or the lock chip in the status bar): is
bwinstalled, which server, logged in, locked or unlocked, with a button for every step and links to bitwarden.com and the CLI docs. - Install the Bitwarden CLI from the tab: Homebrew, npm (pinned to bw 2026.10.1) or, when neither is there, the official Bitwarden build (the same bw 2026.10.1, from Bitwarden's GitHub releases, refused unless its SHA-256 matches).
- Log in with the master password or an API key, including two-step and new-device codes; unlock, lock, sync, log out.
- Vault browser: search, copy username, password, TOTP code, card number or note in one click, or reveal it in a masked dialog.
- Generator: passwords and passphrases, masked until you choose to show them.
- Settings: auto-lock (5 to 60 min), clipboard clearing (15 s to off), where dialogs appear,
bw serve(the local REST API, started only by you). - 9 agent tools covering all 29
bwcommands: items, folders, collections, organizations, attachments, Sends, import and export, and/warden(status, unlock, lock, sync, login) in any chat. warden_run: run a command with vault secrets as environment variables; the output comes back with each value replaced by<warden:VAR>.- The agent can create a login with a generated password, or with one you type in a dialog, without ever seeing it.
- The tab follows the Hermes display language: English, Chinese (Simplified and Traditional), Japanese, Arabic, Russian, French, German and Spanish.
- A terminal guard: the agent cannot run
bw unlock,bw get passwordand friends in a terminal.
What has been run end to end
- On macOS, Hermes Desktop on a second Mac talking to Hermes on the first: install check, login, unlock, the vault list, copy with the clipboard clearing, reveal, the generator, approve and cancel dialogs, the command palette and switching the display language.
- On macOS, the Webapp in a browser: the tab and the masked unlock dialog.
- From Telegram: an unlock request from the agent reached the masked dialog in Hermes; nothing was asked in the chat.
- In Linux containers (Debian, arm64 and x86_64), without a screen: the full test suite, the official installer with its checksum, the broker, and a cron job failing at once with
unattendedinstead of waiting for a dialog. - Not yet run: a Linux desktop with Hermes Desktop, organizations shared with other people, and self-hosted servers.
- The translations of the tab were made with AI and have not been reviewed by native speakers. Corrections are welcome.
Installation
| You need | Notes |
|---|---|
| Hermes Agent 0.22.6 or newer | with Hermes Desktop or the Webapp |
| A Bitwarden account | bitwarden.com, bitwarden.eu or self-hosted |
| macOS or Linux | Windows is not supported |
| The Bitwarden CLI | optional: the tab installs it for you |
-
Install the plugin.
hermes plugins install pedroberaldo87/Hermes-Warden --enableHermes warns that this is a "custom (unreviewed) source": expected for a plugin installed from a repository.
-
Open Warden in the Hermes Desktop sidebar (or in the Webapp).
-
Follow the steps in the tab: install the CLI if it is missing, choose the server, log in, unlock.
- If Hermes Desktop runs on another computer than Hermes, install the plugin there as well, or install it from Desktop's own plugin installer, which sets up both halves.
- To remove the plugin:
hermes plugins remove hermes-warden.
If something does not show up
- Without
--enable, answer yes to "Enable now?", or switch the plugin on in Hermes Desktop under Capabilities → Plugins. - If Warden does not show up in the Desktop sidebar, open Capabilities → Plugins and turn on the Desktop switch of the Hermes Warden row.
- If the tools or
/wardendo not show up, restart the gateway:hermes gateway restart. - After an update (
hermes plugins update hermes-warden), restart the gateway the same way so it loads the new code. The vault locks once: unlock it again. If a tool answersrestarted, ask again and a new dialog opens. - Since 0.1.2 every Hermes profile has its own Warden. If you used the Warden from a named profile before, that profile asks you to log in to Bitwarden once and starts from the default settings. The default profile keeps its login and settings.
- If a
warden_runcommand cannot find a variable it used to see, add it toenvfrom a vault item: the command no longer inherits Hermes' environment. - If the agent answers
no_surface, no window can show a dialog: open Hermes Desktop or the Webapp (on macOS, a logged-in session on the Hermes host also works).
Where it runs
| macOS | Supported. Dialogs in Hermes Desktop, or the macOS dialog on the Hermes host when no window is open. |
| Linux | Supported. Dialogs in Hermes Desktop or the Webapp (Linux has no host dialog). |
| Windows | Not supported (the broker needs Unix sockets); the plugin does not load there. |
| Telegram and other chats | The agent works as usual; dialogs open in Hermes Desktop or the Webapp (or on the macOS host). |
| Cron jobs and background tasks | No dialogs: they fail at once with unattended. Unlock beforehand from an interactive session; the vault stays open until auto-lock. |
The Bitwarden CLI
- Tested with Bitwarden CLI 2026.10.1.
- Errors are recognized by the messages
bwprints, so a much older or newer CLI may report some failures as a generic error.
Configuration
- Settings live in the tab, in the Settings card, and apply right away.
- The agent can change them too (
warden_session action=settings); loosening auto-lock or clipboard clearing asks you first.
| Setting | Default | What it does |
|---|---|---|
| Auto-lock | 15 min | locks the vault after this much idle time (5, 15, 30 or 60 min) |
| Clear clipboard | 30 s | clears a copied secret after this long (15 s, 30 s, 90 s or off) |
| Dialogs | Auto | where dialogs appear: Auto, This app, or the host dialog (macOS) |
| Local REST API | off | bw serve on 127.0.0.1; only you start it, and it stops when the vault locks |
- The settings hold no secrets; they are kept in
<Hermes home>/plugin-data/hermes-warden/. - The plugin needs no API key and no environment variable.
Usage
| Where | Try this |
|---|---|
| Hermes Desktop / Webapp | Open Warden in the sidebar, unlock, and copy a password |
| Chat | "Copy my GitHub password" · "Create a login for example.com with a strong password" |
| Chat | "Which passwords are weak or reused?" · "Export the vault encrypted" |
| Any chat | /warden · /warden unlock · /warden lock · /warden sync |
The agent tools
| Tool | Does |
|---|---|
warden_status | Install, login and lock state, with the next step |
warden_session | install, set_server, login, login_apikey, unlock, lock, logout, sync, settings |
warden_find | Search items as metadata |
warden_bw | Any bw command, results sanitized; placeholders for generated or typed secrets |
warden_edit | Merge a partial change into an item, folder, collection or Send |
warden_secret | deliver (clipboard or reveal), generate, ask (masked dialog to a 10-minute slot) |
warden_run | Run a command with vault secrets as environment variables, output redacted |
warden_transfer | export, import, receive a Send |
warden_serve | Status or stop of the local REST API (only you start it, from the tab) |
When the vault closes itself
- The agent's tools take
keep_open(defaulttrue): each call that touches the vault leaves it open for the next call in the same flow, on a 90-second lease. The response carries_warden_sessionwith the seconds left and the reminder to finish withwarden_session action=lock; the janitor closes the vault on its own if the flow is abandoned. Passkeep_open: falseto lock right after the call; a generated or typed secret (a slot) keeps the window because the next call consumes it. - In the tab, copying a secret (password, username, URL, card, note field) locks the vault immediately after the copy, and the clipboard clears on its own timer. No extra window while you are away from the keyboard.
- The inactivity auto-lock (15 minutes by default) still applies to whatever is left open by a login you started from the tab, and the janitor never locks in the middle of a running call.
What asks you first
- Every delivery of a secret to your clipboard or screen. Plain usernames and URLs of logins unchanged for a week go without one; otherwise the dialog shows the value.
- Saving an attachment, deleting, moving to an organization, creating in an organization, editing a Send, overwriting an item, any edit beyond name, favorite and folder, and copying a secret from one item to another.
- Uploading a file, exporting, importing, opening a Send, logging out, changing the server, loosening auto-lock or clipboard clearing, and installing the CLI.
warden_run: the dialog lists which item feeds each variable, then the full command.- A login password the agent writes itself (instead of a generated or typed one) and a Have I Been Pwned check.
- Dialogs name the item and its short id, and the action runs on exactly that item.
- Buttons you press in the tab are your own click and skip the dialog.
What the agent sees
- Names, usernames, folders and the domain of each URL, plus word-like path parts.
- Credentials, query values, fragments and token-like parts of URLs are hidden, and so are custom field values (their names stay).
- Searches by the agent match item names, usernames and URLs, and Send names; never notes, Send text or secrets.
Privacy and disclosure
| What | In short |
|---|---|
| Your secrets | Stay between you, Bitwarden and the commands you approve |
| The unlocked session | In the memory of a local broker, never on disk; auto-locks |
| Network | Only your Bitwarden server, and what you approve |
| The agent | Sees metadata only: names, usernames, domains |
| Telemetry | None: no analytics, no server of ours |
What it does on your machine
- Network:
bwtalks to your Bitwarden server (bitwarden.com, bitwarden.eu or self-hosted).- A password check asks Have I Been Pwned for the first 5 characters of the password's SHA-1 hash, only when you approve it.
- The installer downloads from Homebrew, npm or Bitwarden's GitHub releases, only when you press Install.
- Nothing else; no telemetry.
- Commands:
bw;brewornpmwhen installing;osascripton macOS for host dialogs and the host clipboard. - Background processes: the broker (exits once the vault is locked and idle) and
bw servewhile you keep it running from the tab. - Files: settings (no secrets) and the downloaded
bw, if any, under<Hermes home>/plugin-data/hermes-warden/; exports and attachments only where you approve. - Hermes profiles: each profile has its own Warden: its own settings, broker and unlocked session, under that profile's home. Unlocking the vault in one profile unlocks nothing in another. A named profile also keeps its own Bitwarden login (in
bw-data/under its folder), so you log in once per profile; the default profile uses the loginbwalready has on this computer. - Approved commands (
warden_run): run on the Hermes host with a minimal environment (PATH,HOME, user, locale, terminal, temp folder, shell, proxy and certificate settings) plus the secrets you approved. Hermes' own variables, such as provider and gateway keys, are not passed. - Terminal guard (
pre_tool_callhook): blocks the agent's terminal from runningbwor reaching the broker, and from reading the clipboard during the 15 minutes after a secret was copied for you (in every profile, since the clipboard is shared). Nothing else is affected.
Limits
- What it protects against: an agent that is tricked (prompt injection in a web page, an e-mail, an item name) into misusing its tools.
- What it cannot protect against: code running as your own user account. Such code could also read the Desktop app's session, so no local tool can stop it; that is the job of Hermes's terminal approvals. As a backstop, the Warden blocks terminal and code-runner calls that invoke
bwor touch its socket. - The output redaction of
warden_runis best effort (it catches the value and its base64, hex, URL and reversed forms). Your approval of the command is the real control. - A random URL token made only of lowercase letters can look like a word and stay visible to the agent.
bw export --passwordonly accepts the file password on the command line, so for that one call the password is visible to other processes of the same user for the duration of the export.- Dialogs need Hermes Desktop or the Webapp open, or a logged-in macOS session on the Hermes host. With none of them, the tool returns
no_surfaceinstead of asking in chat. - Host dialogs (macOS) are in English.
- Bitwarden Secrets Manager (
bws) is not covered.
How it works
| You | ⇄ Masked dialog | ⇄ Warden broker | ⇄ Bitwarden CLI | ⇄ Your Bitwarden server |
|---|---|---|---|---|
| in Desktop, Webapp or on the host | the only way a secret comes in | holds the session in memory | bw, on the Hermes host | bitwarden.com, .eu or your own |
- The agent talks to the broker through 9 tools and gets metadata back, never secrets.
- Secrets go out to your clipboard (cleared), a masked reveal, or a command's environment.
- Stores: settings only; the session key never touches the disk.
Broker (hermes_warden/broker.py)
- A small process that holds the unlocked session key in memory, the way
ssh-agentdoes. - It listens on a private Unix socket (owner only), never writes the key to disk, locks the vault after the idle time you choose, and exits once locked and idle.
- Every
bwcall gets passwords through a randomly named environment variable, never through the command line. - It asks you before anything risky, so no tool can skip the dialog.
Agent tools and command (hermes_warden/tools.py, __init__.py)
- Commands from the agent are parsed and checked against an allowlist; options like
--rawor--sessioncannot be used to sneak around it. - Secret placeholders (
$generate,$slot,$item) only work inside secret fields, and every resolved value is scrubbed from the answer.
Desktop tab (desktop/plugin.js, dashboard/plugin_api.py)
- Plain JavaScript on the Hermes Desktop plugin SDK, with REST routes in the Hermes dashboard.
- The same tab runs in Hermes Desktop and in the Webapp.
Skill (skills/bitwarden/SKILL.md)
- Tells the agent how to use the tools, and what to do on
no_surface,unattendedand a locked vault.
Development
python -m pytest tests -q # runs against a fake bw, no account needed
hermes plugins validate .
Security
- Please report vulnerabilities privately, through Report a vulnerability in this repository's Security tab.
Contributing
- Issues and pull requests are welcome, especially from Linux desktop users and people who read one of the tab's languages.
License
MIT, see LICENSE. Copyright (c) 2026 Pedro Beraldo.
Author. Pedro Beraldo: GitHub · X
Independent project: not affiliated with or endorsed by Bitwarden or Nous Research.
How it was built
- Hermes Warden was built with Hermes Agent itself.
- Pedro Beraldo defined the product, the security rules and what ships; an AI agent using a Claude model wrote the code and the tests, and ran the reviews and the end-to-end tests.
What belongs to Hermes
- Hermes Agent and Hermes Desktop are made by Nous Research (MIT).
- Hermes Warden is built on their plugin interfaces.
Third-party code
- The plugin bundles no third-party library: the Python code uses the standard library and what Hermes provides, and the Desktop code imports only what Hermes Desktop provides at runtime.
Bitwarden
- Bitwarden is a trademark of Bitwarden, Inc.
- Hermes Warden is not affiliated with or endorsed by Bitwarden. It drives the official Bitwarden CLI, which you install from Bitwarden.
README from the reviewed commit a0ecbfa; it updates when the author re-pins.
pedroberaldo87