GPT4All can expose an OpenAI-compatible HTTP server so other apps can call your local model. The server is disabled by default and listens only on 127.0.0.1 port 4891, so enable it first and then confirm it answers.
What you need
- GPT4All installed with a model downloaded
- The local server setting in GPT4All
- A terminal with curl
Step 1: Enable the local server
Open the GPT4All settings and enable the local server. It is disabled by default, and it listens only on 127.0.0.1, which is the safe default.
Step 2: Ask for the model list
Run curl http://localhost:4891/v1/models in a terminal. The server should return a list of the models it can serve.
Step 3: Check the reply
Confirm the model you downloaded is in the list. If the request fails, check the server is enabled and GPT4All is still running, and that nothing else uses port 4891.
Worked example: synthetic GPT4All server check
The table below is a synthetic example. It shows the expected result of checking the server; no server was queried.
| Check | Expected | Result |
|---|---|---|
| Server enabled | On, 127.0.0.1:4891 | Pass |
| curl /v1/models | Model list returned | Pass |
| Model in list | Downloaded model listed | Pass |
Expected result (UNTESTED). the server is enabled on 127.0.0.1:4891, the models endpoint returns a list, and the downloaded model is in it. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- The server uses HTTP, not HTTPS, and has no authentication by default, so do not expose it to a network.
- The server only serves the model that is loaded in GPT4All.
- If another app already uses port 4891, change the port in the settings or stop the other app.
