Captain's AI coding agent — with Peak Protection™
The only coding agent that saves you 50% on API costs by automatically switching to Kimi when DeepSeek charges 2x during peak hours.
DeepSeek just announced peak-hour pricing: 2x cost during Beijing business hours (9AM–12PM, 2PM–6PM CST).
Athelgard is the only CLI that routes around it.
$ athelgard peak status
🐉 ATHELGARD PEAK PROTECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Current Status: 🔴 PEAK PRICING ACTIVE
Beijing Time: 09:30 CST
Your Local Time: 18:30 PST
💰 Cost Comparison (per 1M tokens):
DeepSeek Peak: $0.2800 ❌
DeepSeek Off-Peak:$0.1400
Kimi Fallback: $0.0300 ✅ AUTO-ROUTED
📋 Action: Switched to Kimi automatically
You save $0.25 per 1M tokens right now
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━How it works:
- DeepSeek peak = 9AM–12PM, 2PM–6PM Beijing time → 2x pricing
- Athelgard detects peak hours automatically
- Switches to Kimi API instantly → 89% cheaper than DeepSeek peak
- Switches back to DeepSeek off-peak → cheapest possible rate
Monthly savings: Up to 50% on API bills for heavy users.
1. Install Termux (bash terminal for Android)
- F-Droid: https://f-droid.org/packages/com.termux/
- Or search "Termux" on F-Droid (NOT Play Store)
2. Open Termux, run:
pkg update && pkg upgrade -y
pkg install nodejs git -y3. Install Athelgard:
curl -fsSL https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.sh | bash
source ~/.bashrc4. Configure API keys:
athelgard configEnter your:
- DeepSeek API key (primary, cheapest off-peak)
- Kimi API key (fallback, cheaper than DeepSeek peak)
5. Done! Test it:
athelgard status # Full system status
athelgard peak status # Check if DeepSeek is in peak pricingcurl -fsSL https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.sh | bash
source ~/.bashrc
athelgard configiwr -useb https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.ps1 | iex
athelgard configcurl -fsSL https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.sh | bash
source ~/.bashrc
athelgard configathelgard peak status # 🔴 Check DeepSeek pricing status
athelgard peak schedule # 📅 Show peak windows
athelgard peak savings # 💰 Calculate monthly savingsathelgard config # Set API keys
athelgard ask "question" # Ask DeepSeek AI (auto-routed)
athelgard chat # Interactive chat (auto-routed)
athelgard read <file> # Read file contentsathelgard status # 🌡️ Unified dashboard
athelgard api dashboard # 📊 API health & costs
athelgard api phone # 📱 Phone call analytics
athelgard git log 10 # 🕵️ Git history
athelgard map # 🗺️ Project structure
athelgard chunk file.js # 🧩 Code chunker
athelgard test-gen file.js # 🧪 Generate tests
athelgard docs readme # 📝 Generate README
athelgard vercel projects # 🚀 Vercel manager| Provider | Off-Peak | Peak | Athelgard's Choice |
|---|---|---|---|
| DeepSeek | $0.14/M ✅ | $0.28/M ❌ | Used off-peak |
| Kimi | $0.03/M ✅ | $0.03/M ✅ | Used during peak |
| GPT-4o | $5.00/M | $5.00/M | Not used |
| Claude | $3.00/M | $3.00/M | Not used |
DeepSeek peak = 9× more expensive than Kimi.
Athelgard routes intelligently so you always pay the minimum.
| Feature | Command | What It Does |
|---|---|---|
| Peak Protection | athelgard peak status |
Auto-switch to Kimi during DeepSeek peak |
| Status Dashboard | athelgard status |
Live sites + scores + API costs + system health |
| Baseline Monitor | node baseline-pro.js barometer |
Check if sites are better than before |
| API Tracker | athelgard api dashboard |
Track DeepSeek usage, costs, latency |
| Git Intelligence | athelgard git stats |
Repo stats, contributors, blame |
| Prompt Engineer | athelgard prompt engineer |
Interactive prompt builder |
| Vercel Manager | athelgard vercel deploys |
Deployments, env vars, domains |
| Service | Connection | Status |
|---|---|---|
| DeepSeek API | Primary (cheapest off-peak) | ⚙️ Needs your API key |
| Kimi API | Fallback (cheaper than DeepSeek peak) | ⚙️ Optional |
| GitHub | Repo browsing | ⚙️ Optional |
| Vercel | Deployments | ⚙️ Optional |
| Supabase | Phone call logs | ⚙️ Optional |
"command not found: athelgard"
source ~/.bashrc
export PATH="$HOME/.local/bin:$PATH""No API keys configured"
athelgard config"DeepSeek 429 rate limit"
athelgard peak status
# If peak hours → Kimi is already routed
# If off-peak → wait or add Kimi key for manual fallbackWithout Peak Protection:
- 10M tokens/month, all DeepSeek
- Peak hours = 29% of month
- Cost = $1.82/month
With Peak Protection:
- 10M tokens/month, DeepSeek off-peak + Kimi peak
- Cost = $0.81/month
You save: $1.01/month (55% cheaper)
Built by MakoThoth-KClaw for Captain. Peak Protection™ — The only CLI that saves you money automatically.