Connect Chatbox Desktop to Jan’s local API by adding a custom OpenAI API compatible provider in Chatbox. With Jan’s default settings, use http://127.0.0.1:1337 as the API Host and /v1/chat/completions as the API Path. Add the exact model ID from Jan and use Jan’s own API key if the server requires one.

This guide assumes both desktop apps run on the same Apple silicon Mac and Jan has a downloaded local text model it can load. Jan runs the model. Chatbox sends chat messages to it. The connection uses the local address of your Mac and gives you a separate interface for the model you already have. Jan’s local API server guide · Chatbox’s custom provider settings.

Check Jan’s model and API settings

Open Jan and go to Settings → Local API Server. Confirm the default local model and the server status. If it is stopped, choose the intended local model in the default-model setting and click Start Server. An already loaded model can affect which model Jan starts with. Check that the one you want can respond in Jan and verify its exact API ID before adding the Chatbox configuration. Import and open a GGUF model in Jan.

Open Configuration in the Local API Server settings and check Server Host, Server Port, and API Prefix. For a connection between two apps on the same Mac, keep the host at 127.0.0.1. The default port is 1337 and the default prefix is /v1. If the server is already using a different local port, use that value in every command and in Chatbox. Record both the prefix and the port before leaving the screen.

Check API Key in Jan’s configuration. An existing key belongs to this server. Enter the same value in Chatbox and include it when testing from Terminal. If the server has no key and you choose to use one for this connection, create it in Jan and make sure the active server uses the updated setting. Keep it in the client’s credential field and leave it out of shared notes. The primary documentation describes the key as optional and specifies a Bearer header when it is configured. Jan API authentication and configuration.

Get the exact model ID from the running server

Run a model-list request from Terminal with Jan on its default host, port, and prefix. Replace the port or prefix if you have changed it. If Jan uses an API key, include a Bearer authorization header with its value as described in the API reference.

curl -sS -i --noproxy 127.0.0.1 --max-time 10 \
  'http://127.0.0.1:1337/v1/models'

Look for a successful HTTP status and a JSON list. Copy the id for the local model you intend to use. Jan’s list can include several models, so match the ID to the intended local package rather than selecting the first row automatically. Save that ID in your test notes, keeping the key separate. The ID may differ from the name you see in the application’s model picker. Chatbox needs the server’s ID when it sends a chat request. Jan’s model-list and chat endpoints.

If the request reaches the server but the desired model is missing, open it in Jan and check the model and inference engine again. Downloading an incompatible model and changing a name in Chatbox cannot make the first test work. Establish a model that Jan can actually run before resolving client settings. If the list itself fails, use the response and Jan’s server status to fix that part of the connection first.

Copy only the value of the ID. JSON quotes show where the string begins and ends. They do not form part of the value entered in Chatbox. Preserve letters, case, dots, slashes, and hyphens. When you replace a build in Jan, query the list again before reusing its existing name in Chatbox. This helps when two packages have nearly identical labels but use distinct IDs. Choose the one that belongs to the local engine and test it in a new Jan conversation before switching clients.

Add Jan as a custom provider in Chatbox

Open Settings → Model Provider in Chatbox Desktop and click Add. Give the provider a recognizable name, such as Jan on this Mac, and choose OpenAI API compatible as its API type. Use the custom provider’s fields so you can configure the host and request path separately.

Set API Host to http://127.0.0.1:1337 for Jan’s default port. Leave the default API Path of /v1/chat/completions in place, or enter it explicitly if the field is empty. Together those values form the request URL Jan documents. If you changed Jan’s prefix, adjust Chatbox’s path one time so the finished URL uses the new prefix. Keep the path and host separate to avoid including the version prefix twice.

Enter the Jan API key in API Key when your server has one. Add a model to the provider and use the exact ID from the Terminal list in the model entry. If Chatbox also offers a name for display, give it a description that identifies the Jan connection. Start with the plain text capabilities for the first check. Save, then click Check as described in Chatbox’s custom provider instructions. Configure a custom model provider in Chatbox.

