Kiro AI sebagai Backend
Claude Sonnet 4.5 unlimited gratis. Best free option per Mei 2026 buat agent yang butuh model bagus.
Apa itu Kiro
Kiro adalah AI coding assistant dari AWS (launched 2025). Awalnya untuk IDE/coding, tapi sekarang exposed API-nya bisa diakses lewat 9Router.
Yang lo dapet (per Mei 2026):
- Claude Sonnet 4.5 — flagship Anthropic, kualitas top tier
- Claude Haiku 4.5 — versi cepat & murah Claude
- GLM-5 — Zhipu's flagship, comparable to GPT-4
- MiniMax M2.5 — fast Chinese model
- Qwen3 Coder Next — Alibaba's coding-focused
- DeepSeek 3.2 — strong reasoning model
Semua unlimited gratis. Ga ada quota harian, ga ada API key paid, ga ada credit card.
Kenapa Kiro
Vs OpenAI API:
| OpenAI gpt-4o | Kiro (Claude 4.5)
---|---|---
Cost | $2.50/$10 per 1M token | FREE
Quality | Sangat bagus | Top tier (Claude lebih kuat di reasoning + code)
Rate limit | Tier-based | Reasonable per-account
Setup | API key | OAuth login
Vs OpenRouter free models:
| OpenRouter free | Kiro
---|---|---
Models | Llama, Mistral (free tier) | Claude Sonnet 4.5
Quality | Decent | Premium
Reliability | Sometimes rate-limited | Stabil
Cost | FREE (limited) | FREE (unlimited)
Tradeoff Kiro: - Latency sedikit lebih tinggi (kadang ada queue) - Provider bisa change policy anytime (Microsoft/AWS bisa start charge) - OAuth required (vs Naked API key di provider lain)
Buat agent personal: Kiro best choice kalo lo udah host 9router.
Setup Kiro lewat 9Router
1. Buka dashboard 9Router
http://localhost:20128 (atau http://<vps-ip>:20128 lewat SSH tunnel)
2. Navigate ke Providers
Sidebar → Providers → Add Provider → pilih Kiro AI.
3. Pilih method login
Opsi:
- AWS Builder ID (recommended): bikin gratis di https://profile.aws.amazon.com/, ga butuh credit card
- AWS IAM Identity Center : kalo lo punya AWS organization
- Google : pake akun Gmail/Google Workspace
- GitHub : pake akun GitHub
Klik tombol login → browser open OAuth flow → authorize → kembali ke dashboard.
4. Verify connected
Status should show Connected + lampu hijau. Models harus appear:
kr/claude-sonnet-4.5kr/claude-haiku-4.5kr/glm-5kr/MiniMax-M2.5kr/qwen3-coder-nextkr/deepseek-3.2kr/auto(auto pick best available)
5. Test dari CLI
curl -X POST http://127.0.0.1:20128/v1/chat/completions \
-H "Authorization: Bearer $FREEMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kr/claude-sonnet-4.5",
"messages": [
{"role": "user", "content": "Halo Claude, siapa lo?"}
]
}'
Expect response JSON dengan Claude reply.
Integrate ke agent (Kai)
Update ~/agent/.env:
OPENAI_API_KEY=<9router API key>
OPENAI_BASE_URL=http://127.0.0.1:20128/v1
OPENAI_MODEL=kr/claude-sonnet-4.5
Atau pakai kr/auto kalo lo mau biarin 9router decide:
OPENAI_MODEL=kr/auto
Restart bot:
sudo systemctl restart kai-bot
Test di Telegram. Response harus lebih bagus (Claude Sonnet 4.5).
Tips optimal pake Kiro
1. Pilih model sesuai task
- kr/claude-sonnet-4.5 — default, paling balance (quality + speed)
- kr/claude-haiku-4.5 — fast simple tasks (chat, summarize)
- kr/glm-5 — alternative kalo Claude lagi slow
- kr/auto — let router decide
Dynamic switching di kode:
def select_model(task_type):
routing = {
"chat": "kr/claude-haiku-4.5", # fast & cheap
"code": "kr/qwen3-coder-next", # coding
"reason": "kr/claude-sonnet-4.5", # complex reasoning
"default": "kr/auto"
}
return routing.get(task_type, routing["default"])
2. Backup provider
Walaupun Kiro unlimited, kadang queue/down. Set fallback di 9Router:
Dashboard → Providers → Priority order: 1. Kiro AI (primary) 2. OpenCode Free (fallback) 3. GLM (cheap fallback)
Kalo Kiro down, auto switch ke OpenCode Free, ga break flow.
3. Multi-account Kiro
Bikin 2-3 akun Kiro (AWS Builder ID gratis, satu email satu akun):
Dashboard → Providers → Kiro → Add Account.
9Router round-robin antar akun. Reduce queue risk.
4. Token efficiency
Kiro count token, walau unlimited. Tetap optimize:
- Concise system prompt
- Sliding window history (last 20-30 msg)
- RTK Token Saver (auto, by 9Router)
Troubleshooting
"Authentication required" saat first call
Token expired. Dashboard → Providers → Kiro → Re-authenticate.
Auto-refresh harusnya jalan, tapi kalo failed:
# Cek log 9router
sudo journalctl -u 9router -n 50 | grep -i kiro
Response lambat (>10 detik)
Possible: 1. Kiro lagi queue (high traffic) → switch ke kr/auto, biar router decide 2. Network VPS lambat → cek ping ke endpoint Kiro 3. System prompt terlalu panjang → kompres
"Quota exceeded" (rare)
Walau "unlimited", masih ada soft rate limit. Solusi: 1. Multi-account 2. Backup provider (OpenCode Free, GLM) 3. Tunggu 5-10 menit
Model tertentu ga muncul di list
Login Kiro re-do, atau model spesifik perlu unlock.
Dashboard → Providers → Kiro → Models — toggle yang lo mau.
Account management
Bikin AWS Builder ID
- https://profile.aws.amazon.com/
- Create account → email + password
- Verify email
- Done. Free, no credit card.
Multiple accounts (advanced)
Strategi: bikin 3-5 AWS Builder ID dengan email berbeda (Gmail + alias, atau email provider lain).
agent-kiro-1@gmail.com
agent-kiro-2@gmail.com
agent-kiro-3@gmail.com
Add semua ke 9Router. Round-robin = 5x effective capacity.
⚠️ Term of Service Kiro mungkin restrict multi-account untuk individual user. Cek ToS terbaru sebelum scale.
Privacy & security
Yang Kiro lihat: - Setiap chat lo (prompt + response) di-log di Kiro side - Mereka pake untuk training? Kemungkinan ya (free service = data is product)
⚠️ Jangan paste: - Credentials (token, password, private key) - Komunikasi pribadi orang lain - Code proprietary perusahaan yang under NDA
Kalo lo butuh privacy, pake: - Self-host model (ollama, llama.cpp) - Paid API dengan no-train policy (OpenAI API enterprise, Anthropic API)
Comparison: Kiro vs alternatives
| Backend | Cost | Quality | Setup | Privacy |
|---|---|---|---|---|
| Kiro (Claude 4.5) | FREE | ⭐⭐⭐⭐⭐ | Easy (OAuth) | Logged |
| OpenAI gpt-4o API | $$$ | ⭐⭐⭐⭐⭐ | Easy (API key) | Better (paid) |
| OpenAI gpt-4o-mini API | $ | ⭐⭐⭐⭐ | Easy | Better |
| Anthropic Claude API | $$$ | ⭐⭐⭐⭐⭐ | Easy | Better |
| Groq (Llama 70B) | FREE/$ | ⭐⭐⭐⭐ | Easy | Logged |
| Self-host Llama | FREE (compute) | ⭐⭐⭐⭐ | Hard | Local |
| OpenCode Free | FREE | ⭐⭐⭐⭐ | Easiest | Logged |
| OpenRouter (free tier) | FREE | ⭐⭐⭐ | Easy | Logged |
Saran :
- Production agent personal → Kiro (best free, best quality)
- Privacy-sensitive → Self-host atau paid API
- Bot kecil ringan → OpenCode Free atau OpenRouter free
Lebih jauh dari Kiro
Kalo Kiro ga cukup (down, ToS issue, butuh more reliable):
→ Lihat Alternative Backends untuk: OpenCode Free, Vertex AI, OpenRouter, z.ai (GLM), Kimi, DeepSeek, dll.