Automatically generate OpenClaw skills from REST APIs.
# Generate skill from OpenAPI spec
neckr0ik-api-wrapper generate --spec https://api.example.com/openapi.json --name my-api
# Generate from URL (discovers OpenAPI)
neckr0ik-api-wrapper generate --url https://api.example.com --name my-api
# Generate from local file
neckr0ik-api-wrapper generate --spec ./openapi.yaml --name my-api
my-api/
├── SKILL.md # Skill documentation
├── claw.json # Package metadata
└── scripts/
└── api.py # Generated API client
| Type | Support | Config |
|---|---|---|
| ------ | --------- | -------- |
| API Key (header) | ✅ | --auth header:X-API-Key |
| API Key (query) | ✅ | --auth query:api_key |
| Bearer Token | ✅ | --auth bearer |
| Basic Auth | ✅ | --auth basic |
| OAuth 2.0 | ✅ | --auth oauth2 |
Generate OpenClaw skill from API spec.
neckr0ik-api-wrapper generate [options]
Options:
--spec <url> OpenAPI spec URL or file
--url <url> API base URL (discovers spec)
--name <name> Skill name (default: api name)
--output <dir> Output directory
--auth <type> Authentication type
--include <endpoints> Include specific endpoints (comma-sep)
--exclude <endpoints> Exclude specific endpoints (comma-sep)
Validate OpenAPI spec before generating.
neckr0ik-api-wrapper validate --spec <url>
Test generated skill against live API.
neckr0ik-api-wrapper test --skill ./my-api --endpoint <operationId>
# Generated from Stripe API
## Quick Start
stripe-api customers list --limit 10
stripe-api customers create --email "user@example.com"
stripe-api charges create --amount 1000 --currency usd
## Endpoints
### customers.list
List all customers.
- Method: GET
- Path: /v1/customers
- Auth: Bearer Token
### customers.create
Create a new customer.
- Method: POST
- Path: /v1/customers
- Auth: Bearer Token
- Body: email, name, metadata
references/openapi.md — OpenAPI specification guidereferences/templates/ — Skill templatesscripts/generator.py — Main generator共 1 个版本