8000 GitHub - imah12/Open-cursor: This is for dudes that want to use that ai chat feature in IDE's like cursor and windsurf without breaking the bank and having a limit amount of prompts from premium models that still spit out the same outputs as free-models.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This is for dudes that want to use that ai chat feature in IDE's like cursor and windsurf without breaking the bank and having a limit amount of prompts from premium models that still spit out the same outputs as free-models.

Notifications You must be signed in to change notification settings

imah12/Open-cursor

Repository files navigation

Open-Cursor

💻 Free AI Chat in Cursor IDE Using OpenRouter

This is a guide for y'all that want to use that AI chat feature in IDE's like Cursor and Windsurf without breaking the bank and having a limited amount of prompts from premium models that spit out the same outputs as free-models.

I will be using ai to grammatically clean up the steps below so you can read what I type out coherently

🔧 Prerequisites

  • Install Cursor IDE on your device.

    • Do not pay for the subscription.
    • Do not start the free trial — just use the free tier.
  • Sign up at OpenRouter.ai.

    • Do not top up your account unless you want to try premium models like OpenAI’s o1 or Claude Sonnet 3.7.

6D9C

🚀 Setup Instructions

  1. Open Cursor and go to:

    • Cursor Settings > Models go_to_cursor_settings
  2. Scroll to the OpenAI API Key section.

api_key_models_cursor_settings

  1. In a separate tab, go to OpenRouter.ai.

  2. Hover over the dropdown in the top-right and select Keys.

openrouter_menu

  1. Create a new API key:
    • Name it anything you want.
    • Leave the credit limit blank (we're not spending money).

openrouter_cursorkey1

  1. Copy the API key. {Store anywhere you want fam, or maybe practice them security habits}

openrouter_cursorkey2

  1. Back in Cursor:
    • Paste your API key into the OpenAI API Key field.

    • For the Base URL, use:

      https://openrouter.ai/api/v1
      

place_key_and_url

  1. Click verify — this should only take a few seconds. {if it doesn't work and u typed in your key, check your spelling! }

🤖 Choosing Free Models [The Fun Part]

  1. On OpenRouter, go to the Models tab.

openrouter_models1

  1. On the sidebar, adjust the Prompt Pricing slider to FREE.

  2. Choose any model you like. In this case for various reasons we're choosing Deepseek r1(free) cough, cough:
    Type in and press on deepseek r1 free

openrouter_models2

  1. Copy the model code. [Below the Title DeepSeek: R1 (free)]

  2. Back in Cursor:

    • Click Add Model.
    • Paste the model code into the name field.

add_model

  1. Bonus feature Repeat to add as many free models as you want.

Models I use and reccommend

The Free ones hahahahaha... moving on!


💡 NOW Test the Setup!!!

  1. Create a folder called Code and in it a simple Python file (e.g., hello.py) in Cursor. [I'll assume you know how to create a .py file in a IDE]

  2. Click the Right-Side panel icon and then the AI chat icon (top-right of the Cursor IDE).

  3. Select the model in the prompt input box(e.g., deepseek/deepseek-r1:free).

  4. Ask:

    How do I print "Hello World" in Python?
    

    It will take a second as R1 is a reasoning model

  5. Now lets break it, remove a quotation mark from the end of hello world. code_error

  6. Ask your ai chhat, why is my code not working? code_error_response

  7. It should tell you about a syntax error due to an unclosed string literal you didn't close the quote

In conclusion:

Thats it, now you can "VIBE-CODE" without having to swap back and forth between your IDE and Openai to code your tech startup Just kidding unless you did do that... anyway this should work fine and If you any better way of doing this please pull request if u wanna help make this more efficent and accuarate and stuff.

About

This is for dudes that want to use that ai chat feature in IDE's like cursor and windsurf without breaking the bank and having a limit amount of prompts from premium models that still spit out the same outputs as free-models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0