← 返回 Skills 市场
ai4mse

FlyClaw (Flight N-in-1 Search Zero Login)

作者 AI4MSE · GitHub ↗ · v0.4.4 · MIT-0
cross-platform ⚠ suspicious
837
总下载
3
收藏
2
当前安装
12
版本数
在 OpenClaw 中安装
/install flyclaw
功能描述
Multi-source flight aggregation — tickets, nonstop, round-trip, cabin. 航班机票/零登录/零API, zero login, zero account, zero API key. Pure Python, no browser. 机票价格/航...
使用说明 (SKILL.md)

FlyClaw ✈️ - 航班信息聚合查询工具 / Flight Information Aggregation Tool

概述 / Overview

五源航班聚合查询 — 零登录、零账号、零 API Key,轻量 Python 实现。 5-source flight aggregation — zero login, zero account, zero API key. Lightweight Python, no browser automation.

基于多源聚合架构,通过开源库及免费公开 API 获取航班动态、价格、时刻、实时位置等信息。支持中英文城市名和 IATA 代码输入。

Multi-source aggregation via open-source libraries and free public APIs for flight dynamics, prices, schedules, and real-time positions. Supports Chinese/English city names and IATA codes.

GitHubhttps://github.com/AI4MSE/FlyClaw

零 API Key 依赖 / Zero API Key

无需注册任何账号或提供任何 API Key 即可使用全部核心功能。用户本地化掌控所有,程序不收集、不存储任何用户个人信息。同时规避浏览器模拟等复杂、不可靠和低效问题。

No registration or API key required. All data stays local — no personal data collected or stored. No browser automation overhead.

触发方式 / Trigger

用户说"查航班 CA981"、"上海飞纽约多少钱"、"PVG 到 JFK 明天的航班"、"往返机票 上海到新加坡"、"商务舱 北京到伦敦"、"所有航班包括转机"、"直飞" 等即可自动执行。默认查询行为是直飞+经济舱。

Trigger when user says "query flight CA981", "flights from Shanghai to New York", "round-trip PVG to SIN", "business class Beijing to London", "nonstop flights", "all flights including connecting", etc. Default behavior is nonstop + economy.

智能转换规则 / Smart Conversion Rules

  • 用户说"所有航班"/"包括转机"/"包括非直飞" → --stops any
  • 用户说"直飞"/"不要转机" → --stops 0(默认)
  • 用户说"最多一次中转" → --stops 1
  • 用户说"最多两次中转" → --stops 2
  • 用户说"中转不超过 N 小时" → --layover-max-hours N

数据来源 / Data Sources

  • 飞猪 (Fliggy):国内外航班价格(中国国内覆盖最全,人民币计价)
  • Google Flights:国内外国际航班价格、时刻
  • Skiplagged:国内外国际航班价格、时刻
  • FlightRadar24:航班动态、实时状态、延误、机型
  • Airplanes.live / ADSB.lol:ADS-B 实时位置

多源并发查询,智能合并互补。插件式架构,支持无限扩展——每个数据源为独立模块。特别感谢以上公开数据源为公益和大众需求提供的便利!

功能 / Features

  1. 按航班号查询:查询指定航班的动态信息(状态、时刻、延误、机型等)
  2. 按航线搜索:查询两地之间的航班列表(含价格、经停、时长等)
  3. 城市级搜索:输入城市名自动搜索该城市所有机场(如"上海"→PVG+SHA)
  4. 高级搜索:往返搜索、多旅客配置、舱位选择、排序、直飞过滤
  5. 中英文输入:支持中文城市名、英文名、IATA 代码,7912 机场全覆盖

重要:输出格式与多日查询 / Output Format & Multi-Day Queries

默认输出为 JSON(stdout),直接 json.loads() 即可解析,示例:

[{"flight_number": "CA981", "price": 472.0, "origin_iata": "PVG", "destination_iata": "GVA", ...}]

无结果时返回 []。错误和日志仅输出到 stderr,不影响 JSON 解析。价格默认为人民币(CNY),每条记录含 currency 字段标注货币。可用 --currency usd 统一转换为美元,或 --currency cny(默认)。汇率可在 config.yaml 中配置(默认 7.25)。可用 -o table 切换为人类可读表格。

经停段字段:搜索结果含 segments(各段航班号/机场/时间)、layover_cities(中转城市列表)、layover_minutes(各段停留分钟数)、max_layover_minutes。直飞时 segments 长度为 1,layover_cities 为空列表。往返搜索时(飞猪/GF 来源)含 return_segmentsreturn_layover_citiesreturn_layover_minutes

多日查询:search 命令每次只查一天。查询一周最低价等场景,需拆成多个日期并发执行,分别获取 JSON 结果后自行合并比较。

调用方式 / Usage

按航班号查询

python flyclaw.py query --flight CA981

按航线搜索

python flyclaw.py search --from 上海 --to 纽约 --date 2026-04-01

往返搜索

python flyclaw.py search --from PVG --to LAX --date 2026-04-15 --return 2026-04-25

商务舱 + 2 人

