The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | --- |
| 2 | title: Team & organization |
| 3 | description: Invite teammates and change your Turso organization's settings. |
| 4 | --- |
| 5 | |
| 6 | These work on the organization your [token](/turso/setup) belongs to. |
| 7 | |
| 8 | Invites and members need a team organization on a paid plan. The free plan doesn't allow them. |
| 9 | |
| 10 | ## Invite a teammate |
| 11 | |
| 12 | ```typescript |
| 13 | yield* Turso.OrganizationInvite("Alice", { |
| 14 | email: "alice@example.com", |
| 15 | role: "admin", |
| 16 | }); |
| 17 | ``` |
| 18 | |
| 19 | `role` is `admin`, `member`, or `viewer`. The default is `member`. Changing it sends the invite again. Destroying it cancels the invite. |
| 20 | |
| 21 | ## Add an existing user |
| 22 | |
| 23 | ```typescript |
| 24 | yield* Turso.OrganizationMember("Bob", { |
| 25 | username: "bob", |
| 26 | role: "viewer", |
| 27 | }); |
| 28 | ``` |
| 29 | |
| 30 | Use this when the person already has a Turso account. You can change `role` later. Destroying it removes them. |
| 31 | |
| 32 | ## Change organization settings |
| 33 | |
| 34 | ```typescript |
| 35 | yield* Turso.OrganizationSettings("Org", { |
| 36 | requireMfa: true, |
| 37 | restoreEnabled: true, |
| 38 | }); |
| 39 | ``` |
| 40 | |
| 41 | Alchemy only touches the settings you list. Destroying it puts them back the way they were. |
| 42 | |
| 43 | `overages` lets Turso bill you for usage past your plan's limits. Only turn it on if you mean to. |
| 44 | |
| 45 | ## Where next |
| 46 | |
| 47 | - [Organization reference](/providers/turso/reference/organization) |