Troubleshooting

Why Jetpack AI won't work on a local or staging site

When we activated Jetpack on a local test site, My Jetpack told us we were in Offline Mode and the AI Assistant was out of reach. Here is why that happens, why staging copies hit a related wall, and how to get a working test setup.

Updated December 2026Research + our own test installs · how we review

Short answer

Jetpack AI runs on Automattic's servers and only works when the site is connected to WordPress.com. Local sites (localhost, .local, .test, 127.0.0.1, WordPress Playground) are put into Offline Mode automatically, and Jetpack lists AI Assistant among features that don't work there. To test it, use a staging site on a public URL with its own Jetpack connection.

Key facts

  • In our 17 November 2026 test, Jetpack 16.4 in a local WordPress Playground sandbox showed 'You're working in Offline Mode' in My Jetpack, and the AI Assistant was unavailable.
  • Jetpack's Offline Mode support page lists AI Assistant among the features that don't work in Offline Mode, alongside Backup, Scan, Search, Social and Subscriptions.
  • Jetpack's current status code treats hostnames without a dot, .local, .test, localhost, 127.x.x.x addresses and playground.wordpress.net as local sites, as well as any site with WP_ENVIRONMENT_TYPE set to 'local'.
  • Jetpack's support page says Jetpack AI is accessible only when Jetpack is properly connected to WordPress.com, and each user needs their own WordPress.com connection.
  • Each site gets 20 free Jetpack AI requests that don't renew, per jetpack.com/ai and Jetpack's AI support page (checked 2 December 2026).

Jetpack is the one big WordPress AI tool that doesn't use your own API key. That's convenient on a live site, but it means the AI depends on a working link between your site and WordPress.com. Break that link, or never make it, and the AI features simply aren't there.

We hit this ourselves on 17 November 2026, testing Jetpack 16.4 on a fresh WordPress 7.1.4 site running locally in WordPress Playground. We didn't connect a WordPress.com account, and we didn't get to use the AI Assistant. Everything after the first section comes from Jetpack's support pages and its open-source code. For what the AI does once it works, see our Jetpack AI Assistant review.

The Offline Mode message we saw

After activating Jetpack, Jetpack > My Jetpack showed the notice You're working in Offline Mode. Jetpack had decided, without asking, that the site couldn't connect to WordPress.com. It was right: a Playground sandbox on a Mac isn't reachable from the internet.

There was no error and no broken screen. The AI Assistant just wasn't available, which is easy to misread as a bug or a missing licence. If you see the same notice on a local install, the AI isn't faulty; it has nothing to connect to.

Why Jetpack AI needs a WordPress.com connection

Jetpack AI isn't a model inside the plugin. Prompts go to Automattic's AI service through the site's WordPress.com connection, and usage is counted per site there. Jetpack's AI support page spells out the rules:

  • Jetpack AI is accessible only when Jetpack is properly connected to WordPress.com, and AI features stop if the connection breaks.
  • Each user who wants AI must connect their own WordPress.com account, not just the site owner.
  • It needs the block editor; the Classic Editor isn't supported.
  • Each site gets 20 free requests that don't renew. After that you need the Jetpack AI plan or a Pro or Complete bundle.

The same connection powers Jetpack's newer agent access for ChatGPT and Claude, so a local site can't use that either. As of 2 December 2026, Jetpack and WordPress.com say agent access is free on every Jetpack site and every WordPress.com site, with no plan required. An earlier 30 November cutoff was dropped without an announcement, so check jetpack.com/ai before you rely on it.

Which sites Jetpack treats as offline

Jetpack's support page says Offline Mode switches on automatically when the hostname has no dot, such as localhost, and that you can force it with a constant. Jetpack's current source code goes further. A site is treated as local, and put into Offline Mode, if any of these apply:

  • The JETPACK_DEV_DEBUG or WP_LOCAL_DEV constant is set to true in wp-config.php.
  • WP_ENVIRONMENT_TYPE is set to local.
  • The site address has no dot, or ends in .local, .test, localhost, .docksal, .lndo.site or .ddev.site (common with LocalWP, Lando and DDEV).
  • The address is 127.x.x.x or 0.0.0.0, or playground.wordpress.net.
  • A plugin or snippet uses the jetpack_offline_mode filter to force it.

Jetpack's support page still says a .local address needs the constant, but the current code already treats .local as local. Either way, the result is the same: no AI.

Staging sites and Safe Mode

