blindfill
by mics8128
README.md
<div align="center">
# blindfill
**Let AI agents sign in to websites without ever seeing the password.**
**[Website: mics8128.github.io/blindfill](https://mics8128.github.io/blindfill/)**
[](https://github.com/mics8128/blindfill/actions/workflows/ci.yml)
[](LICENSE)
[](package.json)
[](SECURITY.md)
[](examples/mcp-config.json)
**English** · [繁體中文](README.zh-TW.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · [한국어](README.ko.md)
</div>
Let an AI agent sign in to websites **without ever seeing the password**. blindfill reads the
credential from your password manager, checks it is bound to the page's origin, types it into the
real form, and returns only structure and an outcome. Secret values are write-only
(`SecretHandle.into(sink)`), scrubbed from output, and the session locks after a fill.
> **Status: alpha (0.1.0-alpha.0).** Read [SECURITY.md](SECURITY.md) for the threat model and known gaps first.
## Examples: the password never goes through the LLM
Output below is illustrative; field names may differ slightly.
1. **Sign in.** The agent calls `fill` with an item id and a login URL. blindfill reads the password from `bw`, types it into the form and returns `{"ok": true, "url": ".../home"}`. The model sees only the outcome, never the password.
2. **Phishing and prompt injection.** A lookalike page (`examp1e.com` instead of `example.com`) or a cross-origin iframe is refused **before any secret is read**. A malicious page cannot talk the agent into typing the password somewhere else.
3. **One-time codes.** `totp_code` returns the current 6-digit code (it is readable and fillable, like text). The TOTP seed never leaves the backend.
4. **Locked after fill.** After a fill, the session refuses page text, DOM and screenshots, so a page that echoes the password back cannot leak it to the model.
## Supported backends and browsers
| Backend | Tier | Notes |
| ------------------------------------------------------------------------------------------------ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| Bitwarden / Vaultwarden (`bw`) | verified (mock CLI + fixtures) | Item JSON shape also checked by hand against a live Vaultwarden. blindfill end to end on a live vault: not yet. |
| 1Password (`op`), rbw, pass, gopass, KeePassXC (`keepassxc-cli`), Secret Service (`secret-tool`) | blind-written, unverified | Pass the shared contract tests on fixtures only. Run `blindfill backend selftest <id>` and open a backend report. |
| Browser | Status |
| ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Chromium: Playwright bundled, any Chromium build (`--executable`), or loopback CDP | supported, tested |
| Firefox / Camoufox via a loopback Playwright server (`--browser firefox-connect`) | tested (opt-in suite) against Camoufox 158.0.1-beta.41 and 159.0-beta.43; a long-running instance untested |
| Ego Lite | only as a separate, empty-profile instance (`--executable`); attaching to the running app is unsupported |
| WebKit / Safari | not supported |
| Android (14+) | companion APK: autofill for passwords, credential provider for passkeys (signed on the host); release-signed, and the host checks the installed APK's signer before every fill; install with `blindfill android install --serial <s>` ([android/README.md](android/README.md)); tested with a fake app on one phone (Xperia 5 II, Android 17) and an emulator (Android 16) |
| Passkeys | web sign-in, Chromium only (tested against a fake relying party); no counter write-back, no registration |
Browser providers and their contract: [docs/browsers.md](docs/browsers.md).
## What works (verified by the test suite)
- **Web fill**: origin binding from the vault item, cross-origin-iframe refusal, honeypot skipping, SPA
waits, one-shot submit, post-fill lock.
- **Field rules and login profiles**: exact selectors per site in the item (`blindfill.rules`) or a local
profile, for forms heuristics cannot read. Rule selectors are plain CSS without value or state probes.
- **Page tools**: `page discover|diagnose|verify|list` report structure and booleans, never values, and are
refused while the session is locked.
- **Registration**: `item generate` creates an item with a CSPRNG password that is never shown;
`register` types it into a sign-up form (password and confirmation) on a bound origin.
- **Item admin**: `item list|status|rename|edit`. Secret values, origins and `blindfill.*` fields change only
at a terminal. There is no `item reveal`.
- **Human handoff**: `handoff pause|resume` hands the browser to a person for a CAPTCHA, consent or MFA;
agent actions are refused meanwhile, and the lock survives resume.
- **Interfaces**: CLI, MCP server (stdio) and a library API (`withPage(page, …)`).
- **Leak test**: fill, rules, profiles, page tools, registration, item admin and handoff run through the CLI
and MCP with a canary password and a generated one; all output, errors, `DEBUG=pw:api` logs and state
files are searched in raw, URL, Base64 and hex forms.
## Not done
- Android: saving new logins, WebView logins. Passkey counter write-back and registration. WebKit.
- `bw` end to end against a live vault. The other six backends are blind-written and unverified.
- Not published to npm (`latest` is an empty placeholder).
- Moving from olliepm: [docs/MIGRATING-FROM-OLLIEPM.md](docs/MIGRATING-FROM-OLLIEPM.md).
## Try it
```bash
npm ci && npm run build && npx playwright-core install chromium
export BW_SESSION="$(bw unlock --raw)" # env only
mkdir -p ~/.config/blindfill && echo '{"backend":"bw"}' > ~/.config/blindfill/config.json
node dist/cli.js backend list
node dist/cli.js session start --headless
node dist/cli.js fill --item <id> --url https://example.com/login --submit --expect-url /home
node dist/cli.js mcp # MCP server on stdio, see examples/mcp-config.json
```
## Develop
`npm run lint && npm test && npm run build`. Architecture: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
Releasing (tag-triggered, npm Trusted Publishing): [docs/RELEASING.md](docs/RELEASING.md). MIT licensed.
## Translations
Translation PRs are welcome: improvements to [繁體中文](README.zh-TW.md), [简体中文](README.zh-CN.md),
[日本語](README.ja.md) and [한국어](README.ko.md), or new languages. The English README is the source of truth.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues