setup-agent-sign-in
Skill1 starsChanged 23 days agoMITView on GitHub
Set up agent-browser sign-in for a project's test users, with each password kept in agent-browser's local vault. Use when a project has no documented agent login, when adding a test user or role, or when a saved login stops working.
In this repository107 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-agent-documentationSkill
- automate-meSkill
- babysit-and-shipSkill
- chief-of-staffSkill
- coordinatorSkill
- figure-it-outSkill
- git-guardrailsSkill
- maintain-skillsSkill
- principlesSkill
- pstack-helpSkill
- pstack-modeSkill
- pstack-setupSkill
- recallSkill
- reflectSkill
- retroSkill
- setup-matt-pocock-skillsSkill
- show-me-your-workSkill
- swarmSkill
- usage-reviewSkill
- wizardSkill
- writing-for-agentsSkill
- broSkill
- in-your-own-wordsSkill
- ketchupSkill
- ketchup-videoSkill
- next-optionsSkill
- prSkill
- reply-shapeSkill
- teachSkill
- technical-writingSkill
- unslopSkill
- write-like-meSkill
- correctSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- diagnosing-bugsSkill
- implementSkill
- implement-specSkill
- linting-alignmentSkill
- maintain-formal-verification-skillSkill
- maintain-verification-skillSkill
- make-bot-uiSkill
- pstack-tddSkill
- setup-pre-commitSkill
- setup-ts-deep-modulesSkill
- statechartSkill
- tddSkill
- typescript-best-practicesSkill
- update-dependenciesSkill
- architectSkill
- arenaSkill
- codebase-designSkill
- design-prototypeSkill
- domain-modelingSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- howSkill
- improve-codebase-architectureSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Read a saved login with agent-browser auth show, which prints its username and no password.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set up agent sign-in
Agents sign in as test users through agent-browser's local vault. The user saves each login once per machine from their own terminal, so the password moves from their clipboard into the vault and stays out of the conversation, command arguments and script output. The project's login script signs a session in with agent-browser auth login, and its sign-in doc tells agents which role covers which case.
Name each saved login <project>-<role>: a short project slug and the app's own role name in kebab case, such as fysioscout-clinic-admin.
Keep the password in the vault
These rules hold in every step, for the scripts and for you:
- The password reaches agent-browser only through
--password-stdin, in a command the user runs in their own terminal. Ask for emails, URLs and roles in chat; the user types the password nowhere else. - Read a saved login with
agent-browser auth show, which prints its username and no password. Reach the vault only throughagent-browser authcommands, leaving the files under~/.agent-browser/unread. - Scripts send the output of
auth saveandauth loginto/dev/nulland print their own one-line result. - On a login request, read only the status that
network requestslists. Its detail view, a HAR recording, and anevalorget valueon the password field expose the password, so sign-in uses none of them. - A window handed to Computer Use gets a fresh profile with Chrome's password manager off, so no save-password prompt can show the password.
These rules keep the password out of transcripts and logs. The vault's key is readable by the user's own account, so tell the user they protect against accidents, not against an agent that sets out to decrypt the vault.
Steps
- Find the setup. Search the project's
AGENTS.mdand agent docs for a sign-in section, look forscripts/*login*, and runagent-browser auth list. When a setup exists, follow its doc: adding a role changes its role list and doc in step 4, and a login the environment rejects needs only a new save in step 5. Complete when you know whether a setup exists and which of its files change. - Collect the facts. For each role: its profile name, email, and the case it covers, such as which data or features the user has. For each environment: its login page, the API it reaches, whether the test users exist there, and whether writes are safe, such as a sandbox anyone may edit or shared team data to restore after a write. Note whether the users share one password. Take these from the repository, the client's test-user list, or the user. Complete when every role has a name, email and case, and every environment has a login page and a write rule.
- Probe the form. Open the login page in its own agent-browser session and take a snapshot. Record the email, password and submit selectors, the form's shape from login forms, what a signed-in page looks like, and how a failed sign-in shows, such as an error URL or a
4xxon the login request. Complete when the shape, the three selectors, the signed-in test and the failure signal are known, or the form is out of reach as login forms describes, in which case report that to the user and stop. Write the files. Fill each template's
<placeholder>values with the facts from steps 2 and 3:scripts/agent-browser-login.shfrom the login template, with the sign-in code for the form's shape and the failure signal from step 3.scripts/agent-browser-save-test-users.shfrom the save template, when the users share one password. Otherwise the sign-in doc gives one save command per role.scripts/computer-use-login.shfrom the Computer Use template, when the project has a web UI that gets visual passes.- The sign-in doc from the doc template, at
docs/agents/agent-sign-in.mdor as a section of the project's existing doc on manual testing. - One line in the project's
AGENTS.md: read the sign-in doc to sign agent-browser or Computer Use in as a test user, or when a saved login is missing.
Make the scripts executable. Complete when the only
<…>left are the<role>and URL arguments in usage lines and examples, each script passesbash -n, and the doc lists every role from step 2.- Hand over the save. Give the user the exact command to run in their own terminal, with the real profile names, emails and selectors: copy the password, then pipe
pbpasteinto the save script oragent-browser auth save … --password-stdin. This is the one step only the user can do. Complete whenagent-browser auth listshows every new profile. - Prove sign-in. For each role, in its own session from
agent-browser session id --scope worktree --prefix <project>-<role>, run the login script against every documented environment and expectSigned in as <project>-<role>. Run it once for an unsaved role and expect the exit that names the missing login. When you wrote the Computer Use script on a Mac, open one window with it and close it with--close; on a machine without a desktop, such as a Linux server, report that window as unchecked. Close every session you opened. Complete when every role signs in on every documented environment, the unsaved role fails with its message, and no command output showed a password.
Report the roles and environments that signed in, the files written, and each failure with its cause.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

