Api Generator
/install api-generator
⚡ API Generator
Generate production-ready API code scaffolds from zero. REST, GraphQL, auth, tests — all in one tool.
Usage
bash scripts/apigen.sh \x3Ccommand> \x3Cresource_name> [options]
Commands
Core Generation
- rest
\x3Cname>— RESTful CRUD endpoints (Express.js) - graphql
\x3Cname>— GraphQL Type + Query + Mutation schema - swagger
\x3Cname>— OpenAPI 3.0 specification document
Utilities
- client
\x3Cname>— Python API client class - mock
\x3Cname>— Mock API server with in-memory store - auth
\x3Ctype>— Auth code (jwt/oauth/apikey) - rate-limit
\x3Ctype>— Rate limiter (token-bucket/sliding-window) - test
\x3Cname>— Jest + Supertest API test suite
Examples
bash scripts/apigen.sh rest user # RESTful user endpoints
bash scripts/apigen.sh graphql product # GraphQL product schema
bash scripts/apigen.sh auth jwt # JWT authentication
bash scripts/apigen.sh test order # Order API tests
Output
All code prints to stdout. Copy or redirect into your project files. Generated code includes full comments and can serve as a project starting point.
💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install api-generator - After installation, invoke the skill by name or use
/api-generator - Provide required inputs per the skill's parameter spec and get structured output
What is Api Generator?
API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting. It is an AI Agent Skill for Claude Code / OpenClaw, with 2324 downloads so far.
How do I install Api Generator?
Run "/install api-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Api Generator free?
Yes, Api Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Api Generator support?
Api Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Api Generator?
It is built and maintained by BytesAgain2 (@ckchzh); the current version is v2.0.0.