Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk3 min

How do you use a LiteLLM model in Cursor?

Connect Cursor to LiteLLM Proxy by setting the /cursor base URL, entering a virtual key, and adding the configured public model name. Learn the supported modes and how to troubleshoot connection errors.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To use a LiteLLM model in Cursor, point Cursor’s OpenAI-compatible base URL at your reachable LiteLLM Proxy with /cursor at the end, enter a LiteLLM virtual key, and add the public model name configured in LiteLLM. The documented custom-key workflow supports Ask and Plan; it does not route every Cursor feature through LiteLLM.

Before you start

LiteLLM Proxy is a self-hosted, OpenAI-compatible gateway: Cursor sends requests to the proxy, which forwards them to the upstream provider and model you have configured. LiteLLM’s Getting Started documentation describes the general compatibility design; that does not mean every Cursor feature uses the proxy.

As an Amazon Associate I earn from qualifying purchases.

  • A LiteLLM Proxy that is running and reachable from the computer running Cursor.
  • A public model name configured in LiteLLM’s model_list, mapped to the actual upstream provider, model or deployment, and provider credentials.
  • A LiteLLM virtual key permitted to use that public model.

LiteLLM’s setup example uses port 4000 and an Azure deployment, but those are example values, not requirements for every configuration. Use your own provider, model, proxy address, and credentials.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set up the Cursor connection

  1. Check the proxy. Confirm your LiteLLM Proxy is running and that its address is reachable from your machine. The proxy must have the model configured under a public name that you can enter in Cursor.
  2. Create a virtual key. In the LiteLLM interface, go to Virtual Keys → + Create New Key. Select the model the key is allowed to access, create the key, and copy it. LiteLLM documents virtual keys as a way to control model access and track spend. See its virtual key documentation.
  3. Set Cursor’s base URL. In Cursor, open Settings → Models, enable Override OpenAI Base URL, and enter your proxy’s reachable base address followed by /cursor. For example, if your proxy is hosted at https://llm.example.net, enter https://llm.example.net/cursor. Replace the example hostname with your own; do not omit the suffix.
  4. Enter the LiteLLM key. Paste the virtual key into Cursor’s OpenAI API Key field. Treat it like a password: do not put it in screenshots, source control, or public examples.
  5. Add the model in Cursor. Select + Add Custom Model and enter the public model name shown in LiteLLM’s Models + Endpoints view. Enable the model in Cursor so it can be selected.
  6. Send a small test in Ask mode. Select the custom model in Ask and submit a simple prompt. The cited LiteLLM integration guide documents this custom-key workflow for Ask and Plan, but says Agent mode is unsupported. Product behavior can change, so check the current LiteLLM Cursor integration guide if the mode behavior differs in your version.

What the connection does—and does not—cover

Cursor’s custom API key is not a switch that sends every AI feature through LiteLLM. Cursor’s API Keys documentation says custom keys work with standard chat models; specialized features such as Tab Completion continue to use Cursor’s built-in models. The LiteLLM guide also describes the custom-key workflow as available in Ask and Plan, not Agent. Plan accordingly if you need a particular feature or mode to use your proxy.

#1 Best Overall
Sale
Logitech K400 Plus Wireless Touch TV Keyboard for PC-Connected TV - Black
  • Media-Friendly: The K400 Plus wireless touch TV keyboard gives you integrated, comfortable control of your PC-to-TV entertainment, eliminating the clutter of a separate keyboard and mouse
  • Plug-and-Play: Simply plug the Unifying receiver into a USB port and the wireless touchpad keyboard is ready to go; adjust controls using the Logitech Options Software to save preferred settings
  • Power-Packed: Built with laid-back control in mind, this wireless TV keyboard has a reliable and long battery life of up to 18 months (2), including an on/off button to help it go even longer
  • Wireless Freedom: Designed for seamless comfort and control, this HTPC keyboard boasts a range of up to 33 ft (1) wireless connectivity, with quiet keys and a large touchpad for easy navigation
  • Broad Compatibility: Designed for use with Windows 7, Windows 8, Windows 10 and later, Android 7 or later, and Chrome OS

Fix common connection problems

Cursor gets no response

  • Check that the URL in Override OpenAI Base URL ends in /cursor.
  • Confirm the proxy is running and reachable from the machine running Cursor.
  • Verify that the virtual key is allowed to access the selected model.

Cursor reports an authentication error

  • Make sure the value in OpenAI API Key is the LiteLLM virtual key, not the upstream provider’s key.
  • Check that the key was copied completely. The integration guide says the expected key prefix is sk-.
  • If the key may have been exposed or is invalid, regenerate it in LiteLLM and update Cursor with the replacement.

The model is missing or unavailable

  • Compare the name entered under + Add Custom Model with the public model name in LiteLLM’s Models + Endpoints view.
  • Confirm the model is enabled in Cursor and that the virtual key has permission to use it.
  • Check that the configured public model name maps to a valid upstream provider and model in LiteLLM.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Understand the routing boundary

