# Send Variflight to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "variflight",
    "name": "Variflight",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lyz1990/variflight",
    "canonicalUrl": "https://clawhub.ai/lyz1990/variflight",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/variflight",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=variflight",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/flight.sh",
      "scripts/flights.sh",
      "scripts/happiness.sh",
      "scripts/price.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "variflight",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T13:26:13.511Z",
      "expiresAt": "2026-05-17T13:26:13.511Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=variflight",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=variflight",
        "contentDisposition": "attachment; filename=\"variflight-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "variflight"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/variflight"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/variflight",
    "downloadUrl": "https://openagent3.xyz/downloads/variflight",
    "agentUrl": "https://openagent3.xyz/skills/variflight/agent",
    "manifestUrl": "https://openagent3.xyz/skills/variflight/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/variflight/agent.md"
  }
}
```
## Documentation

### Variflight HTTP API Tool

Official Variflight Agent Skills enabling AI assistants to retrieve flight and railway data via zero-dependency tools.

### API Endpoint

Base URL: https://ai.variflight.com/api/v1/mcp/data
Method: POST
Header: X-VARIFLIGHT-KEY: your_api_key
Content-Type: application/json

### Configuration

支持多种配置方式（按优先级排序）：

### 1. 环境变量（推荐用于 CI/CD）

export VARIFLIGHT_API_KEY="sk-xxxxxxxxxxxxxxxx"

### 2. 配置文件

按以下顺序查找（找到即停止）：

./.variflight.json（项目级配置）
~/.variflight.json（用户级配置）
~/.config/variflight/config.json（XDG 标准）

配置格式：

{
  "api_key": "sk-xxxxxxxxxxxxxxxx"
}

### 3. 命令行参数

./flights.sh --api-key sk-xxxx PEK SHA 2025-02-15

### Installation

# 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

### Get API Key

Visit https://ai.variflight.com

### Setup

方式一：环境变量

export VARIFLIGHT_API_KEY="sk-xxxxxxxxxxxxxxxx"

方式二：配置文件

echo '{"api_key": "sk-xxxxxxxxxxxxxxxx"}' > ~/.variflight.json

### Usage

# 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

### Available Endpoints

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

### Common Airport Codes

CityAirportCode北京首都机场PEK北京大兴机场PKX上海虹桥机场SHA上海浦东机场PVG广州白云机场CAN深圳宝安机场SZX成都双流机场CTU杭州萧山机场HGH合肥新桥机场HFE西安咸阳机场XIY

### Response Format

{
  "code": 200,
  "message": "Success",
  "data": { ... }
}

### Error Handling

401 - Invalid API key
400 - Bad request
500 - Server error

### OpenClaw (特别支持)

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

### Claude Code / Cursor

Add to your settings:

{
  "variflight_api_key": "sk-xxxxxxxxxxxxxxxx"
}

Or set environment variable in your shell config:

export VARIFLIGHT_API_KEY="sk-xxxxxxxxxxxxxxxx"

### GitHub Actions

- name: Setup Variflight
  env:
    VARIFLIGHT_API_KEY: ${{ secrets.VARIFLIGHT_API_KEY }}
  run: |
    ./scripts/flights.sh PEK SHA 2025-02-15

### Docker

ENV VARIFLIGHT_API_KEY=sk-xxxxxxxxxxxxxxxx
COPY scripts/ /app/scripts/

### Links

Variflight AI: https://ai.variflight.com
ClawHub: https://clawhub.com
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lyz1990
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T13:26:13.511Z
- Expires at: 2026-05-17T13:26:13.511Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/variflight)
- [Send to Agent page](https://openagent3.xyz/skills/variflight/agent)
- [JSON manifest](https://openagent3.xyz/skills/variflight/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/variflight/agent.md)
- [Download page](https://openagent3.xyz/downloads/variflight)