# Resource kinds

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

> The fields, status, conditions and reasons of each Ringleader resource kind.


Everything in Ringleader is a **resource**: a Kubernetes-style object with
`apiVersion`, `kind`, `metadata`, `spec`, and (for most kinds) `status`. You
declare the `spec`; Ringleader and the in-VM agent write `status` as they
bring the real workstation in line with it. You never edit `status`.

Each page below describes one kind: its fields, its status and, where it has them, its conditions and reasons. To see how these kinds fit together around a workstation, read [workstation basics](https://docs-stg.ringleader.dev/workstations/basics/). [Set up one Edge for two teams](https://docs-stg.ringleader.dev/guides/set-up-edge/) is an example that uses several kinds together.

## Kinds

- [Workstation](https://docs-stg.ringleader.dev/reference/resources/workstation/): one managed development computer, a VM on your computer or in your cloud account.
- [WorkstationConfig](https://docs-stg.ringleader.dev/reference/resources/workstationconfig/): a reusable configuration layer applied to workstations.
- [Selectors](https://docs-stg.ringleader.dev/reference/resources/selectors/): what a selector with no labels matches, for each kind.
- [ConfigMap](https://docs-stg.ringleader.dev/reference/resources/configmap/): reusable text that a configuration's `scripts` and `files` reference instead of inlining it.
- [Secret](https://docs-stg.ringleader.dev/reference/resources/secret/): the places that name a Secret and who must be able to read it for each.
- [Integration](https://docs-stg.ringleader.dev/reference/resources/integration/): connect workstations to a shared external service, such as an LLM gateway or an MCP server, and the fields of an `httpProxy` Integration.
- [CredentialProvider](https://docs-stg.ringleader.dev/reference/resources/credentialprovider/): short-lived tokens that Ringleader gets and renews, for GitHub, Anthropic or an MCP server.
- [Edge](https://docs-stg.ringleader.dev/reference/resources/edge/): the VM that enforces egress rules by host name and adds injected credentials, in your cloud account or on your computer, one per cloud and region or per local provider.
- [WorkstationPool and WorkstationPoolLease](https://docs-stg.ringleader.dev/reference/resources/workstationpool/): a set of workstations built from one template and leased out one at a time, for CI jobs and other work that gives its workstation back.
- [AgentSession and AgentSessionConfig](https://docs-stg.ringleader.dev/reference/resources/agentsession/): one run of a coding agent on a workstation, and the reusable layer of settings that Ringleader folds into the sessions it matches.
- [TerminalSession and LocalTerminalSession](https://docs-stg.ringleader.dev/reference/resources/terminalsession/): a named set of shells that keep running on a workstation, or on your own computer.
- [WorktreeSet](https://docs-stg.ringleader.dev/reference/resources/worktreeset/): a directory on a workstation that holds a git worktree of each of several sources, all on one branch, for sessions to work in.
- [LocalBinding](https://docs-stg.ringleader.dev/reference/resources/localbinding/): a port and socket forward from a workstation to your computer.
- [SSHKey](https://docs-stg.ringleader.dev/reference/resources/sshkey/): forward a local private key into workstations as an ambient ssh-agent.
- [CloudIdentity](https://docs-stg.ringleader.dev/reference/resources/cloudidentity/): how Ringleader signs in to your cloud and what shape a namespace's cloud workstations take.
- [CloudAccount](https://docs-stg.ringleader.dev/reference/resources/cloudaccount/): the link between one organization and one cloud account, recording the cloud identity to use.
- [CloudServiceAccount](https://docs-stg.ringleader.dev/reference/resources/cloudserviceaccount/): the record Ringleader keeps of each runtime identity a CloudIdentity declares.
- [Storage](https://docs-stg.ringleader.dev/reference/resources/storage/): the bucket in your own cloud account that keeps a namespace's session transcripts and uploaded files.
- [Policy and OrgPolicy](https://docs-stg.ringleader.dev/reference/resources/policy/): constrain what a workstation file may name: which git repositories it may clone, where it may connect out to, and which LLM models and providers an Integration may name.
- [Organization and OrgDomain](https://docs-stg.ringleader.dev/reference/resources/organization/): the Org and OrgDomain fields and the status reasons. [Organizations and domains](https://docs-stg.ringleader.dev/organizations-teams/accounts-access/organizations-domains/) explains the tenancy layer.
- [Namespace](https://docs-stg.ringleader.dev/reference/resources/namespace/): the Namespace fields, the limits table and the kinds that are not namespaced.
- [Roles and RoleBindings](https://docs-stg.ringleader.dev/reference/resources/roles/): the built-in roles and the bindings that carry them. [Roles and grants](https://docs-stg.ringleader.dev/organizations-teams/accounts-access/roles-grants/) explains roles and sharing.
- [Grant](https://docs-stg.ringleader.dev/reference/resources/grant/): the Grant spec and the `cloudconfig` Grant.
- [ServiceAccount and IdentityProvider](https://docs-stg.ringleader.dev/reference/resources/serviceaccount/): a non-human identity CI and automation sign in as, with no stored secret.

## Status of a resource

Every kind that reports a status carries a top-level **`status.message`**: the one
human headline for what is going on with that object, in a sentence. It is
universal, so you can read any object's state without first learning that kind's
sub-status keys or condition vocabulary:

```bash
rl workstation get my-box -o jsonpath='{.status.message}{"\n"}'
rl binding get -o jsonpath='{.status.message}{"\n"}'
```

Where a kind also has **conditions**, the two never disagree: they are derived from
one computation. `status.message` is the headline; `conditions[].message` is the
per-aspect detail, and the condition's `reason` is a value from a closed set you
can branch on.

Status is server-owned (a client can never write it) and it is curated: an
internal failure surfaces as a generic message plus a reference id, never a raw
error, so a status is always safe to paste into a ticket.

## Apply order

When you `apply` a multi-document file, Ringleader writes the objects **in order
of their kind**, so that references resolve. Among the kinds in this section, the order is:

1. Organizations
2. Namespaces
3. OrgPolicies
4. ServiceAccounts
5. Policies
6. ConfigMaps
7. WorkstationConfigs
8. Secrets
9. Integrations
10. SSHKeys
11. CloudAccounts
12. CloudIdentities
13. Edges
14. Workstations
15. WorkstationPools
16. LocalBindings
17. Grants
18. WorkstationPoolLeases

An Integration comes after the Secrets, so the key it names already exists when you apply
it. A Grant comes after the objects it can name, and a
WorkstationPoolLease comes last, after the pool it names and the Grant that may permit it.

## Next steps

- [Workstation](https://docs-stg.ringleader.dev/reference/resources/workstation/): the kind to read first.
- [Reference](https://docs-stg.ringleader.dev/reference/): the other parts of the reference, from the CLI to the glossary.


## Pages in this section

- [Workstation](https://docs-stg.ringleader.dev/reference/resources/workstation/index.md): A development computer Ringleader creates and manages for you: a VM on your laptop or in your cloud account.
- [WorkstationConfig](https://docs-stg.ringleader.dev/reference/resources/workstationconfig/index.md): A setup you define once and attach to many workstations, by label or by name.
- [Selectors](https://docs-stg.ringleader.dev/reference/resources/selectors/index.md): The part of an object that says which workstations it applies to, and what a selector with no labels matches for each kind.
- [ConfigMap](https://docs-stg.ringleader.dev/reference/resources/configmap/index.md): Store a script or config file once and reference it from many manifests, instead of pasting it into each one.
- [Integration](https://docs-stg.ringleader.dev/reference/resources/integration/index.md): Connect workstations to a shared external service, such as an LLM gateway or an API that needs a key, so the tools on them use it with no per-workstation setup.
- [CredentialProvider](https://docs-stg.ringleader.dev/reference/resources/credentialprovider/index.md): A credential provider tells Ringleader where to get a short-lived token for a service, such as GitHub, Anthropic or an MCP server.
- [Edge](https://docs-stg.ringleader.dev/reference/resources/edge/index.md): An Edge is a small VM, in your cloud account or on your computer, that enforces hostname egress rules and adds injected credentials for your workstations.
- [WorkstationPool and WorkstationPoolLease](https://docs-stg.ringleader.dev/reference/resources/workstationpool/index.md): A set of workstations that Ringleader builds from one template and lends out one at a time, each through a lease.
- [LocalBinding](https://docs-stg.ringleader.dev/reference/resources/localbinding/index.md): A forward of a workstation's ports and Unix sockets to your computer, and of your computer's services into a workstation.
- [CloudIdentity](https://docs-stg.ringleader.dev/reference/resources/cloudidentity/index.md): A CloudIdentity tells Ringleader how to sign in to your cloud and what shape a namespace's cloud workstations take.
- [Secret](https://docs-stg.ringleader.dev/reference/resources/secret/index.md): A Secret stores a key, password or token under a name, and this page lists where you can name one and who must be able to read it.
- [CloudAccount](https://docs-stg.ringleader.dev/reference/resources/cloudaccount/index.md): Which cloud identity Ringleader uses for one organization and one cloud account, which namespaces may use it, and the limits on how that account's workstations can be reached.
- [Storage](https://docs-stg.ringleader.dev/reference/resources/storage/index.md): Keep a namespace's session transcripts and uploaded files in a bucket in your own GCP, AWS or Azure account.
- [SSHKey](https://docs-stg.ringleader.dev/reference/resources/sshkey/index.md): Forward a local private key into workstations as an ambient ssh-agent, so processes on the workstation can authenticate outbound.
- [AgentSession and AgentSessionConfig](https://docs-stg.ringleader.dev/reference/resources/agentsession/index.md): An AgentSession is one run of a coding agent on a workstation, and an AgentSessionConfig is a reusable layer of settings that Ringleader folds into sessions.
- [TerminalSession and LocalTerminalSession](https://docs-stg.ringleader.dev/reference/resources/terminalsession/index.md): A TerminalSession is a named set of shells on one workstation that keep running while nothing is attached, and a LocalTerminalSession is the same on your own computer.
- [WorktreeSet](https://docs-stg.ringleader.dev/reference/resources/worktreeset/index.md): A WorktreeSet is a directory on one workstation that holds a git worktree of each of up to eight sources, all on one branch.
- [Grant](https://docs-stg.ringleader.dev/reference/resources/grant/index.md): The fields of a Grant, and the cloudconfig right that lets an admin delegate placing one workstation.
- [Roles and RoleBindings](https://docs-stg.ringleader.dev/reference/resources/roles/index.md): The built-in roles, the bindings that carry a role to a subject, and the rules of a custom organization role.
- [Policy and OrgPolicy](https://docs-stg.ringleader.dev/reference/resources/policy/index.md): Constrain what a manifest may name: which git repositories a workstation may clone, where it may connect out to, which LLM models and providers an Integration may name, which Storage an upload or a session may keep its files in, which providers a workstation may run on, whether a member's computer may store workstations, what a workstation may reach on that computer, and whether a workstation may attach a model on a member's own computer.
- [Namespace](https://docs-stg.ringleader.dev/reference/resources/namespace/index.md): The fields of a namespace, the limits you can set on it and the kinds that live outside one.
- [Organization and OrgDomain](https://docs-stg.ringleader.dev/reference/resources/organization/index.md): The fields of an organization and its domain, what their status reports, and why a domain is or is not verified.
- [ServiceAccount and IdentityProvider](https://docs-stg.ringleader.dev/reference/resources/serviceaccount/index.md): A non-human identity your CI or automation becomes, with no stored secret: it trusts an external issuer, not a password.
- [CloudServiceAccount](https://docs-stg.ringleader.dev/reference/resources/cloudserviceaccount/index.md): A CloudServiceAccount is the record Ringleader keeps of each cloud runtime identity that a CloudIdentity declares.