When the check succeeds, return to chat and open a new conversation. Select the model under the Jan provider. Check the displayed provider as well as the model title if you use a similarly named build through another connection. A short test in the selected conversation gives you a clearer result than reopening a chat with a long history or several attachments.

For a Jan installation using the root prefix, the request path ends in /chat/completions without the version segment. For an installation using the default prefix, retain the full default API Path given above. Compare the assembled request with the endpoint that answers your Terminal checks. If you keep several custom providers, give each provider a name that reflects its server. The display name is useful for selecting the connection, while the model entry must retain the server’s identifier.

Verify a reply and see where it ran

Send the following text with the Jan model selected.

The north shelf is marked NB-27. The south shelf is marked SB-54.
Reply with only the north shelf code.

The expected reply is NB-27. Watch the Server Logs view in Jan around the time of the request. If verbose logging is available and enabled, look for the chat request or the corresponding activity. In a fresh conversation change the north shelf code to NB-36 and repeat. The expected reply should change to match the new input. The correct text and the matching server activity verify the route you intended to use.

If you need a local-only workflow, finish the downloads first and run another synthetic case with an unused code after disconnecting external networking. Keep both applications running and the Jan provider selected. Check the new answer and local server activity. Jan’s server can also route to configured remote providers, so the exact local model matters as much as the local address. Verify that your Mac AI setup works offline.

Find the first part of the connection that fails

If Terminal reports a refused connection, start with Jan’s status and port. If Jan reports the port is already in use, use its documented troubleshooting steps and choose a free local port if you change the configuration. Then repeat the model-list request and update API Host. Check one address at a time. A hostname or port change in Jan needs a corresponding change in the client before the old saved provider can work.

An HTTP 401 response points to authentication. Compare the key required by Jan with the key used by the failing client. An HTTP 404 can come from a path that Jan does not recognize or from a model ID it cannot find. Look at the request path in the settings and check for a repeated or missing prefix. If the model list works, compare the exact model ID in Chatbox with the server list.

If the provider check works but the message fails, repeat the fresh short chat with the same provider and watch Server Logs. A failure that appears in Jan gives you a place to check model loading or the request. If Jan receives no matching chat activity, review which Chatbox conversation and provider you selected. Remove attachments and optional integrations from the next test so the response tells you about the basic connection. Jan’s local server troubleshooting.

You can also test a text reply through Jan directly. Substitute the real ID from the list, use the port and prefix you checked, and include the Bearer header if Jan has a key. Run this small request after confirming that the local model is available. It checks chat generation through the server independently of Chatbox’s saved configuration.

curl -sS -i --noproxy 127.0.0.1 --max-time 60 \
  'http://127.0.0.1:1337/v1/chat/completions' \
  -H 'Content-Type: application/json' --data-binary @- <<'JSON'
{
  "model": "REPLACE_WITH_ID_FROM_MODEL_LIST",
  "messages": [{"role": "user", "content": "Reply with the code NB-27."}],
  "stream": false
}
JSON

Check the response message for the example code. A JSON error or a response that never completes gives you information about Jan’s inference route. A completed direct reply gives you a baseline for checking the Chatbox model entry, API Path, and credentials. If the first request after starting the server takes longer, wait for the model to load and try a second fresh request with the same model. Record whether the failure occurs before a reply begins or while it is being produced.

If text chat passes, add new capabilities one at a time. A tool call or an image attachment can require a compatible model and additional settings. Keep a short text case handy as a control. If the new feature fails and the control still passes, continue with the documentation for that feature while keeping the known working text configuration.

Save the working host, port, API path, model ID, and sample prompt for your own reference. When you change the Jan model or restart the server on another port, verify the new model list and send a new code in Chatbox before reusing the connection.