# Set up your organization

Invite people, choose roles, and find where admins manage credits and history and everyone manages API keys.

An organization is the workspace that owns your runs, credits and API keys. You create one when you sign up, or join one you were invited to.

## Invite people

You need the Admin role to invite.

1. Open the account menu at the top right and choose Manage account.
2. Open **Organization**.
3. Under **Invite**, enter an email address, choose a role and select **Invite**.

The invitation stays in the list below the form, marked with the role and the date, until it is accepted. Select **Revoke** to cancel it.

The person signs in with that address. Phi shows the invitation in the first setup step, and joining it puts them in your organization with the role you chose. Invitations sent from Phi's first setup steps are always for Member.

## Choose a role

Everyone in an organization can run models, ask the agent, read Work and see the member list. Admins can also:

- invite people, change roles, remove members and rename the organization
- open Billing to buy credits, turn on auto-reload, set a monthly spend limit and manage the card
- read Activity
- create keys that belong to the organization, which every admin can see and revoke

Every member can create and revoke their own API keys.

Change a role from the dropdown beside a member's name on the Organization tab. A member who needs one of the admin tasks asks an admin.

Phi keeps at least one admin. The last admin cannot be demoted or removed, and no one can remove themselves from this page. To hand an organization over, make the new person an Admin first, then change your own role.

## Share the credits

Everyone in the organization spends from one balance. Phi records who started each run. Work opens on **Mine**; switch to **Organization** to see everyone's runs.

The credits pill at the top right shows the balance. For an admin it opens Billing, where credits are bought. Members do not see Billing; a member who runs short asks an admin. [Billing](/docs/billing) covers auto-reload, the monthly spend limit and what each run costs.

## Give a tool or script access

Create API keys from **API keys** in the same account window. Use one key for each machine or tool, so you can revoke one without touching the rest. The [API keys guide](/docs/guides/api-keys) has the steps and the connect commands.

## Review what changed

Admins open **Activity** from the account menu. It lists administrative events: who invited or removed someone, who changed a role, who created or revoked an API key, who bought credits or changed auto-reload, and who cancelled a run. Each row shows the time, action, actor, subject, outcome and source. Select **Show** on a row for the full record.

1. Search the list, or filter by source (Phi, Clerk, Stripe or system) or outcome (success, failure or denied).
2. Select **More filters** to narrow by date, category, action or actor.
3. Select **Export**, choose CSV or JSON Lines, and download the file.

Admins can read the same record from the CLI. Dates take a time zone.

```bash
phi audit list --limit 20
phi audit export --from 2026-10-01T00:00:00Z --to 2026-11-01T00:00:00Z --format jsonl --out activity.jsonl
```

An export from the app without dates covers the last 30 days. The file can contain member names, invitation addresses and IP addresses, so store it as you would any record of who did what. Phi records each export in Activity too.

---
Source: https://dynophi.com/docs/guides/organization
