Skip to content
Back to the list

xanggate.rentaicoder.com

Xăng Gate

Domestically-paid Claude API gateway, split by RS256 JWT

Vietnamese developers who cannot get an international card also cannot buy an AI API key. Xăng Gate sits in between: it takes a domestic transfer and issues a key that works immediately with Claude Code and the SDKs.

Visit productXăng Gate (opens in a new tab)
  • Lit 3
  • Vite
  • ASP.NET Core 10
  • Docker
  • JWT RS256

§ 01Algorithm

Tách dịch vụ, xác thực bằng khoá bất đối xứng
ManaGate  ──  JWT ký RS256  ──▶  IRIS Proxy
(cửa hàng, dashboard,              (proxy tới nhà cung cấp AI,
 thanh toán, admin)                 rate limit, quota)

  POST /admin/keys/generate
  Authorization: Bearer <jwt>
    alg = RS256  (RsaSecurityKey, RsaSha256)

# Vì sao bất đối xứng: IRIS chỉ cần PUBLIC key để xác minh.
# Hai dịch vụ không phải chia sẻ secret đối xứng.

⚠ trong code: thiếu RSA private key thì rơi về alg = None với khoá rỗng.
   Chỉ hợp lệ cho môi trường dev.

§ 02Highlights

  • Fully domestic payment: QR bank transfer, VNPay, MoMo — no international card needed
  • Keys activate immediately and work with Claude Code and compatible SDKs
  • Two separate services authenticated by RS256 JWT — no shared symmetric secret
  • Dashboard shows each key's remaining validity as a fuel gauge
  • Sliding-window rate limiting at the proxy layer
  • Admin console: users, orders, system metrics, provider quota

§ 03Screens

Xăng Gate01
Xăng Gate02
Xăng Gate03