Source:
examples/agent-travelOverview
The travel agent finds the cheapest flights between airports worldwide using real-time pricing data from the Skyscanner API. It demonstrates a custom server setup with dual payment support — both x402 crypto micropayments and Stripe for traditional payments.Project Structure
Skills
| Skill | Description |
|---|---|
| Cheapest Flight Search | Search for the cheapest flights with support for multiple departures and destinations |
Configuration
Key Features
- Multiple departure airports — Compare prices from several origin airports
- Worldwide destinations — Search flights to any destination
- Real-time pricing — Live data from Skyscanner API
- Dual payments — Supports both x402 crypto and Stripe
- Custom server — Uses
app/server.tsfor manual endpoint control
Payment
The agent charges$0.01 per request via x402. Environment variables X402_PAY_TO and X402_NETWORK configure the payment destination.
Environment Variables
| Variable | Description |
|---|---|
OPENAI_API_KEY | OpenAI API key |
X402_PAY_TO | Payment destination address |
X402_NETWORK | Payment network (e.g., eip155:84532) |