Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Query flight information, train tickets, and travel data using Variflight (飞常准) HTTP API. Use when the user needs to (1) search flights by route or flight number, (2) check flight status and punctuality, (3) find train tickets, (4) get airport weather forecasts, (5) check flight prices, (6) plan multi-modal trips (flight+train), or (7) get flight comfort metrics (happiness index).
Query flight information, train tickets, and travel data using Variflight (飞常准) HTTP API. Use when the user needs to (1) search flights by route or flight number, (2) check flight status and punctuality, (3) find train tickets, (4) get airport weather forecasts, (5) check flight prices, (6) plan multi-modal trips (flight+train), or (7) get flight comfort metrics (happiness index).
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
Official Variflight Agent Skills enabling AI assistants to retrieve flight and railway data via zero-dependency tools.
Base URL: https://ai.variflight.com/api/v1/mcp/data Method: POST Header: X-VARIFLIGHT-KEY: your_api_key Content-Type: application/json
支持多种配置方式(按优先级排序):
export VARIFLIGHT_API_KEY="sk-xxxxxxxxxxxxxxxx"
按以下顺序查找(找到即停止): ./.variflight.json(项目级配置) ~/.variflight.json(用户级配置) ~/.config/variflight/config.json(XDG 标准) 配置格式: { "api_key": "sk-xxxxxxxxxxxxxxxx" }
./flights.sh --api-key sk-xxxx PEK SHA 2025-02-15
# Clone or copy the skill git clone https://github.com/variflight-ai/variflight-skill.git # Or copy to your project cp -r variflight-skill/scripts ./scripts
Visit https://ai.variflight.com
方式一:环境变量 export VARIFLIGHT_API_KEY="sk-xxxxxxxxxxxxxxxx" 方式二:配置文件 echo '{"api_key": "sk-xxxxxxxxxxxxxxxx"}' > ~/.variflight.json
# Search flights ./scripts/flights.sh PEK SHA 2025-02-15 # Search by flight number ./scripts/flight.sh MU2157 2025-02-15 # Search train tickets ./scripts/train.sh "上海" "合肥" 2025-02-15 # Airport weather ./scripts/weather.sh PEK # With explicit API key ./scripts/flights.sh --api-key sk-xxxx PEK SHA 2025-02-15
EndpointDescriptionParametersflightsSearch by departure/arrivaldep, arr, date, depcity, arrcityflightSearch by flight numberfnum, date, dep, arrtransferFlight transfer infodepcity, arrcity, depdatehappinessFlight comfort indexfnum, date, dep, arrrealtimeLocationAircraft locationanumfutureAirportWeatherAirport weathercode, type="1"searchFlightItinerariesFlight itinerariesdepCityCode, arrCityCode, depDatetrainStanTicketTrain ticketscdep, carr, datesearchTrainStationsTrain stationsquerygetFlightPriceByCitiesFlight pricesdep_city, arr_city, dep_date
CityAirportCode北京首都机场PEK北京大兴机场PKX上海虹桥机场SHA上海浦东机场PVG广州白云机场CAN深圳宝安机场SZX成都双流机场CTU杭州萧山机场HGH合肥新桥机场HFE西安咸阳机场XIY
{ "code": 200, "message": "Success", "data": { ... } }
401 - Invalid API key 400 - Bad request 500 - Server error
OpenClaw 会自动识别并加载本 skill。 安装: # 通过 ClawHub 安装 openclaw skill install variflight # 或手动安装 cp -r variflight-skill ~/.openclaw/workspace/skills/variflight 配置: # OpenClaw 专用环境文件 echo 'VARIFLIGHT_API_KEY=sk-xxxx' > ~/.openclaw/workspace/.env.variflight # 或使用通用配置 echo '{"api_key": "sk-xxxx"}' > ~/.variflight.json 使用: ./skills/variflight/scripts/flights.sh PEK SHA 2025-02-15 ./skills/variflight/scripts/train.sh "上海" "合肥" 2025-02-15
Add to your settings: { "variflight_api_key": "sk-xxxxxxxxxxxxxxxx" } Or set environment variable in your shell config: export VARIFLIGHT_API_KEY="sk-xxxxxxxxxxxxxxxx"
ENV VARIFLIGHT_API_KEY=sk-xxxxxxxxxxxxxxxx COPY scripts/ /app/scripts/
Variflight AI: https://ai.variflight.com ClawHub: https://clawhub.com
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.