Hardware requirements
Your available RAM determines which models you can run:Recommended model: Qwen3 Coder 30B
After extensive testing, Qwen3 Coder 30B is the most reliable model under 70B parameters for use with Cline:- 256K native context window — handles entire repositories
- Strong tool-use — reliable command execution with Cline’s format
- Consistent outputs — maintains context across multi-file tasks
Choose your runtime
- Ollama
- LM Studio
Ollama is a command-line tool for running models locally. It has lower memory overhead than LM Studio and works well for scripting and server deployments.Best for: Power users, terminal-comfortable developers, server setups.Troubleshooting Ollama:
1
Install Ollama
Visit ollama.com and download the installer for your operating system (Windows, macOS, or Linux). Run the installer and follow the prompts.
2
Download a model
Open your terminal and pull the recommended model:Browse all available models at ollama.com/search. Other capable options:The first download may take several minutes depending on model size and your connection.
3
Start the model
Ollama starts automatically after installation and runs in the background. To run the model interactively to verify it works:Keep Ollama running whenever you use it with Cline. The default server port is
11434.4
Configure Cline
- Click the settings gear icon (⚙️) in the Cline panel.
- Set API Provider to
Ollama. - Set Base URL to
http://localhost:11434/(the default — no change needed unless you’re running Ollama on a different host). - Select your downloaded model from the Model dropdown.
- Save settings.
5
Set the context window
By default, Ollama uses a small context window. For Cline, set it to the model’s maximum:Create a Then build a named model from it:Select
Modelfile to override the context size:qwen-coder-256k in Cline’s model dropdown.6
Enable compact prompts
In Cline settings, go to Features → Use Compact Prompt and toggle it on. This reduces prompt size by ~90% — essential for getting acceptable speed with local models.
- Cline can’t connect — Verify Ollama is running (
ollama listshould return results). Check that the base URL matches. - Slow responses — This is normal for local models. Enable compact prompts and consider using 4-bit quantization.
- Model errors or broken tool use — Verify
num_ctxis set correctly. Models with insufficient context cause truncated outputs.
The OpenAI-compatible endpoint pattern
Both Ollama and LM Studio expose a local HTTP server that follows the OpenAI API format. This means you can also configure them as a custom OpenAI-compatible provider in Cline if the dedicated provider option doesn’t appear:
To use this approach, select OpenAI Compatible as the provider in Cline, enter the base URL above, and enter any non-empty string as the API key (local servers don’t authenticate).
Performance expectations
Tips for better performance
- Use 4-bit quantization to maximize speed; use 8-bit if you have 64 GB+ RAM and want better quality.
- Enable compact prompts in Cline — this is the single biggest improvement you can make.
- Store models on an NVMe SSD, not a spinning hard drive.
- Close other applications to free RAM for the model.
- Enable Flash Attention if your hardware supports it.
When to use local vs. cloud models
Next steps
Model selection guide
Compare all models and find the right one for your workflow.
Context windows
Understand context limits and how to stay within them with large codebases.