Claude Code CLI
Claude Code CLI
Section titled “Claude Code CLI”Panduan menggunakan AI API SemutSSH dengan Claude Code CLI dari Anthropic.
Instalasi Claude Code
Section titled “Instalasi Claude Code”npm install -g @anthropic-ai/claude-codeKonfigurasi
Section titled “Konfigurasi”Set environment variable untuk menggunakan API SemutSSH:
export ANTHROPIC_API_KEY="sk-semut-xxxxxxxxxxxx"export ANTHROPIC_BASE_URL="https://ai.semutssh.com"Atau tambahkan ke file ~/.bashrc atau ~/.zshrc:
echo 'export ANTHROPIC_API_KEY="sk-semut-xxxxxxxxxxxx"' >> ~/.zshrcecho 'export ANTHROPIC_BASE_URL="https://ai.semutssh.com"' >> ~/.zshrcsource ~/.zshrcPenggunaan
Section titled “Penggunaan”Setelah konfigurasi, jalankan Claude Code seperti biasa:
claudeModel yang Didukung
Section titled “Model yang Didukung”claude-sonnet-4-20250514claude-opus-4-20250514
Troubleshooting
Section titled “Troubleshooting”Jika ada error, cek:
- API key sudah benar
- Base URL sudah benar
- Plan AI masih aktif
- Limit harian belum habis