tailscale_key_create
Generate auth keys for Tailscale tailnet with configurable tags, reuse, expiry, and ephemeral settings. Devices can be preauthorized or authorized on first connect.
Instructions
Create a new auth key for the tailnet. Returns the key value — store it securely as it cannot be retrieved again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ACL tags to apply to devices that use this key (e.g., ['tag:server']) | |
| reusable | No | Whether the key can be used multiple times (default: false) | |
| ephemeral | No | Whether devices using this key are removed when they disconnect (default: false) | |
| description | No | Human-readable description for the key | |
| expirySeconds | No | Key expiry in seconds from now (optional, omit for default expiry) | |
| preauthorized | No | Whether devices using this key are automatically authorized (default: false) |