Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

Latest commit

 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦉 ATHELGARD CLI

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.


🔴 PEAK PROTECTION™ — THE FLAGSHIP FEATURE

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:

  1. DeepSeek peak = 9AM–12PM, 2PM–6PM Beijing time → 2x pricing
  2. Athelgard detects peak hours automatically
  3. Switches to Kimi API instantly → 89% cheaper than DeepSeek peak
  4. Switches back to DeepSeek off-peak → cheapest possible rate

Monthly savings: Up to 50% on API bills for heavy users.


📱 INSTALL ON ANDROID (Termux)

1. Install Termux (bash terminal for Android)

2. Open Termux, run:

pkg update && pkg upgrade -y
pkg install nodejs git -y

3. Install Athelgard:

curl -fsSL https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.sh | bash
source ~/.bashrc

4. Configure API keys:

athelgard config

Enter 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 pricing

💻 INSTALL ON MAC/LINUX

curl -fsSL https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.sh | bash
source ~/.bashrc
athelgard config

🖥️ INSTALL ON WINDOWS (PowerShell)

iwr -useb https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.ps1 | iex
athelgard config

Requires: Git and Node.js


🖥️ INSTALL ON WINDOWS (WSL)

curl -fsSL https://raw.githubusercontent.com/NyxSpecter4/athelgard-cli/master/install.sh | bash
source ~/.bashrc
athelgard config

🚀 COMMANDS

Peak Protection (Flagship)

athelgard peak status       # 🔴 Check DeepSeek pricing status
athelgard peak schedule     # 📅 Show peak windows
athelgard peak savings      # 💰 Calculate monthly savings

Core

athelgard config            # Set API keys
athelgard ask "question"    # Ask DeepSeek AI (auto-routed)
athelgard chat              # Interactive chat (auto-routed)
athelgard read <file>       # Read file contents

Skills

athelgard 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

🔴 WHY PEAK PROTECTION MATTERS

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.


📊 WHAT YOU GET

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

🔗 CONNECTED SERVICES

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

🛠️ TROUBLESHOOTING

"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 fallback

💸 COST EXAMPLE

Without 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.

About

Athelgard CLI - AI Coding Agent

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages