---
title: Use wp2wp.link from an AI assistant or agent
url: https://wp2wp.link/agents
language: en
updated: 2026-11-26
publisher: wp2wp.link
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language questions, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://wp2wp.link/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://wp2wp.link/agents"
---

# Use wp2wp.link from an AI assistant or agent

If a user asks you to move their WordPress site to new hosting, you can do most of the work yourself. With a shell on the old site, you run up to three WP-CLI commands. With FTP or SFTP access to the new hosting, you upload one helper file. The last steps happen in the helper's web page: you open it with a browser tool, or the user does. You need no sign-up and no API key. The service is free; please don't abuse it.

By [wp2wp.link](https://wp2wp.link/guides/about) · Updated 26 November 2026 · 4 min read

Also as plain Markdown: [/agents.md](https://wp2wp.link/agents.md)

## What to ask the user first

1. Where the site is now: on their computer (Studio, Local, XAMPP, Docker…) or already online. An online site is copied straight from host to host. The helper then needs only the old site's address.
2. Access to the old site: a shell with WP-CLI in the site's folder, or a WordPress admin login.
3. For the new hosting: the domain, an empty MySQL database (name, user, password, host) and FTP, SFTP or file-manager access to the domain's folder.
4. Their OK to the [terms](https://wp2wp.link/terms). Sites with sensitive data must not pass through our server. Move them another way, for example by export and import.

## Old site on a computer: three commands

```
wp plugin install reprint --activate
wp plugin install https://wp2wp.link/download/reprint-proxy-connector.zip --activate
wp reprint-proxy connect --proxy=https://wp2wp.link --accept-terms --background
```

The last command prints a pairing code such as `K7QM-3XDA` and keeps a connection to wp2wp.link open in the background. The computer must stay on, with the site running, until the copy is done. If the command says it can't reach the site, add `--local-base=http://127.0.0.1:PORT` (the address the local web server listens on).

## Old site already online: only Reprint

```
wp plugin install reprint --activate
```

Without a shell, the user installs **Reprint** under **Plugins → Add New**. The new hosting then copies straight from the old site. The connector plugin and the `reprint-proxy` commands are only for sites on a computer.

## New hosting: the helper file

1. Download `https://wp2wp.link/download/reprint-web.php`. Choose a long random password. Make its hash with `php -r 'echo password_hash("THE-PASSWORD", PASSWORD_DEFAULT), PHP_EOL;'` (any other bcrypt or Argon2 hash from `password_hash()` works too) and put the hash between the quotes in the line `const PASSWORD_HASH = '';`. Tell the user the password, not the hash.
2. Upload the file into the domain's folder on the new hosting (often `public_html`, `httpdocs` or `www`).
3. Open `https://the-domain/reprint-web.php` and log in with that password. The domain may still point to the old host: it then shows the old site or an error. In that case, use the new host's temporary address, or ask the user to add a hosts-file entry and open `http://the-domain/reprint-web.php` ([both ways](https://wp2wp.link/guides/preview-website-before-dns-change)). Keep the real domain as the new site's address. Enter the pairing code (for an online site: its address), tick the terms and click **Get migration token**.
4. Allow the copy on the old site. Site on a computer: run `wp reprint-proxy approve`, check that the characters it prints (the key fingerprint) are the same as in the helper, then confirm. (`--yes` approves without asking. Use it only if you created the token yourself a moment ago.) Site online: copy the token from the helper, paste it on the old site under **Tools → Reprint Server** and click **Authorize client**.
5. Back in the helper, enter the database details and click **Start migration**. When it's finished, links and images point to the new address.
6. Clean up. On the old site: `wp reprint-proxy disconnect` (online: remove the new hosting's key under **Tools → Reprint Server**). On the new hosting: delete `reprint-web.php` and the data folder the helper names at the end (usually `reprint-data`).

## No shell, only a browser?

Walk the user through the guide at [wp2wp.link/#migrate](https://wp2wp.link/#migrate). It asks the same questions and shows each click. It takes about 15 minutes of the user's time, plus the copy. The [3-minute videos](https://wp2wp.link/video) show a whole move.

## Search this site

`GET https://wp2wp.link/.well-known/search?q=…` returns the sections of this site that best answer a question, in Markdown, with links. Keywords and whole questions both work, in all six languages. The HTTP `QUERY` method with the question as the body works too; add `Accept: application/json` for JSON.

## Rules

- Use the database and FTP passwords only for this move. Don't store them.
- Reprint reads the old site's whole database and files and changes none of its content. The plugins only store their own settings and the new hosting's key.
- The new site's database must be empty.
- From a computer: up to 50 GB of transfer per move. Host to host: no limit.
