3-Step WordPress llms.txt Setup Without Extra Plugins
You do not need another bloated WordPress plugin to publish a valid /llms.txt file. Because WordPress already generates a native XML sitemap, you can convert your highest-signal pages locally in seconds and upload a static text file to your root folder.
Step 1: Export Your WordPress Sitemap
Open https://yourdomain.com/wp-sitemap.xml (or /post-sitemap.xml / /page-sitemap.xml if you use Yoast SEO or Rank Math) and copy the XML content.
Step 2: Import, Curate & Trim to Under 4,000 Tokens
Click Import sitemap.xml in the editor above. Remove thin archive or tag URLs and keep your pillar guides, product pages, and documentation links under the 4,000-token sweet spot.
Step 3: Upload to public_html/llms.txt
Download llms.txt and upload it via cPanel File Manager or SFTP into your WordPress root directory right next to wp-config.php and robots.txt.