open-sesame
<p align="center">
<img src="docs/banner.jpg" alt="Open Sesame: Claude asks, you approve, the door opens." width="100%">
</p>
<p align="center">
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-17130e?style=flat-square" alt="MIT license"></a>
<img src="https://img.shields.io/badge/price-free-1f7a4d?style=flat-square" alt="Free">
<img src="https://img.shields.io/badge/runs-100%25%20on%20your%20computer-17130e?style=flat-square" alt="Runs on your computer">
<img src="https://img.shields.io/badge/Windows%20%C2%B7%20macOS%20%C2%B7%20Linux-d8412a?style=flat-square" alt="Windows, macOS, Linux">
<img src="https://img.shields.io/badge/MCP-server-17130e?style=flat-square" alt="MCP server">
</p>
# Open Sesame
**Claude Code stops at every login page. Open Sesame gets it through, and Claude never sees your password.**
You hand Claude a browser task and walk away. Twenty minutes later you check
your phone: it has been sitting at a sign-in page the whole time, waiting for a
password, a 2FA code or an "Accept" button.
Open Sesame is a Chrome extension plus a small local MCP server that fixes
that. Claude asks. You approve, from your desk or from your phone. The extension
types the saved password, enters the code, clicks the button or pastes the API
key in your real, signed-in Chrome. The password stays inside the extension and
is never sent to Claude, to us or to anyone else.
- **Free and open source.** MIT. No account, no subscription, no cloud.
- **Nothing leaves your computer.** The server listens on `127.0.0.1` only.
- **You approve what is really on the page**, not what Claude says is there.
- **Works when you are away.** Approve from the Claude app (Remote Control) or
with Approve / Deny buttons in Telegram.
- **Four kinds of wall, one tool:** passwords, one-time codes, consent buttons
and API keys.
- **Bring your logins with you.** Import an export file from Bitwarden,
1Password, Chrome, Edge or LastPass. It is read in your browser and never
uploaded.
<p align="center">
<img src="docs/flow.png" alt="Claude reaches a sign-in page, you approve on your phone, the extension signs in." width="100%">
</p>
## Quick start
Needs Node 20+, Chrome 116+ and Claude Code. About three minutes.
**1. Get the code**
```
git clone https://github.com/100401074/open-sesame.git
cd open-sesame
npm install
```
**2. Load the extension**
Chrome → `chrome://extensions` → turn on **Developer mode** → **Load unpacked**
→ choose the `extension/` folder. Click the Open Sesame icon in the toolbar to
open its settings page.
**3. Pair the extension with this computer**
```
node server/bin/cli.js pair
```
It prints a port and a pairing token. Paste both into section 01 of the
settings page.
**4. Connect it to Claude**
The same `pair` command prints this line with your real folder filled in. Run
it once:
```
claude mcp add --scope user open-sesame -- node "/path/to/open-sesame/server/src/index.js"
```
Copy the line from your terminal, not the example above. `--scope user` makes
it available in every project. If it answers `already exists`, it is already
registered. Check with `claude mcp list`.
**5. Start a new Claude Code session**
The stamp on the settings page turns to **Connected** within about 30 seconds,
and the `!` on the toolbar icon disappears. In the session, `/mcp` lists
`open-sesame` with its eight tools. This works the same when you steer the
session from your phone with Remote Control: the server runs on your computer,
next to Chrome.
**6. Save a login** (section 03 of the settings page), or import your logins
from a password manager there, then ask Claude to sign in somewhere.

