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.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallSet up the Cursor connection
- 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.
- 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.
- 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 athttps://llm.example.net, enterhttps://llm.example.net/cursor. Replace the example hostname with your own; do not omit the suffix. - 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.
- 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.
- 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
- 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.
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
Best Value
- 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
- ⌨️【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
- 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
- 【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.




