AI, Development & Tech News

WordPress Studio now also works with AI models on your own computer

261128 WordPress Studio local AI model cover image
Skip to table of contents
Contents 5 sections
  1. How do you connect your own model?
  2. Why can the first request fail with Ollama?
  3. What else changes in version 2.4.0?
  4. What this means for you
  5. Sources

Automattic has extended its WordPress Studio program so that the built-in AI assistant Studio Code also works with language models on your own computer. Since version 2.4.0, it builds and modifies websites via Ollama, LM Studio, or another model server, as you prefer. Chats with such a model work without a WordPress.com account and also function offline.

The app for WordPress development on your own computer is free and runs on macOS from version 13, on 64-bit Windows, and on 64-bit Linux based on Debian. The interface is also available in German, including the error messages for the local model.

How do you connect your own model?

The prerequisite is a running server with at least one chat model that offers an OpenAI-compatible interface. Besides Ollama and LM Studio, the documentation mentions llama-server from the llama.cpp project as well as vLLM.

Connect your own model
How to connect your local model to WordPress Studio 2.4.0
  1. Start the serverwith at least one chat model, for example in Ollama or LM Studio
  2. Check the contextfor Ollama, at least 64,000 tokens are recommended
  3. Open providersclick "Connect" next to "Local LLM"
  4. Save the addressEnter the server address, API key only if needed
A larger context requires more memory
Sources: WordPress Studio Docs, Ollama Docs

In the desktop app, you open the settings via the account menu, select "Providers," and click "Connect" next to "Local LLM," as described in the guide to providers. As the server address, you enter for example "http://localhost:11434," and an API key only if your server requires one. Studio connects to only one server at a time. In Studio's browser interface, you only see the entry if you open it on the same computer on which Studio is running.

Why can the first request fail with Ollama?

On computers with less than 24 GiB of video memory, Ollama starts models by default with a context window of 4k, i.e. around 4,000 tokens. According to the description of the change on GitHub, even the first request from Studio Code comprises around 11,000 tokens. Ollama silently truncates anything beyond that. Studio therefore checks which value the model is running with, summarizes the previous chat if necessary, and reports a context that is too small.

For programming tools, the Ollama documentation recommends at least 64,000 tokens. In the Ollama app, you raise the value with a slider or start the server with "OLLAMA_CONTEXT_LENGTH=64000 ollama serve." A larger context requires more memory. Your model must also be able to call tools so that the assistant can modify files and run commands. Such models appear at the top of the selection menu. A local model does not generate images itself in Studio.

What else changes in version 2.4.0?

  • New providers: Grok from xAI and the intermediary service OpenRouter are added. The free models run there without credit.
  • Publishing: You reach preview and hosting via a shared button. When transferring, you select the database, plugins, themes, uploads, or individual files.
  • Missing files: Folders named "Database" and files named "db.php" from plugins were previously not transferred. In the case of a fresh installation or a complete replacement on the target server, WooCommerce consequently failed with a critical error, according to the description of the fix.
  • Settings: Studio now stores the details of your websites and your login data in a single file. Older versions of the app or of the command-line program can only read it after an update.

What this means for you

For drafts without a network or without a bill from an AI provider, it is best to try out your own model on a test site. How useful the results turn out depends on the chosen model. A lesson from our cybersecurity course shows Ollama as a tool for confidential analyses.

Without your own server, you can start with the one-time free credit from WordPress.com, initially with the "Fast" model only. According to the guide to Studio Code, you store a payment method for the WordPress.com AI, with which WordPress.com wants to prevent abuse.

For a WooCommerce site previously transferred from Studio, it's best to check whether all files are present in the plugin folder "src/Database" on the target server. If necessary, transfer the site again after the update. The basics of installation and the editor are covered in the course for WordPress beginners.

Automattic released version 2.4.0 on November 25, 2026.

Sources

Comments

Register and comment.

Continue reading

You might also like

View all articles →