Use Dragonfly with Cline

Cline is an autonomous AI coding agent for VS Code.

Setup

  1. Install Cline from the VS Code Marketplace
  2. Click the Cline icon in the sidebar
  3. Open Settings (gear icon)
  4. Under API Provider, select "OpenAI Compatible"
  5. Configure:
    • Base URL: https://dragonfly-api.com/v1
    • API Key: sk-df-your-key
    • Model ID: deepseek/deepseek-chat
  6. Click Save

Tips

  • For autonomous tasks: Use deepseek/deepseek-chat — good balance of capability and cost
  • For complex multi-file edits: Use deepseek/deepseek-reasoner — better reasoning
  • Cost control: Cline shows token usage per task. DeepSeek V3 at $0.27/1M means even complex agent tasks cost pennies
  • Max tokens: Set output max tokens to 4096 for most tasks, 8192 for large refactors

Cost Comparison

Running Cline with Dragonfly vs default providers:

TaskClaude OpusDeepSeek V3 (Dragonfly)Savings
Simple bug fix (~2K tokens)$0.06$0.00198%
Feature implementation (~10K)$0.30$0.00598%
Large refactor (~50K)$1.50$0.02598%