It isnt possible to connect Local Model (LM Studio)

Resolved 💬 3 comments Opened Oct 19, 2025 by Bauvater Closed Oct 22, 2025
💡 Likely answer: A maintainer (gpeal, contributor) responded on this thread — see the highlighted reply below.

What version of the VS Code extension are you using?

0.5.21

What subscription do you have?

Business

Which IDE are you using?

VS Code

What platform is your computer?

Windows 11

What issue are you seeing?

Cant connect Local Model from LM Studio

What steps can reproduce the bug?

/

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

sal562 · 10 months ago

what issue are you having?

i used a local model via LM Studio all day

make sure you use the correct ip/port, and also in Developer -> Server Settings --> Enable "Serve on Local Network"

gpeal contributor · 10 months ago

This should work given the post above, feel free to follow the docs here:
https://github.com/openai/codex/blob/main/docs/config.md?plain=1#L70

Bauvater · 9 months ago
what issue are you having? i used a local model via LM Studio all day make sure you use the correct ip/port, and also in Developer -> Server Settings --> Enable "Serve on Local Network"

I have already activated it. Would it be possible for you to provide me with your Config.toml? Because every time I write a message in Codex, I get the error "Failed".