用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/agentuity/docs --skill agentuity-cli-cloud-apikey-create命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Display the API key for the currently authenticated user. Requires authentication. Use for managing authentication credentials
Login to the Agentuity Platform using a browser-based authentication flow. Use for managing authentication credentials
Logout of the Agentuity Cloud Platform. Use for managing authentication credentials
基于 SOC 职业分类
正在显示 SKILL.md
| name | agentuity-cli-cloud-apikey-create |
| description | Create a new API key. Requires authentication. Use for Agentuity cloud platform operations |
| version | 0.1.24 |
| license | Apache-2.0 |
| allowed-tools | Bash(agentuity:*) |
| metadata | {"command":"agentuity cloud apikey create","tags":"destructive creates-resource slow requires-auth"} |
Create a new API key
agentuity auth login--org-id or default org)agentuity cloud apikey create [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) |
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
Returns JSON object:
{
"id": "string",
"value": "string"
}
| Field | Type | Description |
|---|---|---|
id | string | the API key id |
value | string | the API key value |