---
title: "Agent setup"
description: "Give your agent the whole trip. Add the Wego skill and let your AI agent plan your travel, flights and hotels, just by asking."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.wego.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent setup

import { Code } from "astro:components";
import { siteEnv } from "@/site-env";

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

Paste it into your AI agent (Claude Code, ChatGPT, or any agent you already use). That URL is this page as plain markdown: the agent reads it and sets itself up.

## How it works

1. **Paste the line into your agent.** Claude Code, ChatGPT, or any agent you already use.
2. **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.
3. **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? Run the same steps the agent does:

Then ask for any trip, or drive it yourself with [Wego CLI](/cli). For the HTTP contract, see the [API Reference](/api).

Source: https://docs.wego.com/agent-setup/index.mdx
