OpenClaw Setup

Install the api2cli skill in OpenClaw via ClawHub. One prompt to set up everything.

Install api2cli in OpenClaw so the agent can wrap any REST API into a CLI on demand.

One-Prompt Setup

Copy this and paste it into your OpenClaw agent:

Set up api2cli for me:

1. Install bun if missing: bun --version || curl -fsSL https://bun.sh/install | bash
2. Install api2cli: npm i -g api2cli
3. Install the api2cli skill from ClawHub: npx clawhub install api2cli
4. Link the skill to OpenClaw: npx api2cli link --all --openclaw
5. Verify: npx api2cli --help

Once installed, I can ask you to:
- Create a CLI for any API: "Use api2cli to create CLI for <api-name>"
- Install an existing CLI: "npx api2cli install <name>"
- Browse available CLIs: "npx api2cli list" or check https://api2cli.dev

That's it. The agent now has the api2cli skill and can create or install CLIs whenever you need one.

What Happens After Setup

Once the skill is installed, just ask your OpenClaw agent in natural language:

  • "Create a CLI for the Notion API"
  • "Install the typefully CLI"
  • "Wrap the Stripe API into a CLI"

The agent reads the SKILL.md, discovers the API, generates resources, builds the CLI, and links it to your PATH. All CLIs follow the same pattern (<app>-cli <resource> <action> --json), so the agent learns once and scales to every API.

Install via ClawHub Directly

If you prefer to install manually:

npx clawhub install api2cli

Publish Your Own CLI to ClawHub

After creating a CLI with api2cli, publish it so other OpenClaw users can install it:

npx clawhub login
npx clawhub publish ./skills/<app>-cli --slug <app>-cli

Users install with npx clawhub install <app>-cli.

Sponsors