Use Dragonfly with Cline
Cline is an autonomous AI coding agent for VS Code.
Setup
- Install Cline from the VS Code Marketplace
- Click the Cline icon in the sidebar
- Open Settings (gear icon)
- Under API Provider, select "OpenAI Compatible"
- Configure:
- Base URL:
https://dragonfly-api.com/v1 - API Key:
sk-df-your-key - Model ID:
deepseek/deepseek-chat
- Base URL:
- 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:
| Task | Claude Opus | DeepSeek V3 (Dragonfly) | Savings |
|---|---|---|---|
| Simple bug fix (~2K tokens) | $0.06 | $0.001 | 98% |
| Feature implementation (~10K) | $0.30 | $0.005 | 98% |
| Large refactor (~50K) | $1.50 | $0.025 | 98% |