# Teams

> Invite people to your team on a hosted server, choose which apps and workspaces each one gets, and set how each member's AI is paid for.

A team is you, the owner, and the people you invite to work on your server. Each member signs in with their own account, opens the apps you allow, and works in the workspaces you give them. When you finish, the person you invited has joined and appears in the team's member list with the access you chose.

## Before you start

- A server run in hosted mode. **Settings → Team** appears only there. On a server set up for one person, the page is not in Settings. The setting is `CT_MODE=hosted` in the server's `.env`.
- You are the owner, signed in on that server.
- For emailed invites, the server must be able to send email. Without that, the invite is a link you copy and send yourself.

## Invite someone

1. Open **Settings → Team** and press **Invite** in the **Members** section.
2. Type the person's **Email** to send the invite by email. Leave it empty to make a link.
3. Tick the workspaces they get. Each one is one of your workspaces.
4. Press **Send invite** (with an email) or **Create link** (without one).
5. For a link, press **Copy link** and send it to the person. The link works for 7 days, and it is shown only once. Press **Close** when you are done.

The invite appears under **Pending invites** until the person joins. Its **More for …** menu sets its workspaces again, or **Delete** cancels it. Nobody can join with a deleted invite.

## Set what each person can open

The **Access** section has one row for each member and each pending invite, and one column for each app. Click a box to step through three states:

| State | What the person can do in that app |
|---|---|
| **Opens and changes** (a tick) | Open it and change things |
| **Opens, changes nothing** (an eye) | Open it and read, with no changes |
| **Off** (empty) | Not shown to them |

A separate switch on each row lets that member read your Workshop scripts. Reading is all it allows.

## Choose how a member's AI is paid for

Open a member's row menu and choose **AI…**. Two choices:

- **Own AI provider**: the member uses their own Claude, ChatGPT or other AI on their own Mac. Your own login is never used for a member.
- **Team budget**: the member's AI runs on a monthly budget that you set, from $1 to $10,000 a month, on the team's API key.

## Choose which workspaces a member works in

Open a member's row menu and choose **Workspaces…**. Each of your workspaces has a switch. A member sees only the ones switched on.

## Choose how people sign in

In **Settings → Team**, set **Sign-in methods**. Choose **Password** with any provider the server offers, one provider only, or all of them. A person then signs in with one of the methods you allow.

## Join a team

The person opens the invite link, which has the form `/join/<token>`:

1. If they are already signed in to the server, they press the button to join with that account.
2. If not, they enter a **Name**, a **Username** and a password of 10 characters or more, and join. The new account is signed in at once.
3. To join with another account, they sign out and open the link again.

## Check it worked

- The person appears under **Members** with their name, and their invite is gone from **Pending invites**.
- Their row in **Access** shows the apps you chose.

## If something goes wrong

- **"This invite link has expired. Ask … for a new one."** Links last 7 days. Ask the owner to send a new invite.
- **"The password needs 10 characters or more."** Choose a longer password when you join.
- **"Enter a budget from $1 to $10,000 a month."** Type a number in that range for the team budget.
- **"Could not load the team"** or no **Team** page: the server is not in hosted mode. [Troubleshooting](/docs/troubleshooting) has the other messages you may see.

## Good to know

- Membership belongs to one server. A person who is a member of your team on this server has no access to another server.
- Only the owner manages the team. A member sees their own row and nothing else in the team.
- An admin of the server sees every account on it in the **Accounts** section.
