Skip to content

Using cloud models

ChatBots edited this page Sep 30, 2026 · 6 revisions

Using cloud models

You do not have to run the models on your Mac. Either seat can talk to any server that speaks the OpenAI Responses API instead — DeepSeek, OpenAI itself, or LM Studio running on the same machine.

This is worth doing if:

  • you would rather not run a model on this Mac,
  • your Mac is short on memory,
  • or you want to compare models against each other.

Setting it up in the app

  1. In a pane, change the backend from MLX to API.
  2. Click API in the toolbar to open the endpoint sheet.
  3. The sheet already points at DeepSeek — https://api.deepseek.com/v1, deepseek-flash — so these three fields are only there to change it:
Field What it is The default
Base URL The server's address, including /v1 if it uses one https://api.deepseek.com/v1
Model The model's name as that server knows it deepseek-flash, shown as DeepSeek V4.1 Flash
API key The bearer token, if the server wants one the key it found, from the file or the environment below
  1. Close the sheet and press Start.

Each seat has its own endpoint, so you can put one on a cloud model and leave the other local.

DeepSeek

A key can be supplied in three ways, in this order:

  1. Typed into the endpoint sheet — the field in the API dialog.
  2. An environment variable — DEEPSEEK_API_KEY in your shell.
  3. A local file, ChatBots/.secrets.env:
# .secrets.env  — gitignored, never committed
DEEPSEEK_API_KEY=sk-your-key-here
TAVILY_API_KEY=tvly-dev-your-key-here

The file is the practical route: present and working, but never in the repository. It is gitignored by default.

Those values are already filled in, so the file or the environment variable is the setup:

Base URL:  https://api.deepseek.com/v1
Model:     deepseek-flash          (or deepseek-v4-pro)
API key:   leave blank — the sheet shows the key it found

Both models work. flash is faster; pro is slower and reasons more. Whatever you type, the sheet names the model the way its maker does: deepseek-flash reads as DeepSeek V4.1 Flash.

Cloud seats want slowing down. DeepSeek answers several times faster than anyone can read, so the desktop app's Slow down switch is on by default and holds every seat to about ten tokens a second; the website has the same control on each seat, beside the checkpoint picker. See Using the desktop app and Using the website.

Security note. A key is only ever sent to api.deepseek.com, and that host is compared exactly rather than by substring. A key is never sent to a local server or to a lookalike domain. If you add your own key, treat it as a secret: anyone with it can spend your credit.

No key ships with this repository. They are read from the environment or from the gitignored .secrets.env, shown above, and there is no compiled-in default. Nothing you type into the endpoint sheet leaves your Mac except to the endpoint you chose.

LM Studio, on the same Mac

If LM Studio is running with a model loaded, it serves an OpenAI-compatible API already — no download needed by this app at all.

Base URL:  http://localhost:1234/v1
Model:     whatever LM Studio shows as the model id
API key:   leave blank

This is the quickest way to try the app without a 3 GB download.

OpenAI and other hosted providers

Base URL:  https://api.openai.com/v1
Model:     gpt-4o-mini      (or any model your account can use)
API key:   sk-…

OpenAI is stricter about what it accepts than most servers, and the app knows this: it sends the extra sampling parameters (top_k, min_p, repetition_penalty) to servers that understand them and withholds them from OpenAI, which would reject them.

Thinking controls

The think: menu per seat maps to the server's reasoning effort where it supports one:

Setting What is sent
Off reasoning: {effort: "none"}
Minimal / Low "low"
Medium "medium"
High / Unlimited "high"

Thinking off really does switch it off for servers that honour it. There is a floor on the output budget either way, because a server counts reasoning tokens against the same ceiling as the answer — with a ceiling that is too small, a reasoning model spends all of it thinking and returns nothing at all.

What you lose by going to the cloud

Two things, and they are worth knowing before you switch:

  • Web search. The web_search and fetch_page tools run inside this app, so they only exist on the local backend. An API-backed seat has no tools, and the log says so when it starts.
  • Images, usually. Image upload needs a model that can see. The local Qwen checkpoint can. Most text-only API models cannot, and one that cannot will tell you so rather than invent a description.

Mixing local and cloud in one conversation

This works, and is one of the more interesting things you can do — a 4B model arguing with DeepSeek is a genuinely uneven fight, which is often the point.

Set one pane to MLX and the other to API. Both read the same shared log, so the conversation stays coherent even though the models are running in completely different places.

Checking it works before starting a conversation

chatbots-cli --check --backend-a openAIResponses \
  --base-url https://api.deepseek.com/v1 \
  --api-model deepseek-flash

--check loads the seat and generates a few tokens, then exits. If that works, a conversation will.

When it does not work

Symptom Likely cause
Server returned HTTP 401 The key is wrong, expired, or not being sent
Server returned HTTP 404 The base URL is wrong — check for a missing or doubled /v1
The model name is rejected Use the id the server uses, not the name on its website
It connects but returns nothing The model is a reasoning model and the output ceiling is too small; raise the thinking level or the max tokens
I cannot see image / I cannot view the image That model has no vision — DeepSeek's pro tier is one. Its flash tier does read images, so this is per model, not per provider. Drop the image or use a seat that can see

Next: Documents and images · Troubleshooting

Clone this wiki locally