Add teams and people
On gomoe.dev people make their own accounts and teams in the app. An operator steps in for what the app does not do, such as changing a role from the command line or granting the enterprise entitlement. This page covers both.
Accounts and sign-in
Section titled “Accounts and sign-in”gomoe.dev runs with AGENTS_AUTH=native, so people sign in to Agents itself. Anyone in the US can make an account with Create an account on the sign-in page, since the web ACL blocks requests from other countries. See How people and computers reach gomoe.dev. A person signs in in one of these ways.
- An email and a password, then a code from an authenticator app or one of ten recovery codes.
- A passkey, which is both factors.
- Continue with GitHub, once the server has the GitHub App’s client id and client secret in SSM. See Turn on GitHub.
host.tswrites no Google client id, so Continue with Google is not offered on gomoe.dev. - An emailed sign-in link.
Continue with GitHub and an emailed link each still ask for a second factor when the account has a password or a second factor.
The session cookie lasts 30 days from when it was set at sign-in. Ten wrong tries lock an email for 15 minutes, and each further lock within a day lasts twice as long. Settings > Signing in, Settings > API tokens and Settings > Team sign-in exist only on a native server. On gomoe.dev a person’s login is their account’s email.
Make a team
Section titled “Make a team”An account on no team, once its email is checked, opens on a page at / with its invites, with Accept and Decline, the requests it waits on, with Cancel, Make a team and Join a team. An account on a team reaches the same page from Make or join a team in its menu.
- Under Make a team, type the team’s name. The app suggests a key from it and says whether the key is free.
- Make the team. Its maker is its admin.
Making a team needs a checked email. An account may make up to 3 teams.
Keys and join policies
Section titled “Keys and join policies”Every team has a key. The People page shows it under Team key, and an admin changes the key there and what it does. The old key is held for 90 days, so nobody else takes it. The team’s join policy says what typing the key under Join a team does.
requestfiles a join request, which the team’s admins see under Wants to join on the People page and let in with Add.domainlets a checked email on one of the team’s domains, or its organization’s, in at once, and files a request for anyone else.invite_onlyanswers as if no team had the key.
A team in an organization can also take org_members, which lets a member of the organization in at once while the organization lists its teams, and files a request for anyone else. Lookups by key stop at 20 an hour for an account and 100 for an address.
Invite someone by email
Section titled “Invite someone by email”- Sign in as an admin and open People.
- Choose Invite someone, or click in the Their email field.
- Type the person’s email. Use the role chip in the field to choose Member or Admin. It starts on Member.
- Press Enter, or choose Invite as member or Invite as admin.
The server emails the invite from no-reply@gomoe.dev through SES. The email carries a one-time link, https://gomoe.dev/#/invite/<token>, that works for 7 days. The link shows the team and who invited. Making an account through it, with the invite’s email, joins the team at once, since only that email got the link. A second use, an expired link and a cancelled invite each fail with 410. An account signed in with another email is told who the invite is for.
Open invites are rows under Invited on the People page, with Resend and Cancel. Resend emails a new link and retires the old one. An email can have one open invite to a team at a time, and an email already on the team cannot be invited.
While SES in goMoE’s account is in the sandbox, it delivers only to verified identities. Terraform verifies gomoe.dev and each domain in ses_recipient_domains in gomoe.tfvars, which lists gomoe.ai. The repo does not record whether the account has left the sandbox, so an invite to an address outside those domains may not arrive.
Run an admin command from a laptop
Section titled “Run an admin command from a laptop”ops/aws-deploy/admin.ts runs server/admin.ts on the server host over SSM, as the API’s user with its .env. Run it from a checkout with AWS_PROFILE=gomoe and TF_DATA_DIR=~/.agents-app/terraform/gomoe set, after aws sso login --profile gomoe. It reads the stack’s Terraform outputs, so terraform init must have run with that TF_DATA_DIR, and terraform and aws must be on the PATH. It prints what the command printed and exits 0 when the command succeeded. Logins in these commands are emails.
node ops/aws-deploy/admin.ts set-role <team> <email> <admin|member>These are the commands server/admin.ts takes.
| Command | What it does |
|---|---|
add-team <team> <email> |
Makes a team with that email as its admin. It makes no computer. |
add-person <team> <email> |
Adds the email as a member. It makes no computer, so the person makes theirs on Your computer. |
set-role <team> <email> <admin|member> |
Changes a role. It fails with no person <email> in <team> when the team never had that email. |
add-instance <team> <name> <mac|box|check> <owner email> |
Adds a machine and prints its token once. See Connect a person’s Mac. |
add-agent <team> <name> <home instance> [model] [instructions] |
Makes an agent the whole team sees. |
move-agents <team> |
Moves the team’s agents from their Macs to their person’s computer, where that computer can run them. |
forge-login <email> <forge user> |
Records which forge user a person is. |
set-policy <team> <repo clone url> <policy.json> <owner email> |
Puts a repo under a policy with its owner. |
add-lesson <team> <rule> <incident> |
Adds a written lesson to a team. |
grant-enterprise <email> [days] |
Grants the enterprise entitlement, which lets an account make an organization. |
revoke-enterprise <email> |
Takes the entitlement back. |
github-token reads its token from standard input, and admin.ts sends a command over SSM with no standard input, so a team’s GitHub token is saved from the app on gomoe.dev. The load-* and stand-in-attempt commands serve the load harness and bin/agentsctl.