ts_create_key
Create a new authentication key for your Tailscale tailnet. Configure key reuse, device ephemerality, preauthorization, tags, and expiration.
Instructions
Create a new auth key. Requires TAILSCALE_WRITE_ENABLED=true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ts_create_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Description for the auth key | |
| reusable | No | Allow key to be used multiple times | |
| ephemeral | No | Devices using this key are ephemeral (auto-removed) | |
| preauthorized | No | Devices are pre-approved (no manual auth needed) | |
| tags | No | ACL tags for devices using this key | |
| expiry_seconds | No | Key lifetime in seconds (default 86400 = 24h) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |