Save logins for Agents
Save a test account to your Team's Passwords from an Agent's card or in Settings, and fill it into the Preview.
Your Team has one shared list of logins called Passwords. Agents use it when they need to sign in, for example to log in to the app you’re building with a test account while they check it in the Preview. Anyone in the Team can add, see, change or delete these logins, and every Agent in the Team can read them.
To let an Agent work in a service like Linear or Figma, use a Connection instead. See Connect an Agent to outside services.
Save a login when an Agent asks
When an Agent needs a login, it posts a card in chat. The card’s title is the name the login will be saved under, for example “Staging test account”. Under it there may be a line from the Agent, then one box for each field, such as Email and Password. The Agent may have filled some boxes in already.
- Fill in every box. Password boxes hide what you type.
- Tap Submit.
Until every box is filled, the button shows how many are done, for example Submit (1/2). Every field is needed.
When it’s saved, each field on the card shows dots, even the username, and the values aren’t kept anywhere in the chat. The Agent is told only the login’s name and its field names: Saved to Passwords as "Staging test account" (fields: Email, Password).
If a login with the same name is already in Passwords, the new one replaces all of its fields.
Anyone in the chat can fill in the card, not only the person the Agent was talking to.
Add a login yourself
- Tap Add Password (the + in the toolbar).
- Type a Title. Agents find the login by this name.
- Fill in Username, Password and, if you want, Note.
- Tap Save.
Save stays off until there’s a title and a Username or a Password. Empty fields aren’t saved.
To change a login, open it and tap Edit. A login an Agent’s card saved keeps its own field names, such as Email or API Key. You can change the values, not the fields.
To delete one, open it and tap Delete Password, or swipe its row (on the Mac, right-click it) and choose Delete. The app asks to confirm: “Agents can no longer use this sign-in.”
For everything on this page, such as copying a value or the errors it shows, see Settings › Teams.
Fill a login into the Preview
You can type a saved login into the app running in the Preview without looking it up.
- In the Preview, tap the field in your app where the username or password goes.
- Open the Preview’s ⋯ menu and choose Passwords.
- Choose the login, then Fill Username or Fill Password.
The Preview briefly shows Filled followed by the field’s name. The value is pasted into the field you selected. The login’s menu only offers the fields it has: a username-type field (such as Username or Email) and a password-type field (such as Password or Token).
If Passwords is empty, the menu says No Passwords. Choose Add Password… in the same menu to save one without leaving the Preview.
Agents fill logins into the Preview the same way. See Run your app in Preview.
How Agents use a login
Agents read Passwords with the password-book command. It lists the logins by name and field names, and an Agent reads a value only when it needs to use it. Agents can’t add, change or delete logins: a person does that, from a card or in Settings. See password-book.