How to Use Ollama With n8n Nod on Your Computer
Connect Ollama to n8n Nod, check tool support and context length, and troubleshoot local model setup.
To use Ollama with n8n Nod, run a tool-capable model with enough context, then connect Nod to Ollama’s OpenAI-compatible endpoint. For a Nod desktop assistant on the same computer, the address is http://localhost:11434/v1. Test a small task that uses a tool before switching over your regular work.
1. Pick a model that can use tools
Look for Tools support in Ollama’s model library. Nod relies on tool calls to do things such as read a file or use a connected app. A model that answers chat questions can still fall short when asked to take an action. Nod’s docs also specify at least 64,000 tokens of context. Check the active context setting on your server as well as the model’s advertised limit.
The Nod docs use gpt-oss:20b as an Ollama example. Larger models and longer context windows use more memory. If you are starting from scratch, follow our Nod installation guide first.
2. Start Ollama with enough context
In the Ollama desktop app, set Context length to 65,536 or higher. If you start Ollama from a terminal, set the context length for the server process. The following example uses a POSIX shell. Run the server command only if another Ollama instance is not already listening on the default port.
ollama pull gpt-oss:20b
OLLAMA_CONTEXT_LENGTH=65536 ollama serve
If you already run Ollama as a background service, change its context setting where the service is configured and restart that service. Starting a second process on port 11434 will fail if the first process still owns the port.
3. Connect the local model in Nod
Open Settings → Models, select Add connection (or Add) and choose OpenAI-compatible. Check that the server address is http://localhost:11434/v1 when Nod and Ollama run on the same computer. Add an API key only if your server requires one, then select Connect. Choose your downloaded model in Settings → Models. If you pull or load a different model, open Manage beside the connection and add the same address again to refresh it.
4. Test chat and tool use separately
First ask for a short reply to check that Nod can reach the model. Then give it a small file containing three invented product names and quantities. Ask for a table sorted by quantity with the source filename included. Compare the table with the file. For an app-specific check, use a read-only request against a test account.
Common Ollama connection problems
- Connection refused. Confirm Ollama is running and that Nod can reach port 11434 from the machine where the assistant runs.
- Remote desktop client. If the client connects to a Nod server,
localhostmeans that server. Inside Docker it means Nod’s own container. Use the model address reachable from the assistant’s runtime. - Model missing from the list. Confirm the model is installed on the same Ollama server. Nod can hide models that Ollama identifies as lacking tool support. Refresh the connection after pulling or loading a model.
- Chat works, but tasks are incomplete. Check tool support and the active context length. Retry with one simple task and inspect whether Nod actually called a tool.
- Slow responses or memory errors. Try a smaller supported model that still meets Nod’s context requirement, or use a machine with more available memory.
What stays local?
Nod sends chat requests for this connection to the model address you configure. The apps you ask Nod to use still have their own data flows. If you configure a separate hosted model or service for action checks, its inputs go to that provider. Check both your model and your action checker before running tasks with sensitive business data.



