Choose the right way for an agent to work with a WordPress installation you already have.
Use a local WordPress site when you want a safe editing target or development review. Do not choose it merely because your agent found WordPress files nearby; decide together where the work should happen.
Local WordPress
Before your agent connects a local site, make sure:
WordPress is running locally
you can log in as an administrator
the site is safe to change
The agent can check whether a folder looks like WordPress, then ask whether you want to use a Miles design sandbox, this local installation, or a different remote site. When you choose local, it can help install and connect the Miles plugin. If WordPress needs manual activation, it should give you the right WordPress admin links and wait for you to finish the step.
Remote WordPress
For a remote site, install and pair the Miles plugin through WordPress. Your agent should not try to install or configure a remote WordPress site through files on your computer.Use Editing a Site to choose the correct existing-site workflow before changing pages, sections, or functionality.
Good requests
Check this local WordPress site and tell me whether it is ready to use with Miles.Do not change anything until I choose this site as the place to work.
Use Miles with my local WordPress site to create a draft Services page.Keep it unpublished and ask me before changing any existing pages.
Watch for connection limits
Some local URLs, browser sessions, security settings, or WordPress configuration can block access. If Miles cannot reach the site, ask the agent to show the exact connection error and what it needs from you.
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Miles Docs","description":"Miles is an AI agent built specifically for WordPress. You can use Miles inside WordPress, start fresh in a Miles design sandbox, or connect it to a coding agent like Claude, Codex, Cursor, or OpenCode.","colors":{"primary":"#C4A882","light":"#C4A882","dark":"#C4A882"},"logo":{"light":"https://mintcdn.com/bymiles/t9YAMBFoVNNNG8N2/images/brand/miles-logo.png?fit=max\u0026auto=format\u0026n=t9YAMBFoVNNNG8N2\u0026q=85\u0026s=d6a86fa4aed1d6cff191342f0c89e9fd","dark":"https://mintcdn.com/bymiles/t9YAMBFoVNNNG8N2/images/brand/miles-logo.png?fit=max\u0026auto=format\u0026n=t9YAMBFoVNNNG8N2\u0026q=85\u0026s=d6a86fa4aed1d6cff191342f0c89e9fd"},"appearance":{"default":"dark","strict":true},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://app.bymiles.ai","label":"Sign in"}],"primary":{"type":"button","label":"Try Miles","href":"https://app.bymiles.ai"}},"footer":{"socials":{"github":"https://github.com/bymilesai","x":"https://x.com/bymilesai"}},"seo":{"metatags":{"canonical":"https://docs.bymiles.ai"}},"fonts":{"family":"Plus Jakarta Sans"},"icons":{"library":"lucide"},"styling":{"codeblocks":"dark","latex":false},"contextual":{"options":["copy","view","assistant"],"display":"toc"},"interaction":{"drilldown":false},"navigation":{"global":{"anchors":[{"anchor":"Introduction","href":"/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bymiles","hasAudioNarration":false,"actualSubdomain":"bymiles","customDomains":["docs.bymiles.ai"],"gitSource":{"type":"github","owner":"bymilesai","repo":"docs","deployBranch":"main","contentDirectory":"site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af1ec69ea8a9a7a26945ab6","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Building New Sites","count":11},{"language":"default","tag":"Reference","count":11},{"language":"default","tag":"Miles + Coding Agents","count":9},{"language":"default","tag":"Miles CLI","count":8},{"language":"default","tag":"Account \u0026 Billing","count":7},{"language":"default","tag":"Editing a Site","count":6},{"language":"default","tag":"Getting Started","count":6},{"language":"default","tag":"Using Miles Safely","count":6},{"language":"default","tag":"Plan your site","count":4},{"language":"default","tag":"Build and launch","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@bymiles.ai"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"brand.css","content":"#almond-background-color+span,#almond-background-color+span+span{background:radial-gradient(\n 49.63% 57.02% at 58.99% -7.2%,\n rgba(13, 120, 150, 0.28) 39.4%,\n rgba(0, 0, 0, 0) 100%\n ),\n radial-gradient(\n 45% 52% at 100% 28%,\n rgba(212, 165, 116, 0.14) 0%,\n rgba(212, 165, 116, 0.06) 38%,\n rgba(0, 0, 0, 0) 72%\n )!important}a.bg-primary-dark[target=\"_blank\"][href=\"https://app.bymiles.ai\"]{background:#fff!important;color:#111!important}a.bg-primary-dark[target=\"_blank\"][href=\"https://app.bymiles.ai\"] span{color:#111!important}a.bg-primary-dark[target=\"_blank\"][href=\"https://app.bymiles.ai\"]:hover{background:#f3f3f1!important}.sidebar-group-header{font-weight:700}.nav-logo{height:2.25rem!important}a.nav-anchor[href=\"/\"]>svg{display:none}a.nav-anchor[href=\"/\"]{width:100%;margin:0;padding:6px 12px 6px 16px!important;gap:0;line-height:20px}body:has(#content[data-page-title=\"Introduction\"]) a.nav-anchor[href=\"/\"]{border-radius:12px;background:rgba(196, 168, 130, 0.1);color:#dec49d!important;text-shadow:-0.2px 0 0 currentColor, 0.2px 0 0 currentColor}#header:has(+#content[data-page-title=\"Introduction\"]){display:none}#content[data-page-title=\"Introduction\"] .introduction-hero{display:flex;max-width:42rem;flex-direction:column;align-items:center;margin:3.5rem auto 4.5rem;text-align:center}#content[data-page-title=\"Introduction\"] .introduction-hero img{width:min(17rem, 80%);height:auto;margin:0}#content[data-page-title=\"Introduction\"] .introduction-hero p{max-width:38rem;margin:1.5rem auto 0;color:rgba(245, 243, 240, 0.72);font-size:1.125rem;line-height:1.6}#content[data-page-title=\"Introduction\"] .card{min-height:0;background:#000}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-image\"]{width:100%;height:clamp(6rem, 8.5vw, 7.5rem);min-height:6rem;opacity:0.9;transition:transform 200ms ease, opacity 200ms ease}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-icon\"]{position:absolute;top:calc(clamp(6rem, 8.5vw, 7.5rem) - 3.25rem);left:1.5rem;z-index:1;width:2.25rem!important;height:2.25rem!important}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-icon\"]>svg{width:2.25rem!important;height:2.25rem!important}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-content-container\"]{position:static;display:flex;min-height:0;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1.25rem 1.5rem;background:rgba(0, 0, 0, 0.5)}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-title\"]{color:#f5f3f0;font-size:1.125rem;line-height:1.5rem;margin-top:0}#content[data-page-title=\"Introduction\"] .card [data-component-part=\"card-content\"]{color:rgba(245, 243, 240, 0.72);font-size:0.9375rem;line-height:1.4}#content[data-page-title=\"Introduction\"] .card:hover [data-component-part=\"card-image\"]{opacity:0.92;transform:scale(1.025)}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title-container\"]{display:flex;width:100%;align-items:center;gap:1rem}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title\"]{display:inline-flex;flex:0 0 auto;align-items:center;padding:0.25rem 0.625rem;border:1px solid rgba(196, 168, 130, 0.34);border-radius:999px;background:rgba(196, 168, 130, 0.1);color:#dec49d;font-size:0.875rem;font-weight:700;line-height:1.25rem;white-space:nowrap}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-description\"]{flex:0 0 auto;margin-left:auto;color:rgba(245, 243, 240, 0.58);font-size:0.75rem;font-weight:500;line-height:1.25rem;white-space:nowrap}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-content\"]>h4:first-child{margin-top:0}@media (max-width: 480px){#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title-container\"]{gap:0.625rem}#content[data-page-title=\"Release notes\"] [data-component-part=\"accordion-title\"]{padding:0.1875rem 0.5rem;font-size:0.8125rem}}"}]}
{"page":{"pagePath":"coding-agent/local-wordpress-site","slug":"/coding-agent/local-wordpress-site","pageMetadata":{"title":"Use a local or remote WordPress site","description":"Choose the right way for an agent to work with a WordPress installation you already have.","href":"/coding-agent/local-wordpress-site"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Choose the right way for an agent to work with a WordPress installation you already have.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use a local WordPress site when you want a safe editing target or development review. Do not choose it merely because your agent found WordPress files nearby; decide together where the work should happen.`}),`\n`,_jsx(Heading,{level:`2`,id:`local-wordpress`,children:`Local WordPress`}),`\n`,_jsx(_components.p,{children:`Before your agent connects a local site, make sure:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`WordPress is running locally`}),`\n`,_jsx(_components.li,{children:`you can log in as an administrator`}),`\n`,_jsx(_components.li,{children:`the site is safe to change`}),`\n`]}),`\n`,_jsx(_components.p,{children:`The agent can check whether a folder looks like WordPress, then ask whether you want to use a Miles design sandbox, this local installation, or a different remote site. When you choose local, it can help install and connect the Miles plugin. If WordPress needs manual activation, it should give you the right WordPress admin links and wait for you to finish the step.`}),`\n`,_jsx(Heading,{level:`2`,id:`remote-wordpress`,children:`Remote WordPress`}),`\n`,_jsx(_components.p,{children:`For a remote site, install and pair the Miles plugin through WordPress. Your agent should not try to install or configure a remote WordPress site through files on your computer.`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.a,{href:`/editing-a-site/starting-points`,children:`Editing a Site`}),` to choose the correct existing-site workflow before changing pages, sections, or functionality.`]}),`\n`,_jsx(Heading,{level:`2`,id:`good-requests`,children:`Good requests`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Check this local WordPress site and tell me whether it is ready to use with Miles.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Do not change anything until I choose this site as the place to work.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Use Miles with my local WordPress site to create a draft Services page.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Keep it unpublished and ask me before changing any existing pages.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`watch-for-connection-limits`,children:`Watch for connection limits`}),`\n`,_jsx(_components.p,{children:`Some local URLs, browser sessions, security settings, or WordPress configuration can block access. If Miles cannot reach the site, ask the agent to show the exact connection error and what it needs from you.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Use a local or remote WordPress site","description":"Choose the right way for an agent to work with a WordPress installation you already have.","href":"/coding-agent/local-wordpress-site"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Local WordPress","slug":"local-wordpress","depth":2,"children":[]},{"title":"Remote WordPress","slug":"remote-wordpress","depth":2,"children":[]},{"title":"Good requests","slug":"good-requests","depth":2,"children":[]},{"title":"Watch for connection limits","slug":"watch-for-connection-limits","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"bymiles","siteName":"Miles Docs","title":"Use a local or remote WordPress site - Miles Docs","contextualStarterQuestions":[{"_id":"6a7b80759061745995d14621","deploymentId":"6a4fbe2dd9002cb58ed9cbe4","questionText":"What if Miles can't connect?","status":"active","generatedBy":"contextual","path":"coding-agent/local-wordpress-site","createdAt":"2026-08-11T20:05:09.148Z","updatedAt":"2026-08-11T20:05:09.148Z","__v":0},{"_id":"6a7b80759061745995d14620","deploymentId":"6a4fbe2dd9002cb58ed9cbe4","questionText":"When should I use local vs remote?","status":"active","generatedBy":"contextual","path":"coding-agent/local-wordpress-site","createdAt":"2026-08-11T20:05:09.148Z","updatedAt":"2026-08-11T20:05:09.148Z","__v":0},{"_id":"6a7b80759061745995d1461f","deploymentId":"6a4fbe2dd9002cb58ed9cbe4","questionText":"How do I set up a local WordPress site?","status":"active","generatedBy":"contextual","path":"coding-agent/local-wordpress-site","createdAt":"2026-08-11T20:05:09.148Z","updatedAt":"2026-08-11T20:05:09.148Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-03T02:04:19.892Z","originalFileLocation":"coding-agent/local-wordpress-site.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Choose the right way for an agent to work with a WordPress installation you already have.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Miles Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Use a local or remote WordPress site - Miles Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Choose the right way for an agent to work with a WordPress installation you already have.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Miles Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bymiles.ai/coding-agent/local-wordpress-site\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bymiles.mintlify.site/_mintlify/api/og/v2?division=Choose+your+environment\u0026amp;title=Use+a+local+or+remote+WordPress+site\u0026amp;description=Choose+the+right+way+for+an+agent+to+work+with+a+WordPress+installation+you+already+have.\u0026amp;theme=f502736226f34119b0935bef\u0026amp;signature=4e4b26b1ad676518013d4e7747850dc6f298b990a092fdf3ad1dd769a8147d79\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Use a local or remote WordPress site - Miles Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Choose the right way for an agent to work with a WordPress installation you already have.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bymiles.mintlify.site/_mintlify/api/og/v2?division=Choose+your+environment\u0026amp;title=Use+a+local+or+remote+WordPress+site\u0026amp;description=Choose+the+right+way+for+an+agent+to+work+with+a+WordPress+installation+you+already+have.\u0026amp;theme=f502736226f34119b0935bef\u0026amp;signature=4e4b26b1ad676518013d4e7747850dc6f298b990a092fdf3ad1dd769a8147d79\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/bymiles/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Miles Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C4A882\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bymiles.ai/coding-agent/local-wordpress-site\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/coding-agent/local-wordpress-site.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bymiles.ai/#organization\",\"name\":\"Miles Docs\",\"url\":\"https://docs.bymiles.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bymiles/t9YAMBFoVNNNG8N2/images/brand/miles-logo.png?fit=max\u0026auto=format\u0026n=t9YAMBFoVNNNG8N2\u0026q=85\u0026s=d6a86fa4aed1d6cff191342f0c89e9fd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bymiles.ai#website\",\"name\":\"Miles Docs\",\"url\":\"https://docs.bymiles.ai\",\"publisher\":{\"@id\":\"https://docs.bymiles.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site#webpage\",\"url\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site\",\"name\":\"Use a local or remote WordPress site\",\"description\":\"Choose the right way for an agent to work with a WordPress installation you already have.\",\"dateModified\":\"2026-08-03T02:04:19.892Z\",\"isPartOf\":{\"@id\":\"https://docs.bymiles.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Miles + Coding Agents\",\"item\":\"https://docs.bymiles.ai/coding-agent/why-add-miles\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Choose your environment\",\"item\":\"https://docs.bymiles.ai/coding-agent/working-in-a-design-sandbox\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Use a local or remote WordPress site\",\"item\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site#article\",\"headline\":\"Use a local or remote WordPress site\",\"name\":\"Use a local or remote WordPress site\",\"description\":\"Choose the right way for an agent to work with a WordPress installation you already have.\",\"url\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bymiles.ai/coding-agent/local-wordpress-site#webpage\"},\"dateModified\":\"2026-08-03T02:04:19.892Z\",\"publisher\":{\"@id\":\"https://docs.bymiles.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bymiles.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Miles Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Miles Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/coding-agent/local-wordpress-site.md","siteName":"Miles Docs","nav":{"global":{"anchors":[{"anchor":"Introduction","href":"/"}]},"groups":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"What can Miles do?","href":"/getting-started/what-can-miles-do"},{"title":"How Miles works","href":"/getting-started/how-miles-works"},{"group":"Quick Start","expanded":true,"pages":[{"title":"In a design sandbox","href":"/getting-started/quick-start/design-sandbox"},{"title":"On a WordPress install","href":"/getting-started/quick-start/wordpress-install"},{"title":"With a coding agent","href":"/getting-started/quick-start/coding-agent"}]},{"title":"Choose how to start in WordPress","href":"/getting-started/choose-a-wordpress-path"}]},{"group":"Building New Sites","icon":"blocks","pages":[{"group":"Plan your site","expanded":false,"pages":[{"title":"Choose a starting point","href":"/building-new-sites/choose-a-starting-point"},{"title":"Choosing a theme foundation","href":"/building-new-sites/picking-a-base-theme"},{"title":"Writing a good prompt","href":"/building-new-sites/writing-a-good-prompt"},{"title":"Using existing assets","href":"/building-new-sites/using-existing-assets"}]},{"group":"Shape the design","expanded":false,"pages":[{"title":"Iterating on design directions","href":"/building-new-sites/iterating-on-design-directions"},{"title":"Making a design editable","href":"/building-new-sites/making-a-design-editable"},{"title":"Validating and iterating","href":"/building-new-sites/validating-and-iterating"}]},{"group":"Build and launch","expanded":false,"pages":[{"title":"Your Site Plan","href":"/building-new-sites/site-plan"},{"title":"Creating new pages and sections","href":"/building-new-sites/creating-pages-and-sections"},{"title":"Making sections real","href":"/building-new-sites/making-sections-real"},{"title":"Export or import a design","href":"/building-new-sites/exporting-a-site"}]}]},{"group":"Editing a Site","icon":"pencil","pages":[{"group":"Start safely","expanded":false,"pages":[{"title":"Work with your existing design","href":"/editing-a-site/starting-points"},{"title":"Site protection","href":"/editing-a-site/site-protection"}]},{"group":"Change your site","expanded":false,"pages":[{"title":"Create new pages and sections","href":"/editing-a-site/creating-pages-and-sections"},{"title":"Redesign pages and sections","href":"/editing-a-site/redesigning-pages-and-sections"},{"title":"Make small refinement edits","href":"/editing-a-site/small-refinement-edits"}]},{"group":"Extend your site","expanded":false,"pages":[{"title":"Add new functionality","href":"/editing-a-site/adding-new-functionality"}]}]},{"group":"Miles + Coding Agents","icon":"bot","pages":[{"title":"Why add Miles to your coding agent?","href":"/coding-agent/why-add-miles"},{"group":"Set up Miles","expanded":false,"pages":[{"title":"Add Miles to your coding agent","href":"/coding-agent/adding-miles"},{"title":"Authenticate Miles","href":"/coding-agent/authenticating-miles"}]},{"group":"Use Miles in your workflow","expanded":false,"pages":[{"title":"Use Miles in a project","href":"/coding-agent/working-with-your-agent"},{"title":"Use Miles with other skills","href":"/coding-agent/using-other-skills"},{"title":"Stay involved in Miles work","href":"/coding-agent/managing-agent-work"}]},{"group":"Choose your environment","expanded":false,"pages":[{"title":"Work in a design sandbox","description":"Start a new site in a separate Miles design sandbox before moving it to WordPress.","href":"/coding-agent/working-in-a-design-sandbox"},{"title":"Use a local or remote WordPress site","href":"/coding-agent/local-wordpress-site"}]},{"group":"Get help","expanded":false,"pages":[{"title":"Troubleshooting coding-agent work","description":"Resolve common setup, connection, and recovery issues when an agent uses Miles.","href":"/coding-agent/troubleshooting"}]}]},{"group":"Account \u0026 Billing","icon":"credit-card","pages":[{"group":"Account and security","expanded":false,"pages":[{"title":"Account settings","href":"/account/settings"},{"title":"API keys","href":"/account/api-keys"}]},{"group":"Credits and usage","expanded":false,"pages":[{"title":"Credits","href":"/account/credits"},{"title":"Usage history","href":"/account/usage"}]},{"group":"Plans and billing","expanded":false,"pages":[{"title":"Billing and invoices","href":"/account/billing"},{"title":"Plans, upgrades, and cancellation","href":"/account/plans"},{"title":"Referrals","href":"/account/referrals"}]}]},{"group":"Using Miles Safely","icon":"shield-check","pages":[{"group":"Work safely","expanded":false,"pages":[{"title":"Site protection","href":"/safety/site-protection"},{"title":"Approval cards and destructive changes","href":"/safety/approval-cards"},{"title":"Backups and reviewing AI output","href":"/safety/backups-and-review"}]},{"group":"Access and content","expanded":false,"pages":[{"title":"How Miles connects to WordPress","href":"/safety/site-access"},{"title":"Uploads and moderation","href":"/safety/uploads-and-moderation"},{"title":"External sites and screenshots","href":"/safety/external-sites"}]}]},{"group":"Reference","icon":"book-open","pages":[{"group":"Miles CLI","expanded":false,"pages":[{"title":"Miles CLI reference","mode":"wide","href":"/reference/miles-cli/overview"},{"title":"Authentication and account","href":"/reference/miles-cli/auth-and-account"},{"title":"Sites and context","href":"/reference/miles-cli/sites-and-context"},{"title":"Design and build","href":"/reference/miles-cli/design-and-build"},{"title":"Jobs and safety","href":"/reference/miles-cli/jobs-and-safety"},{"title":"WordPress and browser connection","href":"/reference/miles-cli/wordpress-and-browser"},{"title":"Files and export","href":"/reference/miles-cli/files-and-export"},{"title":"Lifecycle and compatibility","href":"/reference/miles-cli/lifecycle-and-compatibility"}]},{"title":"Glossary","href":"/reference/glossary"},{"title":"Current limitations","href":"/reference/limits"},{"title":"Troubleshooting","href":"/reference/troubleshooting"}]}]},"basePath":"","title":"Use a local or remote WordPress site - Miles Docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":[],"chunks":[]}