# kosa8 agent token create

Mint an identity and print its token, once

## Usage

```
kosa8 agent token create NAME
```

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--owner` | string | person accountable for the agent, "Name <email>" (default: your kosa8 identity) |  |
| `--scope` | string | MCP policy scope the agent acts in (default: the policy's default_scope) |  |
| `--ttl` | duration | how long the token works, e.g. 8h (at most 8760h) | `24h0m0s` |

## Example

```
  kosa8 agent token create ci-bot
  kosa8 agent token create ci-bot --owner ada@example.com --scope sandbox --ttl 24h
```

---
Source: https://docs.kosa8.com/reference/agent-token-create/
