agentuity-cli-cloud-apikey-create
Create a new API key. Requires authentication. Use for Agentuity cloud platform operations
When & Why to Use This Skill
This Claude skill enables the automated creation and management of API keys for the Agentuity cloud platform. It streamlines DevOps workflows by allowing users to programmatically generate secure access credentials with customizable metadata, such as names and expiration dates (ISO 8601 or durations), ensuring secure and scalable platform operations.
Use Cases
- Automated CI/CD Integration: Programmatically generate temporary API keys for build pipelines or automated testing environments to ensure secure access to cloud resources.
- Security Compliance and Key Rotation: Facilitate regular security audits and credential rotation by creating new keys with specific expiration dates (e.g., 30 days or 1 year) via CLI or agent automation.
- Dynamic Resource Provisioning: Enable AI agents to self-manage access credentials for specific organization contexts, allowing for more autonomous and secure multi-tenant operations.
| name | agentuity-cli-cloud-apikey-create |
|---|---|
| description | Create a new API key. Requires authentication. Use for Agentuity cloud platform operations |
| version | "0.0.103" |
| license | Apache-2.0 |
| allowed-tools | "Bash(agentuity:*)" |
| command | "agentuity cloud apikey create" |
| tags | "destructive creates-resource slow requires-auth" |
Cloud Apikey Create
Create a new API key
Prerequisites
- Authenticated with
agentuity auth login - Organization context required (
--org-idor default org)
Usage
agentuity cloud apikey create [options]
Options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
--name |
string | Yes | - | the name for the API key |
--expires-at |
string | Yes | - | expiration date as ISO 8601 (2025-12-31T23:59:59Z) or duration (1h, 2d, 30d, 1y) |
--confirm |
boolean | Yes | - | Skip confirmation prompts (required for non-TTY) |
Examples
Create API key with 1 year expiration:
bunx @agentuity/cli cloud apikey create --name "My API Key" --expires-at 1y
Create API key with 30 day expiration:
bunx @agentuity/cli cloud apikey create --name "Short-lived Key" --expires-at 30d
Create API key with specific date and skip confirmation:
bunx @agentuity/cli cloud apikey create --name "Production Key" --expires-at 2026-01-01T00:00:00Z --confirm
Output
Returns JSON object:
{
"id": "string",
"value": "string"
}
| Field | Type | Description |
|---|---|---|
id |
string | the API key id |
value |
string | the API key value |