Connect Naidan to Ollama or a llama.cpp server
A local inference engine can run a model outside the browser while you use Naidan for the conversation. Start the engine and make a model available there first. Naidan connects to its HTTP API; the engine runs as a separate process with its own permissions.
Naidan provides local URL presets. Use the one that matches the API your engine exposes, then check the connection before choosing a model. The preset is an address to try, not a server that Naidan starts for you.
When the engine is ready, open /#/settings/connection to choose the connection and default model. You can also reach this panel from Settings in the sidebar.
Choose the connection type for your engine
Ollama
Connection: Ollama
Ollama (local) · http://localhost:11434Choose the Ollama preset when the Ollama service is listening at its usual local address. Naidan uses the Ollama API and lists models that the service reports.
View setup guidellama.cpp server
Connection: OpenAI Compatible
llama-server (local) · http://localhost:8080/v1The llama-server preset uses its OpenAI-compatible API, so keep the /v1 path. This server is distinct from llama.cpp running inside the browser. Naidan also offers an LM Studio preset at http://localhost:1234/v1 under the same connection type.
View setup guideConnect the engine and start a chat
Start the engine and its model
Follow the engine’s own setup to start its HTTP service and make at least one model available. Confirm its listening address. If you changed its port or base path, enter that actual URL in Naidan instead of using a preset.
Choose the connection type and URL
In the Connection field at the top, choose Ollama or OpenAI Compatible, then select the matching local preset or enter the server’s actual URL. Expand HTTP headers below the URL only when your endpoint requires them. The guides above show each engine’s controls in detail.
Check the model list, save, and chat
Select Check Connection beside the URL. Choose a returned model in Default Model at the top, then select Save Changes. Close Settings, choose New Chat in the sidebar, and send a short message. If the list is empty, check that the engine has a model available.
Change the connection later
Return to Settings → Connection to change the address or model. Fetch the new server’s model list before saving its default model. Existing and new chats that inherit the global connection or model use the saved values; chat and group overrides stay in effect.
If the connection check fails
The address or API does not match
Verify that the engine is running, the port matches its listener, and you selected Ollama for Ollama or OpenAI Compatible for llama-server. Keep /v1 on the llama-server preset. A server can respond at its base URL but still lack the model-list API Naidan needs.
The browser blocks the request
The browser enforces origin, CORS, mixed-content and, on some hosted editions, Content Security Policy rules. Local-only and Curated permit local HTTP servers at localhost or 127.0.0.1; a LAN or other-device server needs an edition that permits its address. Standalone opens from file:// and can send Origin: null; the engine may need to allow that origin. Read the browser error and check your endpoint’s allowed origins before retrying.
The model list is empty
Check that your engine has a model and that its API returns a list. Naidan automatically checks only localhost URLs in the Connection settings; use Check Connection manually for other addresses. After switching endpoints, refresh and select the model from the new server.
A local URL sends chat requests to that engine process. If you use an engine on another machine or an external endpoint, prompts and selected conversation context travel to that address. Its model behavior, file access and network connections are determined by the engine and its configuration.