connect to LM Studio within WSL

Open
#1,055 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
ai, cli

Research direction

Start by reproducing the jcode provider add command from the issue with LM Studio running in Windows and WSL. Trace the --base-url validation that rejects host.docker.internal; done means the documented WSL URL is accepted and the provider can connect to the specified model.

Written by the indexing model from the issue text.

Description

autonomous: no enhancement triage: needs-decision

Hi All,

my lmstudio is running on my Host Windows 11 PC
when i login into WSL, the base URL should be http://host.docker.internal:1234/v1/ but iam not allowed to add this.

this is what i tried

jcode provider add lmstudio-docker --base-url http://host.docker.internal:1234/v1/ --model bonsai-27b                   
Error: Invalid --base-url 'http://host.docker.internal:1234/v1/'. Use https://... or http://localhost/127.0.0.1/private-LAN for local servers.

am using it wrong?

Dominant language
Rust
Stars
19.9k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
30

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 1jehuang/jcode

All issues in 1jehuang/jcode

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.