Lean API Platform
Without specs, agents hallucinate and fail 60% of the time. LAP gives them verified, agent-native API specs.
npx @lap-platform/lapsh init
npx @lap-platform/lapsh init --target cursor
npx @lap-platform/lapsh init --target codex
Agents guess endpoints from memory. The remarkable thing isn't that they fail 60% -- it's that they get 40% right while making it all up.
Existing specs are written for human developers. Handing that to an agent is like giving someone the dictionary when they asked for a phone number.
One command installs a verified, agent-native spec. 10x smaller. 35% cheaper. As reliable as a traditional human-readable API.
500 benchmark runs across 50 APIs. Full report →
$ npx @lap-platform/lapsh init
$ npx @lap-platform/lapsh init --target cursor
$ npx @lap-platform/lapsh init --target codex
Install from ClawHub →
"Integrate Discord into the project, use LAP to fetch the spec"
LAP fetches a verified, compressed spec from the registry. Your agent gets exactly what it needs -- endpoints, auth, types -- without hallucinating.
Make your API instantly usable by AI agents worldwide. Compile, generate a skill, and publish.
$ npx @lap-platform/lapsh compile api.yaml
Turn any OpenAPI, GraphQL, or AsyncAPI spec into a structured LAP file.
$ npx @lap-platform/lapsh compile api.yaml --skill
Add auth, question routing, and execution playbooks on top of the compiled spec.
$ npx @lap-platform/lapsh publish api.lap
Share your specs and skills with + APIs already in the registry.
npm install -g @lap-platform/lapsh
pip install lapsh
Every spec in the registry is already compiled to LAP format. Search, download, and feed directly to your agent.
Typed contracts that prevent hallucination. enum(succeeded|pending|failed) means agents can't invent values. And at 10x smaller, they load fast and cost less.
# Create a Payment Intent # # A PaymentIntent guides you through the process # of collecting a payment from your customer. # We recommend that you create exactly one # PaymentIntent for each order or customer session # in your system... POST /v1/payment_intents # Parameters: # amount (required) - Amount intended to be # collected. A positive integer representing # how much to charge in the smallest currency # unit (e.g., 100 cents to charge $1.00)... # currency (required) - Three-letter ISO code # payment_method_types (optional) - The list of # payment method types that this PI is allowed # to use. If not provided, defaults to...
@endpoint POST /v1/payment_intents @desc Create a payment intent @required {amount: int, currency: iso4217} @optional {payment_method_types: [str]} @returns(200) {id: str, amount: int, status: str} @errors {400, 401, 402}
| Raw API Specs | Hand-written Skills | LAP | |
|---|---|---|---|
| Accuracy | 0.399 (guessing) | Varies | 0.860 (verified) |
| Setup time | None, but agent struggles | Hours per API | One command |
| Structure | Prose-heavy, variable | Custom per author | Consistent, typed |
| Scalability | Copy-paste per API | Manual per API | APIs ready |
| Auth handling | Implicit | Manual | Declarative |
| Agent readability | Low | Varies | Optimized |
| Maintenance | Specs drift | Manual updates | Re-compile anytime |
Skills wrap a LAP spec with auth setup, question routing, and execution playbooks. Your agent gets everything it needs to call any API, out of the box.
npx @lap-platform/lapsh compile stripe-com --skill
@skill stripe-com @version 2024-12-01 @auth type: bearer header: Authorization env: STRIPE_API_KEY @questions "charge a customer" -> POST /v1/payment_intents "list all subscriptions" -> GET /v1/subscriptions "refund a payment" -> POST /v1/refunds @hints Amounts are in cents (e.g., $10.00 = 1000) Currency uses ISO 4217 lowercase (e.g., "usd") @playbook 1. Read @auth and set up authentication 2. Match user intent to @questions 3. Look up endpoint in the LAP spec 4. Build request with @required params 5. Execute and return structured response
Declares auth type, header, and env variable. Your agent knows how to authenticate before making a single call.
Maps natural language intents to specific endpoints. No prompt engineering needed.
Step-by-step execution instructions so your agent can go from intent to API call without guessing.
Output will appear here after compiling...
lap compile on your spec to generate a LAP file, then publish it to the registry so agents can discover your API.lap-platform/claude-marketplace, ask your agent to browse the registry, or download and point to any spec directly.