返回顶部
d

duffel

Search, book, and manage flights via the Duffel Flights API. Covers 300+ airlines (NDC, GDS, LCC). Use when: (1) searching for flights between cities, (2) comparing prices and fare classes, (3) booking flights, (4) checking booking status, (5) cancelling bookings, (6) viewing seat maps, (7) looking up airport/city IATA codes. Supports one-way, round-trip, multi-passenger, cabin class filtering, and nonstop preferences.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
431
下载量
0
收藏
概述
安装方式
版本历史

duffel

# Duffel Flights Search, book, and manage flights across 300+ airlines via the Duffel API. ## Setup Set `DUFFEL_TOKEN` env var with your Duffel API access token. Get one at https://app.duffel.com → Developers → Access Tokens. Test tokens (prefix `duffel_test_`) use sandbox data with unlimited balance. ## Commands ### Search flights ```bash python scripts/duffel.py search --from MIA --to LHR --date 2026-04-15 python scripts/duffel.py search --from MIA --to CDG --date 2026-03-15 --return-date 2026-03-22 --cabin business python scripts/duffel.py search --from JFK --to LAX --date 2026-05-01 --nonstop --adults 2 ``` Options: `--cabin economy|premium_economy|business|first`, `--nonstop`, `--adults N`, `--children N`, `--infants N`, `--sort price|duration`, `--max-results N`, `--json` Results are numbered. Use the number with other commands. ### View offer details ```bash python scripts/duffel.py offer 3 ``` Shows segments, baggage, fare conditions (refund/change), available extras. ### Book a flight ```bash python scripts/duffel.py book 3 --pax "RIBEIRO/FABIO MR 1977-01-31 fabio@ribei.ro +13059159687 BR m" ``` Pax format: `LAST/FIRST TITLE DOB EMAIL PHONE NATIONALITY GENDER` - TITLE: MR, MRS, MS, MISS, DR - GENDER: m or f - Multiple passengers: repeat `--pax "..."` for each Payment uses Duffel account balance. Top up at https://app.duffel.com. ### Check order status ```bash python scripts/duffel.py order ord_0000XXXXX ``` ### Cancel order ```bash python scripts/duffel.py cancel ord_0000XXXXX # Quote (shows refund amount) python scripts/duffel.py cancel ord_0000XXXXX --confirm # Execute cancellation ``` ### Seat map ```bash python scripts/duffel.py seatmap 3 ``` ### Airport/city lookup ```bash python scripts/duffel.py places "new york" ``` ## Typical workflow 1. `search` → browse numbered results 2. `offer N` → check details, baggage, conditions 3. `book N --pax "..."` → get PNR 4. `order <id>` → verify booking 5. `cancel <id>` → if needed ## Notes - Offers expire (usually ~20 min). Re-search if expired. - Test mode: unlimited balance, bookings on "Duffel Airways" (fake airline). - Production: real airlines, real tickets. Balance must be funded. - All commands support `--json` for raw API output. - Last search saved to `/tmp/duffel-last-search.json` for index reference. - For API details, see `references/api-guide.md` and `references/booking-flow.md`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 duffel-1775908088 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 duffel-1775908088 技能

通过命令行安装

skillhub install duffel-1775908088

下载 Zip 包

⬇ 下载 duffel v1.0.0

文件大小: 10.46 KB | 发布时间: 2026-4-12 09:47

v1.0.0 最新 2026-4-12 09:47
- Initial release of the Duffel skill for searching, booking, and managing flights via the Duffel Flights API.
- Supports over 300 airlines (NDC, GDS, LCC) with features including flight search, offer comparison, booking, order status, cancellation, seat maps, and airport/city code lookup.
- Allows filtering by cabin class, nonstop preference, passenger count, and trip type (one-way or round-trip).
- Includes commands for viewing fare details and managing cancellations with refund quotes.
- Provides sandbox mode for testing and production mode for real bookings.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部