Connect to an OpenAI-compatible server
Use this route when an inference server or API exposes OpenAI-compatible model and chat endpoints. Start with a server that is already running and has a model available. Naidan connects from your browser; it does not start the server. When you send a chat message, the message and the conversation context needed for the reply go to the server at the URL you chose.
Open /#/settings/connection to set the default connection and model for chats that inherit them.
The local presets fill in LM Studio at http://localhost:1234/v1 or llama-server at http://localhost:8080/v1. Choose the preset that matches your server, or enter its actual base URL. A remote API may require custom HTTP headers. Its authentication, CORS policy and model support depend on that service.
1. Open Connection settings
The link above opens Connection directly. You can also open it from Settings at the bottom of the sidebar.
2. Choose the provider and URL
In the Connection field at the top, choose OpenAI Compatible. Choose LM Studio (local) or llama-server (local) below it when it matches your server. A preset fills both the provider and URL. For another service, enter its base URL, including a path such as /v1 when required. Local-only and Curated editions cannot connect to arbitrary remote API URLs; use an edition that allows your destination.
3. Add headers only when your service needs them
If your service requires authentication or another header, expand HTTP headers below the URL and select Add Header. Enter the name and value supplied by the service. For example, a Bearer token uses the name Authorization and a value beginning with Bearer . Skip this step when headers are not needed, and keep credentials out of shared setup URLs.
4. Check the connection
Beside Endpoint URL, select Check Connection. A spinner changes briefly to a check mark when Naidan retrieves the model list. Localhost URLs are also checked automatically after the provider or URL changes. On failure, check the URL, server, and browser CORS, origin or CSP error.
5. Choose a default model and save
At the top, choose a returned model in Default Model, beside the connection field, then select Save Changes. The model label in the scene is an example. The default applies to existing and new chats that inherit it; chat and group overrides stay in effect.
Close Settings, choose New Chat in the sidebar, and send a short message.
If the model list does not appear
Check the server’s base URL and its own model list first. Naidan appends /models for the check and /chat/completions for chat. If the page runs from file://, the browser can send Origin: null; a hosted page can have a Content Security Policy limiting destinations. The server must accept the browser’s request and any headers it requires.
Choose an API from the model screen
From the home screen, choose Choose a model, then Use OpenAI, Ollama and more. Enter the API URL and any API key or headers, fetch the model list, then confirm with Use this connection. From home, this sets the global default. From an existing chat’s model selection, it changes only that chat.