> ## Documentation Index
> Fetch the complete documentation index at: https://vetta.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Organizations & members

> The organization is the billing entity; users are members.

Everything in Naive Managed Agents belongs to an **organization** — the billing entity that holds the credit balance and owns every agent, computer, skill, and identity. Users are **members**.

## Model

```
organization  (billing entity, owns everything)
├── members            users with a role: owner | admin | member
├── api keys           programmatic access, org-scoped
├── credit balance     credits (5,000 = $1)
├── agents             each with its own budget
├── computers
├── skills
├── files
└── identities
```

## Roles

| Role | Can do |
| - | - |
| `owner` | Everything, including deleting the company. Only an owner can make someone an owner, or change or remove one. A company keeps at least one who has joined. The exception is a company with no such owner yet, so one made with an API key can get its first. |
| `admin` | Everything else: invite and remove people, manage keys, billing, agents and computers. |
| `member` | Create and run agents with the company's resources, and connect their own agent. |

## Your agent

Anyone in a company can connect an agent they run elsewhere from **Members → Connect your agent**.

* **Claude and ChatGPT** sign in. Add the address shown there as a custom connector, sign in to Naive, choose the company and approve. See [Sign in with OAuth](https://vetta.sh/docs/api/mcp.md#sign-in-with-oauth) for the steps.
* **Claude Code, Codex and Cursor** can sign in the same way, or take a token: press **Make a token** and paste the config into the client's MCP settings. The token is shown once, so treat it like a password.

Each connection is listed under **Your agent** by name, such as `Claude` or `ChatGPT`, and disconnects on its own.

* It works as its person. Its messages show as theirs, and Members shows "Agent connected" on their row.
* It stops at its next call if its person leaves.
* It holds a member's access whatever its person's role. Even an owner's agent cannot manage people, API keys, vaults or webhooks, and cannot approve what always asks a person.
* It cannot do anything that takes `billing:write`: top-ups and plan changes, domain purchases, phone numbers, virtual cards, wallet and payments, trading, company formation, managed connected accounts, and ad spend. `tools_search` does not show it those tools.
* It can do what a member can: run agents, sessions, boards, apps, media and other member-level tools, and read the company's balance. There is no per-person limit yet.
* A token lasts 90 days, then you connect again. A sign-in lasts while it is used and ends after 90 days unused. Its person can disconnect it sooner, and so can any owner or admin, from the person's menu.

## Inviting someone

An invite emails them a link. Until they sign in, Members shows them as **Invited**, and you can send it again or cancel it. An invited owner counts as an owner only once they've joined.

## Who said what

A company's chats are shared. A message from someone else shows who sent it, and your own stays as it was. Messages sent before this existed show no name.

Only a key's own person or an owner can rotate it, because rotating hands over its secret. An admin can revoke anyone's key.

## When someone leaves

Removing someone ends their sign-in and their connected agents, and revokes the API keys and MCP sessions they made, including keys those keys made. It happens in one step, so nothing minted at that moment can slip past. Moving an owner or admin down to `member` revokes the same keys and sessions, and leaves their connected agents working. A revoked key can keep reading and running for up to 3 seconds while servers drop it from their cache, but it can't mint another credential or change the team.

Some things stay, because they are the company's: an app's own key, webhooks, deployments, vault credentials, and anyone they invited. If you don't trust how someone left, check those, and rotate app keys. Chats they drove lose the CEO's tools.

## Managing an organization

```bash CLI theme={"system"}
naive org create --name "Acme"
naive org list
naive org use <org_id>              # set the active org for subsequent commands
naive org invite --email alice@acme.com --role admin
naive org members                   # members are addressed by their usr_ id
naive org set-role usr_... --role member
```

```typescript TypeScript theme={"system"}
const org = await naive.orgs.create({ name: "Acme" });
await naive.orgs.addMember(org.id, { email: "alice@acme.com", role: "admin" });
```

## API keys

Programmatic access uses org-scoped API keys. Keys can carry scopes to limit what they can do.

A company created by a signed-in customer is `live`, because customer onboarding continues directly
to subscription checkout — Standard with its 7-day free trial, or Pro ([Plans](https://vetta.sh/docs/platform/pricing.md#plans)). Keys created inside it therefore use the `sk_live_…` prefix. A company
created by an API key inherits that key's mode, so an `sk_test_…` credential cannot mint live access.

```bash CLI theme={"system"}
naive keys create --name ci --scopes agents:write,sessions:write
naive keys list
naive keys revoke <key_id>
```

> [!WARNING]
>
> An API key is shown once at creation. Store it securely; it cannot be retrieved again.

## Compliance & tenancy

| Area | Today | Roadmap |
| - | - | - |
| **Tenancy** | Logical multi-tenancy: every organization's data is isolated per-org and scoped by org id on every request. | Dedicated single-tenant deployment is not offered yet. |
| **Data residency** | All organization data is stored in Managed Agents' primary region. | Region pinning is planned. |
| **Certifications** | None claimed yet. | SOC 2 Type II and related attestations are on the roadmap. |
| **Data handling** | Secrets are held in the [vault](https://vetta.sh/docs/identity/vault.md) and injected at the network boundary; transcripts and files are org-scoped and retained per plan. | Configurable retention windows. |

> [!NOTE]
>
> Roadmap items above are planned, not shipped — if one is a hard requirement for your deployment, contact us before building on it.

## Bootstrapping

Signing up creates your organization, adds you as `owner`, and opens a credit balance in one step. Default resources are created lazily on first use.

> [card] [Next: credits & billing](https://vetta.sh/docs/platform/billing.md)
>
> How credits and billing work.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.