model-selection-guide.mdx 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ---
  2. title: "Model Selection Guide"
  3. description: "Last updated: August 20, 2025."
  4. ---
  5. New models drop constantly, so this guide focuses on what's working well with Cline right now. We'll keep it updated as the landscape shifts.
  6. <Callout type="tip">
  7. **New to model selection?** Start with [Module 2 of Cline's Learning Path](https://cline.bot/learn) for a comprehensive guide to choosing and configuring models.
  8. </Callout>
  9. ## What is an AI Model?
  10. Think of an AI model as the "brain" that powers Cline. When you ask Cline to write code, fix bugs, or refactor your project, it's the model that actually understands your request and generates the response.
  11. **Key points:**
  12. - **Models are trained AI systems** that understand natural language and code
  13. - **Different models have different strengths** some excel at complex reasoning, others prioritize speed or cost
  14. - **You choose which model Cline uses** like picking between different experts for different tasks
  15. - **Models are accessed via API providers** - companies like Anthropic, OpenAI, and OpenRouter host these models
  16. **Why it matters:** The model you choose directly impacts Cline's capabilities, response quality, speed, and cost. A premium model might handle complex refactoring beautifully but cost more, while a budget model works great for routine tasks at a fraction of the price.
  17. ## How to Select a Model in Cline
  18. Follow these 5 simple steps to get Cline up and running with your preferred AI model:
  19. ### Step 1: Open Cline Settings
  20. First, you need to access Cline's configuration panel.
  21. **Two ways to open settings:**
  22. - **Quick method**: Click the **gear icon (⚙️)** in the top-right corner of Cline's chat interface
  23. - **Command palette**: Press **Cmd/Ctrl + Shift + P** → type "Cline: Open Settings"
  24. <Frame>
  25. <img src="https://storage.googleapis.com/cline_public_images/step1-config.png" alt="Cline Settings Panel" />
  26. </Frame>
  27. The settings panel will open, showing configuration options with "API Provider" at the top.
  28. <Note>
  29. The settings panel remembers your last configuration, so you'll only need to set this up once.
  30. </Note>
  31. ### Step 2: Select an API Provider
  32. Choose your preferred AI provider from the dropdown menu.
  33. <Frame>
  34. <img src="https://storage.googleapis.com/cline_public_images/step2-provider.png" alt="Cline Settings Panel" />
  35. </Frame>
  36. **Popular providers at a glance:**
  37. | Provider | Best For | Notes |
  38. |----------|----------|-------|
  39. | **Cline** | Easiest setup | No API keys needed, access to multiple models including stealth models |
  40. | **OpenRouter** | Value seekers | Multiple models, competitive pricing |
  41. | **Anthropic** | Reliability | Claude models, most dependable tool usage |
  42. | **OpenAI** | Latest tech | GPT models |
  43. | **Google Gemini** | Large context | Google's AI models |
  44. | **AWS Bedrock** | Enterprise | Advanced features |
  45. | **Ollama** | Privacy | Run models locally |
  46. See the [full provider list](/provider-config) for more options including Cerebras, Vertex AI, Azure, and more.
  47. <Info>
  48. **Recommended for beginners:** Start with **Cline** as your provider - no API key management needed, instant access to multiple models, and occasional free inferencing through partner providers.
  49. </Info>
  50. ### Step 3: Add Your API Key (or Sign In)
  51. The next step depends on which provider you selected.
  52. #### If you selected **Cline** as your provider:
  53. - **No API key needed!** Simply sign in with your Cline account
  54. - Click the **Sign In** button when prompted
  55. - You'll be redirected to [app.cline.bot](https://app.cline.bot) to authenticate
  56. - After signing in, return to your IDE
  57. #### If you selected any other provider:
  58. You'll need to get an API key from your chosen provider:
  59. 1. **Visit your provider's website to get an API key:**
  60. - **Anthropic**: [console.anthropic.com](https://console.anthropic.com/)
  61. - **OpenRouter**: [openrouter.ai/keys](https://openrouter.ai/keys)
  62. - **OpenAI**: [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
  63. - **Google**: [aistudio.google.com/apikey](https://aistudio.google.com/apikey)
  64. - **Others**: See [Provider Setup Guide](/provider-config)
  65. 2. **Generate a new API key** on the provider's website
  66. 3. **Copy the API key** to your clipboard
  67. 4. **Paste your key** in the **"API Key"** field in Cline settings
  68. 5. **Save automatically** - Your key is stored securely in your editor's secrets storage
  69. <Frame>
  70. <img src="https://storage.googleapis.com/cline_public_images/step3-API.png" alt="Cline API Selection" />
  71. </Frame>
  72. <Warning>
  73. **Payment required for most providers**: Most providers need payment information before generating keys. You only pay for what you use (typically $0.01-$0.10 per coding task).
  74. </Warning>
  75. ### Step 4: Choose Your Model
  76. Once your API key is added (or you've signed in), the **"Model"** dropdown becomes available.
  77. <Frame>
  78. <img src="https://storage.googleapis.com/cline_public_images/step4-model.png" alt="Cline Model Selection" />
  79. </Frame>
  80. **Quick model selection guide:**
  81. | Your Priority | Choose This Model | Why |
  82. |---------------|-------------------|-----|
  83. | **Maximum reliability** | Claude Sonnet 4.5 | Most reliable tool usage, excellent at complex tasks |
  84. | **Best value** | DeepSeek V3 or Qwen3 Coder | Great performance at budget prices |
  85. | **Fastest speed** | Qwen3 Coder on Cerebras | Lightning-fast responses |
  86. | **Run locally** | Any Ollama model | Complete privacy, no internet needed |
  87. | **Latest features** | GPT-5 | OpenAI's newest capabilities |
  88. Not sure which to pick? Start with **Claude Sonnet 4.5** for reliability or **DeepSeek V3** for value.
  89. <Tip>
  90. You can switch models at any time without losing your conversation. Try different models to find what works best for your specific tasks.
  91. </Tip>
  92. See the [model comparison tables](#current-top-models) below for detailed specifications and pricing.
  93. ### Step 5: Start Using Cline
  94. **Congratulations! You're all set up.** Here's how to start coding with Cline:
  95. 1. **Type your request** in the Cline chat box
  96. - Example: "Create a React component for a login form"
  97. - Example: "Debug this TypeScript error"
  98. - Example: "Refactor this function to be more efficient"
  99. 2. **Press Enter** or click the send icon to submit
  100. ## Choosing the Right Model
  101. Selecting the right model involves balancing several factors. Use this framework to find your ideal match:
  102. <Note>
  103. **Pro tips**: Configure separate models for Plan Mode and Act Mode. Make the most out the each model's strengths. For example, use a budget model for planning discussions and a premium model for implementation.
  104. </Note>
  105. ### Key Selection Factors
  106. | Factor | What to Consider | Recommendation |
  107. |--------|------------------|----------------|
  108. | **Task Complexity** | Simple fixes vs complex refactoring | Budget models for routine tasks; Premium models for complex work |
  109. | **Budget** | Monthly spending capacity | \$10-\$30: Budget, \$30-\$100: Mid-tier, \$100+: Premium |
  110. | **Context Window** | Project size and file count | Small: 32K-128K, Medium: 128K-200K, Large: 400K+ |
  111. | **Speed** | Response time requirements | Interactive: Fast models, Background: Reasoning models OK |
  112. | **Tool Reliability** | Complex operations | Claude excels at tool usage; Test others with your workflow |
  113. | **Provider** | Access and pricing needs | OpenRouter: Many options, Direct: Faster/reliable, Local: Privacy |
  114. ## Model Comparison Resources
  115. For detailed model comparisons, pricing, and performance metrics, see:
  116. - [**Model Comparison & Pricing**](/model-config/model-comparison) - Complete pricing tables and performance benchmarks
  117. - [**Context Window Guide**](/model-config/context-windows) - Understanding and optimizing context usage
  118. ## Open Source vs Closed Source
  119. ### Open Source Advantages
  120. - **Multiple providers** compete to host them
  121. - **Cheaper pricing** due to competition
  122. - **Provider choice** - switch if one goes down
  123. - **Faster innovation** cycles
  124. ### Open Source Models Available
  125. - **Qwen3 Coder** (Apache 2.0)
  126. - **Z AI GLM 4.5** (MIT)
  127. - **Kimi K2** (Open source)
  128. - **DeepSeek series** (Various licenses)
  129. ## Quick Decision Matrix
  130. | If you want... | Use this |
  131. |----------------|----------|
  132. | Something that just works | Claude Sonnet 4.5 |
  133. | To save money | DeepSeek V3 or Qwen3 variants |
  134. | Huge context windows | Gemini 2.5 Pro or Claude Sonnet 4.5 |
  135. | Open source | Qwen3 Coder, Z AI GLM 4.5, or Kimi K2 |
  136. | Latest tech | GPT-5 |
  137. | Speed | Qwen3 Coder on Cerebras (fastest available) |
  138. ## What Others Are Using
  139. Check [OpenRouter's Cline usage stats](https://openrouter.ai/apps?url=https%3A%2F%2Fcline.bot%2F) to see real usage patterns from the community.