ワンクリックで
spec2cli-auth
Configure authentication: inline flags, env vars, persistent profiles
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Configure authentication: inline flags, env vars, persistent profiles
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Step-by-step workflow to explore and test an unfamiliar API
Test full CRUD cycle (Create, Read, Update, Delete) on any API resource
Core spec2cli usage: load specs, run commands, format output
Use built-in API templates, search, and manage custom APIs
SOC 職業分類に基づく
| name | spec2cli-auth |
| version | 1.0.0 |
| description | Configure authentication: inline flags, env vars, persistent profiles |
| metadata | {"openclaw":{"category":"tool","domain":"api","requires":{"bins":["spec2cli"],"skills":["spec2cli-basics"]}}} |
spec2cli detects auth requirements from the OpenAPI spec and supports multiple auth methods.
# Bearer token
spec2cli --spec api.yaml --token sk-123 pets create --name Rex
# API key
spec2cli --spec api.yaml --api-key my-key store inventory
Set the env var and spec2cli picks it up automatically:
export API_TOKEN=sk-123
spec2cli --spec api.yaml pets create --name Rex
For registry templates, each API has a specific env var:
| API | Env var |
|---|---|
| github | GITHUB_TOKEN |
| openai | OPENAI_API_KEY |
| stripe | STRIPE_SECRET_KEY |
| cloudflare | CLOUDFLARE_API_TOKEN |
| digitalocean | DIGITALOCEAN_TOKEN |
Save credentials locally so you don't need flags or env vars:
# Save default profile
spec2cli auth login --token sk-prod-key
# Save named profile
spec2cli auth login --api-key staging-key --profile staging
# Check what's saved
spec2cli auth status
# Remove
spec2cli auth logout
spec2cli auth logout --profile staging
Profiles are stored in ~/.config/spec2cli/auth.json. Tokens are masked in auth status output.
--token, --api-key)$API_TOKEN, $GITHUB_TOKEN, etc.)spec2cli auth login)--agent-help to see what auth each command needssecuritySchemes--profile to switch between production and staging