简介
支持 500+ 航空公司航班搜索与 USDC 链上支付,无需银行账户即可预订全球机票,为加密原生用户打造无缝旅行体验。
原始描述
Search and book real flights with USDC payments. Gives your AI agent the power to find flights across 500 airlines and complete bookings paid in USDC on Base. No credit cards, no banks — crypto-native travel commerce.
通过你的 Agent 添加
安装目录:cabin/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: cabin
description: Search and book real flights with USDC payments. Gives your AI agent the power to find flights across 500+ airlines and complete bookings paid in USDC on Base. No credit cards, no banks — crypto-native travel commerce.
metadata: {"clawdbot":{"emoji":"✈️","homepage":"https://github.com/yolo-maxi/cabin","requires":{"bins":["node"]}}}
Cabin — Flight Search & Booking with USDC
Search real flights across 500+ airlines and book with USDC on Base.
API Base URL
https://api.cabin.team
Endpoints
Search Flights
When the user wants to find flights:
curl -X POST https://api.cabin.team/v1/search \
-H "Content-Type: application/json" \
-d '{
"from": "HAN",
"to": "ATH",
"date": "2026-03-15",
"return_date": "2026-03-22",
"adults": 1,
"class": "ECONOMY",
"currency": "USD",
"max_results": 5
}'
Parameters:
from(required): Origin IATA airport codeto(required): Destination IATA airport codedate(required): Departure date (YYYY-MM-DD)return_date(optional): Return date for round-tripadults(optional, default 1): Number of passengersclass(optional): ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRSTcurrency(optional, default USD): Currency for pricesmax_results(optional, default 10): Maximum results
Response includes:
results[]— Array of flight offers with prices, airlines, times, stopsimage_url— URL to a rendered PNG comparison image of resultssearch_id— ID to reference when booking
Presenting results to users:
- Show the rendered image (fetch from image_url) for visual comparison
- Use structured data for specific questions ("which is cheapest?", "any direct flights?")
- Always show price in both USD and USDC equivalent
Book a Flight
When the user wants to book:
curl -X POST https://api.cabin.team/v1/book \
-H "Content-Type: application/json" \
-d '{
"offer_id": "offer_1",
"search_id": "abc123",
"passengers": [{
"type": "adult",
"given_name": "John",
"family_name": "Doe",
"email": "john@example.com",
"born_on": "1990-01-15",
"gender": "m"
}]
}'
Required passenger info:
- given_name, family_name
- born_on (YYYY-MM-DD)
- gender (m/f)
Response includes:
booking_id— Cabin booking reference (CBN-YYYY-XXXX)amount_usdc— Amount to pay in USDCpayment.deposit_address— USDC deposit address on Basepayment.checkout_url— Payment page URL to share with user
USDC Payment Flow
After booking, the user needs to pay in USDC on Base:
- Show the user the
amount_usdcandpayment.checkout_url - User can either:
a. Send USDC directly to
payment.deposit_addresson Base b. Visitcheckout_urlfor a guided payment experience - After payment, booking is confirmed automatically
If the agent has wallet capabilities (e.g., evm-wallet skill):
# Check USDC balance on Base
node src/balance.js base --json
# Send USDC to deposit address
node src/send.js base USDC <deposit_address> <amount_usdc> --yes --json
Check Booking Status
curl https://api.cabin.team/v1/booking/CBN-2026-XXXX
curl https://api.cabin.team/v1/booking/CBN-2026-XXXX
Statuses: awaiting_payment → confirmed → checked_in
Get Confirmation Page
https://api.cabin.team/v1/booking/CBN-2026-XXXX/confirmation
https://api.cabin.team/v1/booking/CBN-2026-XXXX/confirmation
Share this URL with the user after payment confirmation.
Get Check-in Page
https://api.cabin.team/v1/booking/CBN-2026-XXXX/checkin
https://api.cabin.team/v1/booking/CBN-2026-XXXX/checkin
Share when it's time to check in for the flight.
Common IATA Codes
Code
City
HAN
Hanoi
BKK
Bangkok
SIN
Singapore
NRT
Tokyo Narita
HND
Tokyo Haneda
ICN
Seoul
LHR
London
CDG
Paris
FCO
Rome
ATH
Athens
JFK
New York
LAX
Los Angeles
SFO
San Francisco
DXB
Dubai
IST
Istanbul
Workflow Examples
Simple one-way search
| Code | City |
|---|---|
| HAN | Hanoi |
| BKK | Bangkok |
| SIN | Singapore |
| NRT | Tokyo Narita |
| HND | Tokyo Haneda |
| ICN | Seoul |
| LHR | London |
| CDG | Paris |
| FCO | Rome |
| ATH | Athens |
| JFK | New York |
| LAX | Los Angeles |
| SFO | San Francisco |
| DXB | Dubai |
| IST | Istanbul |
Simple one-way search
User: "Find me a flight from Bangkok to Tokyo next Friday"
- Parse: from=BKK, to=NRT (or HND), date=next Friday
- Call POST /v1/search
- Show image_url to user
- Present top 3-5 options with prices
Round-trip booking
User: "Book the cheapest round-trip from London to Barcelona, March 15-22"
- Search: from=LHR, to=BCN, date=2026-03-15, return_date=2026-03-22
- Present options
- User picks one → collect passenger details
- POST /v1/book with passenger info
- Share payment URL → user pays in USDC
- Confirm booking → share confirmation page
Multi-passenger
User: "We need flights for 3 people, Seoul to Bali, April 1-10"
- Search with adults=3
- Prices shown are per-person
- When booking, collect details for all 3 passengers
- Total USDC amount = per-person × 3
Error Handling
- No results: Try nearby airports or different dates
- Booking expired: Search results expire after 30 minutes, search again
- Payment timeout: Bookings expire 1 hour after creation if unpaid
- Invalid airport code: Suggest the correct IATA code
USDC on Base
- Chain: Base (Ethereum L2)
- Token: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
- Gas fees: ~$0.01 per transaction
- Confirmation: ~2 seconds
- Chain: Base (Ethereum L2)
- Token: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
- Gas fees: ~$0.01 per transaction
- Confirmation: ~2 seconds
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。