A staging copy on a real URL is a different case. It isn't offline, but when Jetpack sees a cloned site at a new address it can't tell whether you moved the site or copied it, so it goes into Safe Mode and stops syncing to WordPress.com. Jetpack's Safe Mode page offers three choices:

  • Move your settings: for a real move to a new address. Don't use this on a staging copy, or you risk moving your live site's stats and subscribers to it.
  • Create a fresh connection: treats the staging site as a separate site with its own WordPress.com connection.
  • Stay in Safe Mode: keeps the copy disconnected, which suits short-lived test copies.

Jetpack's staging page lists features that don't work in Safe Mode, such as Backup, Search and Subscriptions. AI Assistant isn't on that list, but Jetpack doesn't say it works there either, and its AI page requires a proper connection. We haven't tested this, so for AI testing we'd use a fresh connection.

Workarounds: test on a public staging URL

There's no supported way to run Jetpack AI on localhost. Turning on JETPACK_DEV_DEBUG doesn't help; it forces Offline Mode, which is what turns the AI off. These are the options that do work:

  1. Create a staging site on a public address, such as your host's one-click staging or a subdomain like staging.yoursite.com.
  2. Activate Jetpack there. If you see the Safe Mode notice, choose Create a fresh connection rather than Move your settings.
  3. Connect your own WordPress.com account as a user, since each user needs one for AI.
  4. Open a post in the block editor and add the AI Assistant block, as in our Jetpack AI tutorial. Keep an eye on usage in My Jetpack, because test prompts come out of that site's 20 free requests.
  5. When you're done, disconnect Jetpack on the staging site, or delete the site, so it doesn't linger as a separate connected site.

If a live site on a normal domain shows Offline Mode, check wp-config.php for JETPACK_DEV_DEBUG, WP_LOCAL_DEV or a WP_ENVIRONMENT_TYPE of local left over from development, and look for a plugin using the jetpack_offline_mode filter.

If you need AI on a local site

If you work locally and want AI while you build, pick a tool that calls your AI provider directly rather than routing through a hosted account. In our same local test, the official WordPress AI plugin and AI Engine both loaded every settings screen with no account; both need your own API key and an internet connection to the provider. Our list of AI WordPress tools that work without an account has more.

External agents are different again. Connecting Claude through AI Engine also needs a public URL, as we explain in connecting Claude through AI Engine's MCP server. And if you're trialling several AI tools before paying, our 30-minute test checklist helps you avoid burning free credits on a broken setup.

Frequently asked questions

Can I use Jetpack AI on localhost?

No. Jetpack puts localhost, .local, .test, 127.0.0.1 and WordPress Playground sites into Offline Mode automatically, and its support page lists AI Assistant among the features that don't work in Offline Mode. The AI runs on Automattic's servers through a WordPress.com connection, which a local site can't make. Test it on a staging site with a public address instead.

How do I turn off Jetpack Offline Mode?

Remove whatever is forcing it. Delete or set to false any JETPACK_DEV_DEBUG or WP_LOCAL_DEV line in wp-config.php, make sure WP_ENVIRONMENT_TYPE isn't set to local, and check for a plugin using the jetpack_offline_mode filter. If the site address itself is local, such as .test or localhost, Jetpack will stay offline until the site runs on a public domain.

Will my staging site use up my live site's 20 free AI requests?

Jetpack counts free requests per site. If you choose Create a fresh connection, the staging copy becomes a separate site in WordPress.com's eyes, so its usage should be tracked separately, but Jetpack's pages don't spell out how a fresh staging connection is counted. Check the AI usage figure in My Jetpack on both sites after a few test prompts.

Why does Jetpack AI stop working after I migrate my site?

A move to a new address can trigger Jetpack's Safe Mode, which pauses syncing with WordPress.com until an admin chooses what to do. For a genuine move, pick Move your settings so stats and subscribers follow the site. Jetpack's AI page says the AI only works with a proper connection, so resolve the Safe Mode notice before troubleshooting anything else.

Is there a Jetpack AI alternative that works offline?

Not fully offline: every mainstream AI tool needs an internet connection to its AI provider. But plugins that use your own API key, such as the official WordPress AI plugin or AI Engine, work on local development sites because they call the provider directly. AI Engine also supports local models, according to Meow Apps, if you need everything on your own machine.

Sources

  1. jetpack.com/support/development-mode
  2. jetpack.com/support/safe-mode
  3. jetpack.com/support/staging-sites
  4. jetpack.com/support/create-better-content-with-jetpack-ai
  5. jetpack.com/ai
  6. raw.githubusercontent.com/Automattic/jetpack/trunk/projects/packages/status/src/class-status.php
  7. developer.wordpress.com/docs/mcp
  8. meowapps.com/ai-engine