python flyclaw.py search --from PVG --to JFK --date 2026-04-15 --cabin business -a 2

直飞 + 按价格排序

python flyclaw.py search --from PVG --to SIN --date 2026-04-15 --stops 0 --sort cheapest

包含经停航班

python flyclaw.py search --from PVG --to JFK --date 2026-04-15 --stops any

按日期过滤查询结果

python flyclaw.py query --flight CA981 --date 2026-04-01
python flyclaw.py query --flight CA981 --date today

关闭智能查价

默认启用智能查价,会自动在航班号查询时补充价格信息。关闭后可节约查询时间。

python flyclaw.py query --flight CA981 --no-relay

搜索参数

参数 短标志 默认值 说明
--from (必填) 出发地
--to (必填) 目的地
--date / -d 出行日期 YYYY-MM-DD
--return / -r 返程日期(启用往返搜索)
--adults / -a 1 成人旅客数
--children 0 儿童旅客数
--infants 0 婴儿旅客数
--cabin / -C economy economy/premium/business/first
--limit / -l 不限制 最大结果数(不指定则返回全部)
--sort / -s cheapest/fastest/departure/arrival
--stops 0 经停:0=直飞/1/2/any=不限
--layover-max-hours 排除最长中转超过 N 小时的航班
--currency cny 输出货币:cny/usd/original

通用参数

  • -o table:表格格式输出(默认为 JSON)
  • -v:详细模式,显示数据来源和舱位

输入示例 / Input Examples

用户说 解析为 说明
"上海" PVG + SHA 城市级:搜索所有上海机场
"PVG" PVG 精确到浦东机场
"浦东" PVG 别名精确匹配
"纽约" JFK + EWR + LGA 城市级:搜索所有纽约机场
"北京" PEK + PKX + NAY 城市级:搜索所有北京机场
"Shanghai" PVG + SHA 英文城市名同样支持

安装配置 / Installation

pip install requests pyyaml curl_cffi flights cryptography
# 注意:不要安装 mcp、fast-flights、playwright 等调试模块,会增加安装时间且普通使用不需要

文件位置:主程序 flyclaw.py,配置 config.yaml,机场缓存 cache/airports.json

依赖:Python 3.11+、requests(Apache-2.0)、pyyaml(MIT)、curl_cffi(MIT)、flights(MIT)。

安全性 / Security

  • 零 API Key 依赖:程序运行不需要用户提供任何 API Key 或注册任何账号
  • 程序不收集、不存储任何用户个人信息
  • 所有网络请求仅用于查询公开航班数据

免责声明 / Disclaimer

  • 本工具基于多源聚合架构,通过开源库及免费公开 API 获取数据
  • 仅供学习研究用途,请遵守当地法律法规
  • Google Flights 在部分地区可能不可用
  • 价格数据来自多个数据源,不同来源的价格可能存在差异(含税/不含税、舱位差异等),仅供参考

作者 / Author

公益技能,免费开源。 / Community-driven, open-source, free for everyone.

许可证 / LicenseApache-2.0

