Recommended Free Tools
To use an LM Studio model in VS Code, start LM Studio’s local API server, then configure a VS Code AI extension to use the server’s API and the model ID it exposes. For the common same-computer setup, the OpenAI-compatible base URL is http://localhost:1234/v1. The exact settings depend on the extension: this guide uses Continue’s documented LM Studio provider.
1. Load a model and start LM Studio’s server
- Load or select a model in LM Studio so it is available to the server.
- Start the API server: in LM Studio, open the Developer tab and enable Start server. Or run
lms server startin a terminal. The CLI uses the last-used port if you do not specify one; check LM Studio’s server settings if you have changed it. Port1234is common, but is not guaranteed. - Check which model ID the server exposes. Request
GET http://localhost:1234/v1/modelsin a suitable HTTP client, adjusting the port if needed. Use the model identifier returned by the server in your extension configuration.
LM Studio documents its server controls and CLI at LM Studio as a Local LLM API Server and lms server start.
2. Configure Continue in VS Code
Continue’s LM Studio provider configuration uses provider: lmstudio, a model identifier, and optionally an API base URL. Its documented default is http://localhost:1234/v1. Add a model entry like this to your Continue YAML configuration, replacing <MODEL_ID> with the ID returned by the server:
name: My Config
version: 0.0.1
schema: v1
models:
- name: My Local Model
provider: lmstudio
model: <MODEL_ID>
# Optional; default is http://localhost:1234/v1
apiBase: http://localhost:1234/v1
The apiBase line is optional when you use the default local address. If your server uses a different host or port, set apiBase to its actual base URL. Continue’s current provider page documents YAML configuration and marks JSON as deprecated: Continue’s LM Studio provider configuration.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
3. Test the connection
With the model loaded, server running, and extension configured, send a prompt through Continue. If the request fails, check these items in order:
- Server status: confirm LM Studio’s Developer tab shows the server as running, or start it with
lms server start. - Host and port: make sure the extension’s base URL matches the server’s effective address. A changed port means the default
1234URL will not work. - Model ID: check
/v1/modelsand use an identifier actually exposed by the server. - API family: confirm the extension is configured for the endpoint type you are using. OpenAI-compatible endpoints and LM Studio’s native REST endpoints are not interchangeable.
These checks follow from LM Studio’s API and Continue’s configuration requirements; extension-specific error messages and settings can vary.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
4. Choose the endpoint family your extension supports
Continue has a dedicated LM Studio provider. Other VS Code integrations may instead offer generic OpenAI compatibility; in that case, use the API mode and base URL the extension documents. LM Studio lists OpenAI-compatible endpoints including /v1/models, /v1/chat/completions, /v1/responses, /v1/embeddings, and /v1/completions. An extension need not support every endpoint or feature, so check its own configuration guidance. Microsoft’s overview describes language-model integration options in VS Code: AI language models in VS Code. See also LM Studio’s OpenAI Compatibility Endpoints.
LM Studio also has a native REST API using /api/v1/* paths. That is a separate API family from the OpenAI-compatible /v1/* endpoints; do not enter a native /api/v1 URL in a setting intended for OpenAI compatibility unless the extension explicitly supports LM Studio’s native API. LM Studio says native v1 REST API support was introduced in version 0.4.0 and recommends it for native REST use. Details are in LM Studio Integrations and the LM Studio API documentation.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
5. Use localhost or configure access carefully
For an extension running on the same computer as LM Studio, localhost is the straightforward choice. If VS Code runs on another computer, its configured host must be reachable from that computer; a local-only address will not automatically make the server available across a network.
LM Studio can bind its server beyond 127.0.0.1 for local-network access. Doing so exposes the server beyond the machine, so LM Studio recommends enabling authentication. Its server settings also cover port, authentication, CORS, local-network serving, and just-in-time model loading. Enable CORS only if your application context requires cross-origin access; a browser-based or cross-origin integration may need it, while a same-machine integration may not. Review LM Studio Server Settings and the server-start CLI guidance before exposing a server to other devices.
Quick Recap
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