## How it works
```
Claude Code ──MCP (stdio)──▶ local server ──WebSocket on 127.0.0.1──▶ extension ──▶ the page
```
Every action has three parts:
1. **Describe.** The extension looks at the page and reports the site, the page
and what it would touch (the saved username, or the real text of the button).
2. **Approve.** You are shown those facts, not what Claude asked for.
3. **Perform.** The extension acts only if the tab still shows the same site and
page and the element is unchanged. Otherwise it stops with `ORIGIN_CHANGED`.
| Tool | What it does |
|---|---|
| `login` | Fills the login you saved for the site in the tab and submits. Call again on two-step sign-ins. |
| `enter_code` | Types a one-time code you gave Claude. |
| `click` | Presses one button, link or checkbox. Exactly one element must match. |
| `save_secret` | Saves an API key shown on a page into the extension, under a name. Returns only a hint. |
| `type_secret` | Types a saved key into one field. Does not submit. |
| `list_secrets` | Lists the names of saved keys. No values. |
| `confirm` | Carries out an action the tools above prepared (default approval mode). |
| `status` | Says whether the extension is connected. |
## How it compares
Checked in December 2026 against each project's own documentation. Corrections
are welcome; open an issue.
| | Open Sesame | 1Password for Claude | Typing it yourself |
|---|---|---|---|
| Price | Free, MIT | Needs a 1Password subscription | Free |
| Platforms | Windows, macOS, Linux | macOS | Any |
| Works with | Claude Code and other MCP clients | Claude desktop app with Claude in Chrome | Anything |
| Approve while away from the computer | Yes: Claude app or Telegram | Approval is in the desktop app | You have to be at the keyboard |
| Passwords | Yes | Yes | Yes |
| One-time codes | You give Claude the code, it types it | Fills codes stored in 1Password | Yes |
| Consent and "Accept" buttons | Yes | Not described | Yes |
| API keys: capture and paste | Yes | Not supported yet | Copy and paste |
| Audited by a security firm | **No** | Vendor's own security model, published | n/a |
If you already pay for 1Password and work on a Mac with the Claude desktop app,
use that: it is built by a security company. Open Sesame is for everyone else,
and for Claude Code in particular.
Other open-source projects worth knowing:
[agent360dev/browser-mcp](https://github.com/agent360dev/browser-mcp) drives your
signed-in Chrome and asks you to type codes into a dialog;
[agent-login-broker](https://github.com/qulup-app/agent-login-broker) signs
agents in with Bitwarden in a separate browser;
[Passhold](https://github.com/keyrook/passhold) is a full password manager with
an agent mode.
## Saving logins
Extension settings page → **Saved logins**. Enter the site address, username
and password.
- A login is typed on the site it was saved for and on that owner's other
sites. One saved for `https://google.com` or `https://workspace.google.com`
also works on `https://accounts.google.com`; one saved for
`https://appleid.apple.com` works on App Store Connect's sign-in frame
(`https://idmsa.apple.com`).
- It is never typed on a look-alike (`google.com.evil.io`), a different
country domain (`google.co.uk`), or another tenant of a shared host
(`someone-else.github.io`). "Same owner" is decided with the Public Suffix
List, the same list browsers and password managers use.
- When a login is borrowed from a sister site, the approval says so
("login saved for …") and it is never auto-approved.
- If two saved logins could both fit a page, Open Sesame asks you to save one
for that exact address instead of guessing.
- `login` always submits the form. If it cannot, it removes the password from
the field again and says so.
- Passwords are encrypted in the extension's storage with a key that cannot be
exported. The settings page can copy one back to the clipboard. This protects
the stored file; it does not protect against malware running as you.
## Importing from a password manager
Settings page → section 03 → **Import from a password manager**.

1. Export your logins as a file:
- **Bitwarden:** Tools → Export vault → format `.csv` or `.json` (not the encrypted one).
- **1Password:** File → Export → choose **CSV**.
- **Chrome / Edge:** Settings → Passwords → Export passwords.
- **LastPass:** Advanced options → Export.
2. Choose the file. It is read inside your browser and is not uploaded anywhere.
3. Tick the logins you want, or use **Import everything**. The filter box and
**Select all / none** work on what is currently listed.
4. Delete the export file afterwards. It holds your passwords in plain text.
Each row is marked **new**, **replaces saved**, **same site twice** or
**skipped** (no https address, or no password). Open Sesame keeps one login per
site, so when a file has two logins for the same site only one can be chosen.
Passwords are never shown in the list.
## API keys
Many sites show a new API key once. Claude can ask Open Sesame to keep it:
1. `save_secret` with a name such as `OPENAI_API_KEY`. The extension finds the
key on the page, and the approval shows the name, a hint (`sk-…s0`) and its
length. On approval the key goes from the page straight into the extension's
encrypted store.
2. Later, `type_secret` types it into a field on another site, for example a
hosting provider's environment-variable form. The approval names the key,
the site it came from, the destination site and the field. It never presses
Save; that is a separate `click`.
Section 04 of the settings page lists the saved keys. **Show** reveals one,
**Copy** puts it on the clipboard, and you can add a key by hand there too.
Saved logins have a **Copy** button for the password as well.
- If a page shows several keys, Claude must say which, by the label next to it
(`near: "Secret key"`) or a selector. Open Sesame does not guess.
- A key can be typed on any https site, because that is what keys are for. By
default both key actions ask first, and the approval names the key, the site
and the field.
- To stop being asked for keys:
```
node server/bin/cli.js config keys auto
```
and add `mcp__open-sesame__save_secret`, `mcp__open-sesame__type_secret`
and `mcp__open-sesame__list_secrets` to the allow list in your Claude Code
settings. Every use is still written to the action log. The trade-off: if a
web page ever tricks Claude into typing a key into the wrong site, nothing
stops it. `config keys ask` turns the prompt back on.
- Open Sesame never hands a key to Claude. But a key that is visible on a page,
or sitting in a normal text field after being typed, is something Claude can
see the same way it sees the rest of the page.
- Keys stay in the extension. Exporting one to a file such as `.env` is not
built.
## Approvals
`node server/bin/cli.js config show` prints the current settings. Restart Claude
Code sessions after changing them.
### `client` (default): Claude Code's own prompt
`login`, `click` and `enter_code` only *prepare* the action and return
`needs_confirmation` with the site, page and detail the extension found. Nothing
happens until Claude calls `confirm` with exactly those values. Claude Code asks
you to allow that `confirm` call and shows its arguments, so what you approve is
the real site and the real button text. A `confirm` whose values differ is
refused and the action is thrown away.
With Remote Control, that prompt appears in the Claude app on your phone.
- You can put `login`, `click`, `enter_code` and `status` on your allow list to
see fewer prompts. **Never allow-list `confirm`**, and do not use this mode
with permission prompts turned off: then nobody is asked.
### `telegram`: Approve / Deny buttons
One call. Open Sesame sends a message with the site, the page and the element
text, and waits for a button press from your chat. No answer in 5 minutes means
no.
```
node server/bin/cli.js config telegram <botToken> <chatId>
node server/bin/cli.js config approval telegram
```
Create the bot with @BotFather, send it one message, and read your chat id from
`https://api.telegram.org/bot<token>/getUpdates`. Use a private chat with the
bot: in a group, any member could press Approve.
### Skipping the prompt for logins you trust
```
node server/bin/cli.js config auto-approve add https://idmsa.apple.com
```
Logins on that exact site then run without asking, in either mode. Clicks and
codes are never auto-approved.
## What the approval does and does not protect
It protects you from Claude using these tools on the wrong site or the wrong
button, including when a web page has tricked it.
It is **not** a sandbox. The pairing token and the settings live in
`~/.open-sesame/config.json`. An agent that can run arbitrary shell commands
as you could read that file and talk to the extension directly, or change the
settings, without any approval. If you give Claude Code unrestricted shell
access, treat these approvals as a guard against mistakes, not against a
hostile agent. Even then the saved passwords themselves stay in the extension.
This project has not been audited. Read [SECURITY.md](SECURITY.md) before you
trust it with an account that matters, and report problems privately as
described there.
## What is recorded
`~/.open-sesame/actions.log` gets one line for every action that was
approved, denied or timed out: time, site, page, what was done and the outcome.
Requests that fail before the approval step (no saved login, nothing matching)
are not logged. Passwords and codes are never written.
## Limits
- It is new. It has an end-to-end test suite against fixture pages and has
been used on a handful of live sites, including Google sign-in. Expect sites
where it does not work yet, and please report them.
- No CAPTCHAs.
- No passkeys.
- Input is scripted, not real key presses. A site that rejects scripted input
will not work in this version.
- `https://` pages only (plus `http://localhost` for testing).
- Login forms inside shadow DOM are not found.
- Two sessions waiting on Telegram at the same moment can take each other's
button press; the loser times out and does nothing.
- Chrome only, loaded unpacked. It is not in the Chrome Web Store.
- Local only. A hosted version is designed but not built; see
`docs/superpowers/specs/2026-12-04-browser-helper-design.md`.
## Questions
**Can Claude read my passwords?**
No tool returns one. The password goes from the extension's encrypted store
into the page's password field. Claude gets back "signed in" or an error.
**Does anything go to a server of yours?**
There is no server of ours. The only network traffic Open Sesame adds is to
Telegram, and only if you turn that approval mode on.
**Does it work with Cursor, Codex or other MCP clients?**
The server is a standard stdio MCP server, so it should. The default approval
mode relies on the client asking before a tool call, as Claude Code does; with a
client that does not ask, use Telegram approvals. Only Claude Code has been
tried.
**I already used this when it was called Browser Helper.**
Nothing to do. An existing `~/.browser-helper` folder keeps being used and your
saved logins stay where they are.
## Development
```
npm test # unit tests
npm run e2e # real Chromium with the extension, the real server, fixture pages
npm run fixtures # serve the fixture pages to try by hand
node scripts/make-assets.mjs # re-render the icons and README screenshots
```
`npm run e2e` needs `npx playwright install chromium` once.
Bug reports, sites that do not work and pull requests are welcome. See
[CONTRIBUTING.md](CONTRIBUTING.md).
## License
[MIT](LICENSE). Built by [Santhej Kallada](https://github.com/100401074).
If Open Sesame saved you a walk back to your desk, a star helps other people
find it.
TDQS
Scored across 8 tools
Each tool targets a distinct action: login (fills+submits saved credentials), type_secret (types a key without submitting), enter_code (one-time codes), click (generic element press), save_secret/list_secrets (key management), status and confirm (meta). The main risk is overlap between login, type_secret, and click, since all can interact with form fields/buttons, but the descriptions clearly delineate when to use each.
All names are snake_case with mostly imperative verbs, and verb_noun pattern is used for list_secrets, save_secret, type_secret, enter_code. Minor deviations: status is a noun and confirm/login/click are bare verbs without objects, but overall the convention is readable and predictable.
Eight tools is well-scoped for a browser credential/login automation server; each tool (status, confirm, the secret family, login, click, enter_code) earns its place with no filler.
The core flows (check status, login, enter code, click, save/list/type secrets, confirm) are covered, but there are notable gaps: no way to delete or rename a saved secret, and no navigation/open-tab or generic text-typing operation, which limits multi-step automation.