# Send OpenAPI to CLI to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openapi2cli",
    "name": "OpenAPI to CLI",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/awlevin/openapi2cli",
    "canonicalUrl": "https://clawhub.ai/awlevin/openapi2cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openapi2cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openapi2cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openapi2cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T09:39:47.644Z",
      "expiresAt": "2026-05-13T09:39:47.644Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openapi2cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openapi2cli",
        "contentDisposition": "attachment; filename=\"openapi2cli-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openapi2cli"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openapi2cli"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openapi2cli",
    "downloadUrl": "https://openagent3.xyz/downloads/openapi2cli",
    "agentUrl": "https://openagent3.xyz/skills/openapi2cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openapi2cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openapi2cli/agent.md"
  }
}
```
## Documentation

### OpenAPI to CLI

Generate command-line tools from OpenAPI/Swagger specs. Perfect for AI agents that need to interact with APIs without writing curl commands.

### Quick Start

# generate a CLI from any OpenAPI spec
uvx openapi2cli generate https://api.example.com/openapi.json --output my-api

# use the generated CLI
python my-api.py users list
python my-api.py users get --id 123
python my-api.py posts create --title "Hello" --body "World"

### Features

Auto-generates CLI from OpenAPI 3.x specs
Supports auth: API keys, Bearer tokens, Basic auth
Rich help: --help on any command shows params
JSON output: Structured responses for parsing
Dry-run mode: See the request without sending

### Usage

# from URL
uvx openapi2cli generate https://api.example.com/openapi.json -o my-cli

# from local file  
uvx openapi2cli generate ./spec.yaml -o my-cli

# with base URL override
uvx openapi2cli generate ./spec.json -o my-cli --base-url https://api.prod.com

### Generated CLI

# set auth via env
export MY_CLI_API_KEY="sk-..."

# or via flag
python my-cli.py --api-key "sk-..." users list

# see available commands
python my-cli.py --help

# see command options
python my-cli.py users create --help

### Example: GitHub API

uvx openapi2cli generate https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json -o github-cli

python github-cli.py repos list --owner octocat

### Why?

AI agents work better with CLIs than raw HTTP:

Discoverable commands via --help
Tab completion friendly
No need to construct JSON payloads
Easy to chain with pipes

### Links

PyPI
GitHub
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: awlevin
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-06T09:39:47.644Z
- Expires at: 2026-05-13T09:39:47.644Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openapi2cli)
- [Send to Agent page](https://openagent3.xyz/skills/openapi2cli/agent)
- [JSON manifest](https://openagent3.xyz/skills/openapi2cli/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openapi2cli/agent.md)
- [Download page](https://openagent3.xyz/downloads/openapi2cli)