安全使用建议
What to consider before installing/running this skill: - Origin and trust: the package metadata lists a GitHub repo but 'Source' and 'Homepage' are unknown in the registry entry. Prefer installing from the upstream GitHub (verify repository and recent commits) or inspect the full source locally before running. - Network behavior: the tool performs many outbound requests to public flight-data services (FR24, Google Flights via the 'flights' library, Skiplagged, Fliggy, ADSB endpoints). This is expected for a flight-aggregator, but be aware it will contact those external services when invoked. - Local persistence: the tool saves caches (airports, route cache) to the local cache/ directory and may update those files. If you do not want any local state, run in a disposable/isolated environment (container, VM, temp Python environment) or remove cache files after use. - API keys / embedded credentials: SKILL.md claims 'zero API key', but config mentions optional API keys and comments about a 'built-in default key'. Ask the author/maintainer to confirm whether any embedded/default credentials are shipped or used at runtime. If embedded third-party keys exist, queries may be routed via accounts you do not control. - Update-from-URL feature: the CLI can download airport data from an arbitrary URL and atomically replace the airport cache if the downloaded JSON validates. Only use that feature with trusted URLs; an attacker-controlled URL could supply malformed or unexpected data (though validation is present, it still writes merged data locally). - Optional debug features: the project references optional components (MCP backend, fast-flights, playwright). Avoid enabling or installing optional debug dependencies unless you understand their behavior. - Safe execution: run the skill in an isolated environment (new virtualenv/conda env or container), inspect source files (especially source modules under sources/) before use, and consider restricting network if you want to limit remote calls. If you need high assurance, request the upstream repository link and verify there are no hidden credentials or remote upload endpoints. Summary: functionally coherent for flight aggregation, but confirm the 'zero API key' claim and the presence/absence of any built-in credentials and be mindful of local cache writes and the update-from-URL capability before installing.
功能分析
Type: OpenClaw Skill Name: flyclaw Version: 0.4.4 The FlyClaw skill bundle is a flight information aggregator that uses several unofficial and reverse-engineered APIs. It contains risky behaviors, most notably in `sources/fliggy_mcp.py`, which performs system fingerprinting by collecting the OS type, architecture, CPU count, memory tier, language, and timezone, and generates a persistent device ID stored in `cache/.device_id`. This metadata is encrypted using AES-GCM and sent to a Fliggy (Alibaba) endpoint to mimic a legitimate CLI client. Additionally, `airport_manager.py` includes an `update_from_url` function that can download and merge JSON data from a remote endpoint into the local cache. While these capabilities are likely intended to maintain API compatibility and data freshness, the collection of system-level telemetry and the remote update mechanism represent significant privacy and security risks.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description (flight aggregation from multiple public sources) aligns with included code (multiple source modules, merge/deduplication, airport cache, route cache). Declared requirements (no env vars, no required binaries) are consistent with the code being a pure-Python CLI. Optional integration points (SerpAPI, Skiplagged MCP, fliggy) are present in config as opt-in features, which is reasonable for this type of tool.
Instruction Scope
SKILL.md instructs running the CLI with standard flags and shows an explicit update-airports URL command. The runtime code will make network calls to public APIs (FR24, Airplanes.live/ADSB.lol, Google Flights via 'flights' library, Skiplagged endpoints, Fliggy), and it writes local cache files (cache/airports.json, cache/flight_routes.json). That behavior is expected, but the README/SKILL.md claim 'program does not collect, store any user personal information' is a slight mismatch: the tool will persist query-derived data (route cache and caches) to disk locally. Also update-from-URL accepts arbitrary URLs and will download and merge JSON into the local airports cache if used.
Install Mechanism
No special install mechanism in the skill bundle (instruction-only for the agent); dependencies are standard Python packages listed in requirements/pyproject. No remote binary downloads, no extract-from-arbitrary-URL install steps in the install spec. The project includes a large airports cache file bundled with the source (written to disk when used), but that is part of bundled assets, not an external install fetch.
Credentials
The skill declares no required environment variables (good), but config shows optional API keys (google_flights.serpapi_key, fliggy_mcp.api_key/sign_secret) and comments imply a 'built-in default key' may be used if fields are left empty. That raises two concerns: (1) there may be embedded/default credentials used at runtime (not clearly documented in SKILL.md), and (2) if such built-in keys exist, queries could be proxied through third-party service accounts the user does not control. The SKILL.md/README promise 'zero API key' but the code supports/mentions API keys and MCP endpoints—this inconsistency should be clarified by the author.
Persistence & Privilege
Skill does not request platform-wide privileges and is not 'always: true'. However it writes and updates local cache files (cache/airports.json, cache/flight_routes.json) and can atomically replace airport cache via update_from_url. These are expected for a local CLI but mean the skill will persist query results to the user's filesystem by default. If you care about local data persistence or want ephemeral runs, run in an isolated environment or delete cache files after use.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flyclaw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flyclaw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.4.4
- Added Chinese demo and installation instruction images in the "img" directory. - Enhanced search results with new layover details - Updated pip install instructions to require `cryptography` in addition to previous dependencies. - Updated documentation for new features and improved parameter explanations.
v0.4.1
- Added Fliggy (飞猪) as a new data source for domestic and international flight prices in CNY. - Updated default currency to CNY, with unified `currency` parameter for CNY/USD conversion. - Updated documentation to reflect support for 5 data sources and new currency options. - License file added for clear open-source compliance.
v0.3.3
- Updated the skill description for improved clarity and conciseness. - No code changes were made in this release.
v0.3.2
- Simplified and condensed the skill description and documentation for improved clarity. - Added more prominent English language support and bilingual section headings. - Reformatted and streamlined usage instructions and feature lists. - No file or functional code changes; documentation only.
v0.3.1
- Updated to version 0.3.1 - Enhanced description with multilingual tags and clarified zero API key dependency - fix sk relay issues
v0.2.12
fix currency issue for ai
v0.2.11
add more explantion in skill
v0.2.10
fix json output bug 2
v0.2.9
fix json output bug
v0.2.8
add stability + fix bugs version error
v0.2.7
add stability + fix bugs
v0.0.6
Initial release
元数据
Slug flyclaw
版本 0.4.4
许可证 MIT-0
累计安装 3
当前安装数 2
历史版本数 12
常见问题

FlyClaw (Flight N-in-1 Search Zero Login) 是什么?

Multi-source flight aggregation — tickets, nonstop, round-trip, cabin. 航班机票/零登录/零API, zero login, zero account, zero API key. Pure Python, no browser. 机票价格/航... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 837 次。

如何安装 FlyClaw (Flight N-in-1 Search Zero Login)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install flyclaw」即可一键安装,无需额外配置。

FlyClaw (Flight N-in-1 Search Zero Login) 是免费的吗?

是的,FlyClaw (Flight N-in-1 Search Zero Login) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

FlyClaw (Flight N-in-1 Search Zero Login) 支持哪些平台?

FlyClaw (Flight N-in-1 Search Zero Login) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 FlyClaw (Flight N-in-1 Search Zero Login)?

由 AI4MSE(@ai4mse)开发并维护,当前版本 v0.4.4。

💬 留言讨论