With this setup, supported Cursor chat requests go to LiteLLM, and LiteLLM forwards them according to its model configuration. The virtual key controls which configured model the request may use. It does not make unsupported Cursor features compatible, nor does it establish that all traffic from Cursor is routed through your proxy.

Quick Recap

SaleBestseller No. 1
Logitech K400 Plus Wireless Touch TV Keyboard for PC-Connected TV - Black
Logitech K400 Plus Wireless Touch TV Keyboard for PC-Connected TV - Black
Product carbon footprint: 4.9 kg CO2e Certified carbon neutral
$32.06
SaleBestseller No. 5
Vilros 15 Inch USB Keyboard with Touchpad-Great For Raspberry Pi
Vilros 15 Inch USB Keyboard with Touchpad-Great For Raspberry Pi
15 Inch Keyboard with Trackpad; Standard USB Interface is great for Raspberry Pi or any Device with a USB Input
$36.99
Best Value
Sale
Vilros 15 Inch USB Keyboard with Touchpad-Great For Raspberry Pi
  • 15 Inch Keyboard with Trackpad
  • Standard USB Interface is great for Raspberry Pi or any Device with a USB Input
  • Ultra Slim Design
Rank #4
Bnnwa Multi-Device Wireless Bluetooth Keyboard with Touchpad-QWERTY
  • ⌨️【3 Devices Connection】 This Bluetooth keyboard with touchpad ensures a stable and cable-free connection, Wireless 2.4 GHz connection with 33 feet (10m) operating range. Easily switch between 3 devices, You can switch between 3 devices with a single key clicking without any interference or disconnection,greatly upgrade your work efficiency.
  • ⌨️【TWO-IN-ONE Keyboard】The wireless keyboard touchpad is a multi-use keyboard that can work with your laptops, phones, tablets, computers.Features a multi-touch trackpad to provide effortless navigation. Available gestures to achieve pointing, zooming and scrolling function.Give you an integrated and cozy control of your daily office work and HTPC entertainment, and record your inspiration anytime.
  • ⌨️【Ultra-slim and Durable】Our wireless keyboard with touchpad made of premium ABS, which is wear-resistant and words are not easily worn away. Ergonomically designed smart keyboard, lightweight and portable. Compact key layout, it is not only has the commonly used buttons in Zone 1, but also retains the direction buttons, which greatly saves space. Easy to carry around.Perfect for office work, travel, library, etc.
  • ⌨️【Power-saving & Auto-sleep】When the wireless compact keyboard is not used for more than 30 minutes, the keyboard will automatically enter the sleep mode and the indicator light will go off, please press any key to wake up. Energy-saving feature can extends battery life. Inactive within 30 minutes and press any key to wake up. (Note: Need to press the Fn key at the same time to lock the touchpad.)
  • ⌨️【Compatible with Multiple Systems】 Our Wireless bluetooth touch keyboard with 12 combinations of multimedia shortcuts, it is fully functional. The wireless portable keyboard support Android, Microsoft, IOS, MAC OS and computers, etc.for iPad, iPhone, MacBook, Android, Windows, .
Rank #3
Sale
Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
  • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
  • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
  • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
  • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
  • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites
Rank #2
K808 Mini Bluetooth Keyboard with Touchpad, 7-Color Backlit
  • 【DUAL MODE CONNECTION】 Switch effortlessly between 2.4G and Bluetooth. The included USB receiver auto-pairs for 2.4G mode (ideal for PCs/TVs). Bluetooth mode frees up ports for modern laptops, tablets, and smartphones,suitable for smart TV users, HTPC players, projector presenters, and Android TV Box users,the compact and portable size makes it extremely convenient for IT workers, field technicians, and anyone who travels with multiple devices.Plus, a built-in laser pointer adds extra utility for presentations.
  • 【FLIP-OPEN TOUCHPAD & MOUSE KEYS】 Navigate your smart TV or HTPC from the couch. Unique rotating 90° touchpad(Press FN+Alt) and dedicated left/right buttons replicate your laptop’s experience, making tedious on-screen typing and clicking a thing of the past.
  • 【7-COLOR BACKLIT & COMPACT DESIGN】 Perfect for home theater PC (HTPC) and bedroom use. The eye-catching backlit keys allow easy typing in the dark, while the ultra-portable size (approx. 6*2.33*0.51 inches) slips into any bag for travel or the office.
  • 【RECHARGEABLE & LONG STANDBY】 No constant battery swaps. The built-in 600mAh rechargeable battery charges via Type-C and includes an auto-sleep/wake function to maximize power, so it’s always ready when you need it.
  • 【WIDE COMPATIBILITY & PEACE OF MIND】 Works with Windows, Android, iOS, Smart TV, PC, and more. Backed by responsive customer support to ensure a smooth setup and long-lasting satisfaction.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.