# Namespace

> For the complete documentation index, see [llms.txt](https://docs-stg.ringleader.dev/llms.txt).


> The fields of a namespace, the limits you can set on it and the kinds that live outside one.


A **Namespace** is the unit of tenancy for a team or business unit, and every resource lives in one. This page lists the fields of a Namespace, the limits it can carry and the kinds that are not namespaced.

```text
apiVersion: core.ringleader.dev/v1
kind: Namespace
```

[Namespaces and limits](https://docs-stg.ringleader.dev/organizations-teams/accounts-access/namespaces-limits/) explains what a namespace is for, how Ringleader checks its limits and how to create one. [Organization and OrgDomain](https://docs-stg.ringleader.dev/reference/resources/organization/) lists the fields of the organization it belongs to.

## Namespace spec

| Field | Description |
|-------|-------------|
| `org` | The organization the namespace belongs to. A namespace belongs to at most one. |
| `maxRunningWorkstations`, `maxVCPUs`, `maxGPUs` | The limits on what the namespace's workstations may use at once. [Limit fields](#limit-fields) says what each counts. A limit left unset is no limit. |
| `maxIntegrationTokensPerDay` | The most model tokens the namespace may use in one UTC day. It counts the input, output, cache and thinking tokens of every call Ringleader counts, including the ones in [Counted calls](https://docs-stg.ringleader.dev/reference/resources/edge/#counted-calls). Once the day's total reaches it, calls through an Integration with `source: ringleader` are refused with `429` until the next UTC day. Calls already running finish, so the total can go over it. Only an `org-admin` or Ringleader can set it. Unset is no limit. |

## Limit fields

These limits count what runs at once. The namespace may use at most `maxRunningWorkstations` workstations at once, `maxVCPUs` vCPUs and `maxGPUs` GPUs, each across its running cloud workstations except where the table says otherwise. You can set them on an org, for all of its namespaces together, and on a namespace, for that namespace alone. [Limits](https://docs-stg.ringleader.dev/organizations-teams/accounts-access/namespaces-limits/#limits) explains how Ringleader checks them and what it stops, and [Set a namespace's limits](https://docs-stg.ringleader.dev/organizations-teams/accounts-access/namespaces-limits/#set-a-namespaces-limits) shows how to set them on a namespace.

| Field | Counts |
|-------|--------|
| `maxRunningWorkstations` | Running workstations that Ringleader stores, on every provider: cloud workstations and [node-bound](https://docs-stg.ringleader.dev/workstations/basics/#node-bound-workstations) local ones. A workstation stored only on a member's computer does not count. |
| `maxVCPUs` | The vCPUs of running cloud workstations. Local workstations do not count. |
| `maxGPUs` | The GPUs of running cloud workstations. Local workstations do not count. |

## Namespace scoping

Most kinds are namespaced, and a `CloudAccount` and a `LocalBinding` are the two exceptions. [Namespaces](https://docs-stg.ringleader.dev/organizations-teams/accounts-access/namespaces-limits/#namespaces) says what stays within a namespace.

## Next steps

- [Namespaces and limits](https://docs-stg.ringleader.dev/organizations-teams/accounts-access/namespaces-limits/): create a namespace, set its limits and see what Ringleader stops when one is over.
- [Organization and OrgDomain](https://docs-stg.ringleader.dev/reference/resources/organization/): the org fields, including its own limits.
- [Roles and RoleBindings](https://docs-stg.ringleader.dev/reference/resources/roles/): the roles that give people access to a namespace.

