Introduction
Cursor is a popular AI-powered IDE built on VS Code. It offers impressive code generation and file management capabilities through prompts, allowing for updates to entire classes or functions with ease. However, it's a closed-source application with a subscription model, raising concerns about cost, enterprise usage limitations, and data security due to its reliance on proprietary servers. This post explores a free, open-source alternative that leverages trusted APIs.
Finding an Open-Source Alternative
Initially, I explored the VS Code extension Claude Dev
, which offered similar functionality but only worked reliably with Anthropic's "claude-3-5-sonnet" model. Other models failed to perform file operations.
Cline: A Powerful Alternative
Recently, Claude Dev
underwent a significant update, resulting in version 2.0, renamed "Cline". This updated version supports various models and provides functionality comparable to Cursor. Let's explore how to set it up.
Setting up Cline: A Step-by-Step Guide
Step 1: Download and Install Ollama
- Go to https://ollama.com/.
- Click the "Download" button.
- Download the installer appropriate for your operating system (Windows, macOS, or Linux).
- Run the installer and follow the on-screen instructions to install Ollama.
Step 2: Download a Language Model
- Open the Ollama application.
- In the Ollama terminal, use the command
ollama pull llama3.2
to download thellama3.2
model. (You can choose other models as well, depending on your preference and needs). - Wait for the download and installation to complete. This may take some time depending on your internet connection and the model size.
Step 3: Install the Cline VS Code Extension
- Open VS Code.
- Go to the Extensions tab (usually found on the Activity Bar on the side).
- Search for "Cline".
- Install Cline
- Go to Cline setting.
- From Api provider Dropdown select Ollama. Select llama3.2 model save the setting by clicking Done button.
Now the setup iss ready and tupe your prompt in input.
Conclusion
Cline provides a compelling open-source alternative to Cursor, offering similar AI-powered coding assistance without the cost and security concerns of a closed-source solution. By leveraging Ollama and a suitable language model, you can enjoy the benefits of AI-assisted coding in a more transparent and secure environment.
Usefull Links Links:
Top comments (3)
yes we need to put this engine into powerfull car not a lowkey hardware
Now with some smaller model it's possible to have usable setup. But we can't suggest anyone to do that, for better performance GPU is must.
Loved this. I was looking for a cursor true alternative.