Skip to content

How-ToGPU

How to Use Nextcloud Assistant With Ollama on Your Own GPU

How to give Nextcloud Assistant a private, local AI model with Ollama: installing Assistant and the OpenAI and LocalAI integration, making Ollama reachable, adding it as a service, speeding up task pickup and the GPU you need.

By , Systems & Technical Editor

4 min read

How to Use Nextcloud Assistant With Ollama on Your Own GPU

Nextcloud Assistant adds AI features to a self-hosted Nextcloud server: chat, summaries, headlines, proofreading, translation, transcription and image generation. It doesn't run any models itself. It needs a backend app, and one of the simplest local backends is Ollama running on a PC with a graphics card, connected through Nextcloud's OpenAI and LocalAI integration app. That way your files, notes and chats are processed on your own hardware rather than by a cloud service.

This guide is based on Nextcloud's admin manual, the OpenAI and LocalAI integration README and its supported-providers list, the Nextcloud App Store, and Ollama's documentation, read on 3 December 2026.

What you need

  • A working Nextcloud server you have admin rights on. The latest stable releases for Nextcloud 35 on the App Store are Assistant 4.2.0 and OpenAI and LocalAI integration 5.0.0.

  • Ollama on the same machine or another PC on your network, ideally with a graphics card. Ollama's own guide to checking it's using the GPU is worth a look before you start.

  • At least one model pulled in Ollama, for example ollama pull llama3.2. See the best local LLMs for 12GB of VRAM for ideas.

Nextcloud's alternative is its own Local large language model app (llm2), which runs models inside a container managed by Nextcloud. We compare the two in Nextcloud Local LLM vs Ollama.

Step 1: Install Nextcloud Assistant

Open Apps in Nextcloud as an admin, search for Nextcloud Assistant and enable it. On the command line, Nextcloud's manual gives sudo -E -u www-data php occ app:enable assistant. Assistant is the interface; on its own it can't do anything until a backend app provides the AI tasks.

Step 2: Make Ollama reachable from Nextcloud

Ollama binds to 127.0.0.1 on port 11434 by default, so only programs on the same machine can reach it. If Nextcloud runs on the same computer outside a container, http://localhost:11434/v1 will work. If Nextcloud runs on another machine, or in a Docker container, localhost points at that machine or container instead, so you need to change Ollama's bind address with the OLLAMA_HOST environment variable (for example 0.0.0.0:11434) and use the Ollama PC's network address in Nextcloud. Ollama's FAQ explains how to set this on Windows, macOS and Linux; on Windows, see how to set Ollama environment variables. Only expose Ollama on a network you trust: its OpenAI-compatible API ignores the API key for local use, so anything that can reach the port can use it.

Step 3: Install the OpenAI and LocalAI integration

Back in Apps, install OpenAI and LocalAI integration (integration_openai). Despite the name, Nextcloud's manual says it can connect to a self-hosted LocalAI or Ollama instance, or any service with an API similar enough to OpenAI's. Version 5 lets you connect any number of OpenAI-compatible services and choose which of their models to expose.

Step 4: Add Ollama as a service

Go to Administration settings > Artificial intelligence. Add a service and set its Service URL to Ollama's OpenAI-compatible base URL. The app's supported-providers list gives http://localhost:11434/v1 as Ollama's default; replace localhost with your Ollama PC's address if needed. Ollama doesn't check the API key for local use (its OpenAI compatibility docs describe the key as "required but ignored"), so any placeholder value will do if the form insists on one. The app then reads the available models from the service's /models endpoint, and you pick the ones you want.

Each selected text model is registered as a set of task providers: free prompt, chat, chat with tools, summarise, headline, topics, context write, reformulate, improve, change tone, proofread, reformat paragraphs and translate, among others. In the same Artificial intelligence settings you can choose which backend handles each task type, and turn off task types you don't want.

Nextcloud is clear that it tests these tasks mainly with OpenAI, and that summarise, headline, context write and reformulate might work with other services "without any guarantee". Try each feature with your chosen model before relying on it.

Step 5: Speed up task pickup

Most AI tasks run through Nextcloud's background job system, which by default only runs every five minutes, so the first request can feel very slow. Nextcloud recommends running dedicated workers, preferably four or more, so tasks are picked up as soon as they're scheduled. On a standard install its manual gives this loop, run in a screen or tmux session:

set -e; while true; do sudo -E -u www-data php occ taskprocessing:worker -v -t 60; done

Nextcloud AIO users run the same command through docker exec on the host, and the manual also covers a systemd service. On Nextcloud versions before 32.0.7 the command is background-job:worker instead. Because several users or workers may send requests at once, see how to handle parallel requests in Ollama, and consider keeping the model loaded so it isn't reloaded between tasks.

Step 6: Use the Assistant

Nextcloud's manual says it offers a chat with the chosen language model and tools such as summarising text, generating headlines and asking arbitrary questions. The Assistant can also act on your own files if you add Context Chat, and on audio or translation if you add the matching backends, which we cover in the best Nextcloud local AI apps.

Hardware

The GPU requirement depends on the model you pull in Ollama, not on Nextcloud. For comparison, Nextcloud's own llm2 app asks for an NVIDIA GPU with at least 8GB of VRAM and 12GB of system RAM for its shipped models (Qwen 3.5 9B, Gemma 4 E4B and OLMo 3 7B Instruct), which is a reasonable guide for models of that size. An 8GB card such as the ASUS RTX 5060 8GB Dual OC suits smaller models, while a 12GB card like the ASUS RTX 3060 12GB Dual Gaming OC V2 leaves more room for larger models or longer context. See how much VRAM you need.

The bottom line

To give Nextcloud Assistant a private, local brain, install Assistant and the OpenAI and LocalAI integration, make Ollama reachable from your Nextcloud server, then add it as a service at http://<your-ollama-pc>:11434/v1 and pick a model. Set up taskprocessing workers so requests aren't held for up to five minutes. Nextcloud mainly tests these tasks with OpenAI, so check each feature with your model. Forge PC hasn't measured its speed or output quality.

In this article

Sources

  1. 01Nextcloud Assistant (Nextcloud admin manual)
  2. 02AI as a Service (Nextcloud admin manual)
  3. 03AI overview: improve AI task pickup speed (Nextcloud admin manual)
  4. 04Local large language model llm2 (Nextcloud admin manual)
  5. 05OpenAI and LocalAI integration README (Nextcloud, GitHub)
  6. 06Supported providers (integration_openai docs, GitHub)
  7. 07OpenAI and LocalAI integration (Nextcloud App Store)
  8. 08Nextcloud Assistant (Nextcloud App Store)
  9. 09Ollama FAQ (Ollama, GitHub)
  10. 10OpenAI compatibility (Ollama docs)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Android Screen Mirroring Apps for PC (2026)

Best Picks

Best Free Android Screen Mirroring Apps for PC (2026)

The best free apps to mirror and control your Android phone on a PC in 2026: scrcpy for almost any phone, Phone Link on supported models, Escrcpy and QtScrcpy for a graphical interface, and Vysor for browser and iPhone support.

Hannah Vance6 min

scrcpy vs Phone Link: Best Way to Use Android Apps on a PC?

Versus

scrcpy vs Phone Link: Best Way to Use Android Apps on a PC?

scrcpy and Microsoft Phone Link both put your Android phone's apps on a Windows PC for free. We compare phone support, setup, how each shows your apps, extra features and privacy to help you pick the right one.

Callum Reid5 min

How to Mirror and Control Your Android Phone on a PC with scrcpy

How-To

How to Mirror and Control Your Android Phone on a PC with scrcpy

scrcpy is a free, open-source app that mirrors your Android phone's screen and sound on a Windows PC and lets you control it with your mouse and keyboard. We show how to enable USB debugging, install it, connect over USB or Wi-Fi, use the best shortcuts and options, and fix common errors.

Marcus Thorne7 min