# kosa8 agent token

Give an agent an identity the daemon can check

An agent identity is a name, an MCP policy scope and a token. Give the token
to the agent's gateway (`KOSA8_AGENT_TOKEN=… kosa8 mcp serve`): every action it takes
is then recorded under that identity, and the tools it may call are decided
in that identity's scope rather than the policy's default.

## Example

```
  kosa8 agent token create ci-bot --ttl 24h
  kosa8 agent token ls
  kosa8 agent token revoke ci-bot
```

## Subcommands

- [`kosa8 agent token create`](https://docs.kosa8.com/reference/agent-token-create.md): Mint an identity and print its token, once
- [`kosa8 agent token ls`](https://docs.kosa8.com/reference/agent-token-ls.md): List agent identities
- [`kosa8 agent token revoke`](https://docs.kosa8.com/reference/agent-token-revoke.md): End an agent identity at once

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