LM Studio OSS
Resolved 💬 3 comments Opened Aug 6, 2025 by tbiens Closed Oct 1, 2025
What is the type of issue?
Documentation is missing
What is the issue?
I was unable to get codex to connect with lm studio.
export CODEX_OSS_BASE_URL="http://localhost:1234/v1"
codex --oss -m "openai/gpt-oss-20b"
LM studio sees the connection attempt but it fails.
Pulling model openai/gpt-oss-20b...Error: OSS setup failed: Pull stream ended unexpectedly without success.
Asking chatgpt for assistance, it had me adjusting config.toml and no luck neither.
Where did you find it?
_No response_
3 Comments
so is it fixed?
CODEX_OSS_BASE_URL="http://localhost:1234/v1" codexwith config:
kind of works...
This issue is stil not fixed… and a proper documentation is missing.
With this config from @DocMAX it still fails for me (macOS 26 Tahoe & LMStudio). Here's a screenshot confirming LM Studio uses the "openai/gpt-oss-20b":
<img width="381" height="169" alt="Image" src="https://github.com/user-attachments/assets/75e2e0d3-75ce-443f-9381-3684482e92e2" />
It starts generating but then crashes…
<img width="1337" height="121" alt="Image" src="https://github.com/user-attachments/assets/dcb732b8-4d82-49bc-b7bb-9ad956c02eee" />
Here's the log from LM Studio: