TL;DR
- Cline(VS Code拡張)本体は無料、AIのAPIコストはBYOK(自分払い)
- Claude Sonnet 4.5 で中規模タスク1件 ≒ $0.05〜0.06
- 月タスク数 × $0.06 が Cursor Pro($20)を超えるかどうかが判断軸
- 損益分岐:月35〜40タスク前後(使い方による)
料金体系の違い
| Cline | Cursor Pro | |
|---|---|---|
| 固定費 | $0 | $20/月 |
| AIコスト | 使った分だけ(BYOK) | 含まれる |
| エディタ | VS Code そのまま | 専用エディタへ移行 |
| Tab補完 | なし | あり |
Clineは拡張インストール自体が永久無料。Claude/GPT/Gemini等のAPIキーを自分で設定し、使用量を各プロバイダに直払いする。
トークン料金の実計算
Claude Sonnet 4.5(2026年6月時点):
入力: $3 / 1M tokens
出力: $15 / 1M tokens
中規模タスク1件の目安(コード修正・レビュー依頼など):
input_tokens = 8000 # ファイル読み込み + プロンプト
output_tokens = 2000 # 修正コード + 説明
input_cost = input_tokens / 1_000_000 * 3 # $0.024
output_cost = output_tokens / 1_000_000 * 15 # $0.030
task_cost = input_cost + output_cost # $0.054
月額シミュレーション:
def monthly_cost(tasks: int, cost_per_task: float = 0.06) -> float:
return tasks * cost_per_task
# 出力例
monthly_cost(10) # $0.60
monthly_cost(30) # $1.80
monthly_cost(100) # $6.00
monthly_cost(400) # $24.00
コストが跳ね上がるケース
大きいコードベースを扱う場合、コンテキストに渡すトークン数が増える:
# 小さいコードベース(数ファイル)
base_input = 8_000 # 約$0.024
# 中規模(10〜30ファイル渡す)
large_input = 50_000 # 約$0.15 → 1タスク$0.18
# Plan/Actモードで往復3回
plan_act_multiplier = 3
actual_cost = task_cost * plan_act_multiplier # $0.16〜$0.50
Anthropic ダッシュボードでの上限設定
過剰課金を防ぐ:
- console.anthropic.com でAPIキーを作成
- 「API Key」→「Spending Limit」で月額上限を設定(例: $5/月)
- 上限到達でAPIがエラーを返す → Clineが停止
Clineのサイドバーにも累計コストが表示される。最初の1週間は毎日確認推奨。
損益分岐の計算
cursor_pro_monthly = 20.0 # $20/month
def break_even_tasks(task_cost: float = 0.06) -> float:
return cursor_pro_monthly / task_cost
print(f"損益分岐: 月{break_even_tasks():.0f}タスク")
# → 損益分岐: 月333タスク
# ただし実際は Plan/Act 往復でコストが高くなるため
# 実態の損益分岐は月35〜50タスク前後
まとめ:どちらを選ぶか
VS Codeの設定・拡張を継続使用したい → Cline
└── 月タスク数 × $0.06 で月額を事前計算
└── Anthropicで月次上限を設定
└── Tab補完は使えない
VS Codeを捨ててもいい → Cursor Pro検討
└── 月40タスク超えてくると定額優位
└── Tab補完が生産性に直結するなら価値あり