Just tell your agent where you want to go. Add the Wego skill to your AI agent and it plans the flights and hotels with you, start to finish. It searches and compares; you review and book on Wego.
Give your agent this line
Install the Wego CLI by running: curl -fsSL https://docs.wego.com/cli/install | bash. Then read and follow https://docs.wego.com/skills/agent-onboarding/SKILL.mdPaste it into your AI agent (Claude Code, ChatGPT, or any agent you already use). It installs the CLI with your OK, then reads the setup doc and finishes on its own. The install command is spelled out in the line you paste on purpose: an agent’s permission gate can treat your own paste as consent to run it, where a command it discovered inside a fetched page does not clear that bar.
How it works
- Paste the line into your agent. Claude Code, ChatGPT, or any agent you already use.
- It sets itself up. The agent installs the CLI (with your OK) and logs you in through your browser. No API key to paste; the browser login stores a credential locally for you.
- Ask for any trip. However you say it. It searches and compares flights and hotels, then hands you a Wego link to review and book.
What you can ask for
- Cheapest nonstop from Jakarta to Bangkok in March
- Business class to London, cheapest fare this month
- Refundable 4-star in Dubai Marina under $250 a night
- 3 nights in Bali for two, flights from KL and a beach hotel
The commands it runs
Prefer to set up by hand? The installer brings the skill with the CLI, so it is two steps:
# 1. Install the CLI and the agent skill together
curl -fsSL https://docs.wego.com/cli/install | bash
# 2. Log in once (opens your browser, stores the token locally)
wego loginPiped into bash the installer takes the skill step without asking. Set WEGO_CLI_INSTALL_SKILL=0 first to skip it, and add it later with wego skill install. wego skill path prints where it landed.
Then ask for any trip, or drive it yourself with Wego CLI. For the HTTP contract, see the API Reference.