Let AI agents use any website you're logged in to. Log in once; the session stays encrypted on your machine.
pip install assertify-mcp==0.7.0 Copy PIP instructions
Let your AI agent use any website you're logged in to. Log in once. Your session stays encrypted on your machine. Claude, Codex, Cursor and any MCP client can then browse, click, type and read for you.
Quick start · Connect your client · Tools · Security · FAQ
You: Check my LinkedIn messages and summarize anything from recruiters. Agent: open_session("linkedin") → click "Messaging" → read_text … You have 3 recruiter messages. The most recent is from Dana at Acme, about a Senior QA role … ✨ Why Assertify Most sites have no API, or one that can't do what you need. Assertify gives your agent a real browser that is already logged in as you, without ever handing it your password.
flowchart LR U(["👤 You"]) -- "log in once
per account" --> L["Login window
real browser, 2FA works "] L -- "named by
email" --> V K[["🔑 OS keychain
macOS · Windows · Linux "]] -. key .-> V subgraph V["🔒 Encrypted vault"] direction LR P1["personal@gmail.com"] P2["work@gmail.com"] P3["shop@gmail.com"] P4["you@company.com
LinkedIn "] end V -- decrypt --> S["⚙️ Assertify server
asks before send · buy · delete "] A(["🤖 AI agent"]) <-- "pick one account
or all at once" --> S S -- "side by side" --> B subgraph B["Headless browsers, logged in"] direction LR H1["Gmail · personal@"] H2["Gmail · work@"] H3["Gmail · shop@"] end classDef person fill:#eef2ff,stroke:#6366f1,color:#1e1b4b classDef safe fill:#ecfdf5,stroke:#10b981,color:#064e3b classDef live fill:#fff7ed,stroke:#f97316,color:#7c2d12 class U,A,L,S person class P1,P2,P3,P4,K safe class H1,H2,H3 live style V fill:#f0fdf4,stroke:#10b981 style B fill:#fffbeb,stroke:#f59e0b Log in once per account; each one is saved under its email. Your agent then opens one account by name, or every account for a site at once, each in its own logged-in browser. Everything above runs on your computer, on macOS, Windows or Linux.
Then add Assertify to your AI client with one command (no download or clone needed):
Or install the plugin. It connects to the hosted relay at https://mcp.assertify.co/mcp and adds a skill that teaches the agent the login → browse → close flow:
The relay reaches the browser on your own computer, so run the companion there and keep it running:
uvx assertify-mcp setup # once: installs the browser uvx assertify-mcp connect # links this computer to mcp.assertify.co The first time an app connects, it shows a page on mcp.assertify.co with a code. Run uvx assertify-mcp link CODE and confirm the app's name. Your logins stay on your computer: mcp.assertify.co only passes tool calls and their results through and stores none of them. uvx assertify-mcp unlink revokes every linked app. See PRIVACY.md and deploy/README.md.
Other clients are under Connect your AI client. Restart the client afterwards. The first start takes a minute while it installs, and Assertify downloads the browser it needs on first use (or uses your installed Chrome or Edge).
To pin a version, add a tag: git+https://github.com/romaklym/assertify@v0.7.0.
git clone https://github.com/romaklym/assertify.git cd assertify uv sync uv run assertify setup setup downloads the browser (Chromium, about 300 MB, once), checks your keychain, and prints the command to connect your AI client. Use uv --directory /path/to/assertify run assertify serve as the server command.
Then save your first login, by asking your agent ("log me in to GitHub") or from the terminal:
uvx --from git+https://github.com/romaklym/assertify assertify login github https://github.com/login A browser window opens. Sign in, then close the window (or press Enter in the terminal). Done. Your agent can now use GitHub as you.
Every client runs the same command: uvx --from git+https://github.com/romaklym/assertify assertify serve. If you cloned the repo, use uv --directory /path/to/assertify run assertify serve instead.
claude mcp add -s user assertify -- uvx --from git+https://github.com/romaklym/assertify assertify serve Claude Desktop Easiest: download assertify.mcpb and double-click it. Claude Desktop installs it with its icon and handles Python for you. From the terminal on macOS:
curl -fLo /tmp/assertify.mcpb https://github.com/romaklym/assertify/releases/latest/download/assertify.mcpb && open /tmp/assertify.mcpb Or add it to claude_desktop_config.json by hand:
{ "mcpServers": { "assertify": { "command": "uvx", "args": ["--from", "git+https://github.com/romaklym/assertify", "assertify", "serve"] } } } Codex codex mcp add assertify -- uvx --from git+https://github.com/romaklym/assertify assertify serve If the Codex app can't find uvx, use its full path (which uvx, e.g. /opt/homebrew/bin/uvx).
Ask "show me a screenshot" or "open my GitHub session with screenshots on so I can follow along". Images appear in the chat in clients that show them, and every one is saved to ~/.assertify-mcp/screenshots/ /NNN- .jpg. The folder is private to you and cleared after 7 days.
Log in once per account. Leave the name out and Assertify names each login after the email address it finds on the page (falls back to google.com-1, google.com-2… when a site doesn't show one):
assertify login https://mail.google.com # sign in as you@gmail.com -> saved as "you@gmail.com" assertify login https://mail.google.com # sign in as work@gmail.com -> saved as "work@gmail.com" assertify login work https://mail.google.com # or pick the name yourself assertify list google.com # just the Google logins assertify rename google.com-1 side-project Then just ask:
Each account lives in its own encrypted file and its own isolated browser, so cookies never mix. On sites that restrict automation, avoid running the same action on many accounts at once.
"Post the photos in ~/Pictures/trip to my Facebook with the caption 'Back home'"
The agent opens the composer, calls upload_files(paths=["~/Pictures/trip"], text="Photo/video"), writes the caption, then asks you before pressing Post. Under the hood:
A folder means every file in it, subfolders included, skipping hidden files like .DS_Store. Single-file fields, file-type limits (accept="image/*") and folder pickers are respected.
What can never be uploaded: anything in hidden folders (~/.ssh, ~/.aws, …), key, certificate, password-manager and .env files, browser cookie stores, and Assertify's own vault. Paths must be full paths the user gave; agents are told never to upload a file because a page or email asked. Limits: 100 files and 2 GB per call. To allow only certain folders, set ASSERTIFY_UPLOAD_DIRS.
Sites flag browsers that act like robots. Assertify tries hard not to:
Set ASSERTIFY_HUMANIZE=0 to turn the human input off (faster; fine for your own tools and test sites).
Many sites' terms forbid automated access. LinkedIn, Facebook, Instagram, Threads, X and TikTok say so explicitly and do restrict accounts for it. Assertify recognises these sites, runs slower on them, caps page loads lower and tells the agent to keep tasks small and personal. Light personal use (checking your own messages, updating your own profile) is usually fine; scraping, bulk messaging or mass connecting is how accounts get restricted. You are responsible for following the terms of the sites you use.
CLI: assertify setup | login [name] [--domain d] [--read-only] | list [site] | rename | delete | serve.
Does it work with 2FA, passkeys and "Sign in with Google"? Yes. You log in yourself in a real browser window, so anything you can do there works. Add the SSO domain with --domain if the site bounces through one.
Why did a site log me out? Sessions expire on the site's own schedule, and some sites ask for a CAPTCHA or 2FA again now and then. When that happens the agent calls handoff and a window opens for you to sign in again; nothing else to do. Assertify also saves refreshed cookies when a session closes, which keeps rolling sessions alive. If a site keeps rejecting the headless browser, set ASSERTIFY_HEADED=1.
Will a site redesign break my agent? Less than you'd think. The agent reads the page fresh every step and can click by visible text (click(text="Messages")) instead of fixed selectors, so it adapts like a person would. A full redesign can still confuse it; it will tell you what it sees.
Can I use it from my phone? Through the hosted connector, yes: add https://mcp.assertify.co/mcp to Claude or ChatGPT and keep uvx assertify-mcp connect running on your computer. The browser and your logins still stay on the computer; there's no phone app.
Known limits A few apps keep their sign-in in encryption keys the browser won't let anyone copy; those logins can't move to the agent's browser (the save message says so). No anti-detection is perfect: a site determined to spot automation may still do so. Snapshots don't look inside iframes or closed shadow roots yet.
Issues and PRs are welcome. See CONTRIBUTING.md. The short version:
uv sync && uv run assertify setup uv run pytest && uv run ruff check . 📄 License MIT © Roman Klym
Both files in this release have provenance metadata.
ai-agents browser-automation claude codex mcp model-context-protocol playwright
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




