# kosa8 cloud tokens

Short-lived capability tokens for your own users, limited to some sandboxes

A capability token (k8c_tok_…) is a bearer token for a platform that hands a
sandbox to its own end user (a browser terminal, a student's notebook, a
customer's agent) without handing over its API key. It holds some of
sandboxes:read, sandboxes:write and functions:invoke, can be limited to some
sandboxes or labels, lives at most 24 hours, and stops when the key that made
it is revoked. It cannot make tokens or keys.

Also known as: `token`

## Example

```
  kosa8 cloud tokens create --scope sandboxes:write --sandbox sbx_abc --ttl 30m
  kosa8 cloud tokens create --scope sandboxes:read --label student=ada -q
  kosa8 cloud tokens ls
  kosa8 cloud tokens revoke tok_abc
```

## Subcommands

- [`kosa8 cloud tokens create`](https://docs.kosa8.com/reference/cloud-tokens-create.md): Make a capability token; its secret is shown once
- [`kosa8 cloud tokens ls`](https://docs.kosa8.com/reference/cloud-tokens-ls.md): List live capability tokens (never their secrets)
- [`kosa8 cloud tokens revoke`](https://docs.kosa8.com/reference/cloud-tokens-revoke.md): Revoke capability tokens; they stop working at once

---
Source: https://docs.kosa8.com/reference/cloud-tokens/
