Developer Platform — Gateway, Proxy, SDK

Akunpy Integrations

Satu kunci untuk semua AI premium. Gateway API, reverse-proxy web UI, dan setup script — terintegrasi ke workflow CLI, IDE, dan browser kamu.

Buat API Key

API Gateway

Mode 1CLI & SDK

Akses langsung ke Claude Code, OpenAI Codex, dan endpoint LLM lewat satu kunci terpadu. Cocok untuk developer yang pakai CLI, IDE plugin, atau build automation.

  • Kompatibel format Anthropic & OpenAI
  • Streaming SSE passthrough
  • Quota metering real-time (token/amount)
  • Round-robin ke pool upstream
  • Dual endpoint: /v1/messages & /v1/chat/completions
🔗

Session Proxy

Mode 2Web UI

Reverse proxy dengan session-injection untuk ChatGPT, Claude, dan Grok. Cookie di-rewrite otomatis ke domain akunpy — buka langsung di browser tanpa setting manual.

  • Cookie domain rewrite transparent
  • HTTP/3 + TLS 1.3 edge
  • WebSocket & SSE chat stream
  • Concurrent-slot guard per carID
  • Auto-decrement saat disconnect
📦

Setup Script

Mode 3One-liner

Konfigurasi instan Claude Code / Codex di terminal. Satu baris install Node.js, tulis settings.json, set environment variable, test konektivitas.

  • macOS / Linux (bash)
  • Windows (PowerShell)
  • Persistent user env-var
  • Auto health-check ke gateway
  • Idempotent (bisa re-run kapan pun)

Quick Start

Pilih bahasa / environment kamu — copy, paste, jalan.

macos
curl -s https://akunpy.com/setup/claudecode.sh | \
  bash -s -- --url https://api.akunpy.com/claudecode \
             --key ak-live-xxxxxxxxxxxxxxxx

Kenapa Pakai Gateway Akunpy

🌐

Multi-Provider

Claude, ChatGPT, Grok, Midjourney — satu gateway, satu billing

🔑

Scoped API Keys

Buat kunci per-proyek dengan limit kuota & model tersendiri

📊

Real-time Quota

Tracking token input/output per request, di-aggregate Redis

🛡️

Rate Limit Guard

Auto back-off saat upstream 429, retry ke slot berikutnya

🔄

Pool Rotation

Round-robin ke belasan slot premium untuk availability maksimal

📡

SSE Streaming

Low-latency streaming response, buffering off sepenuhnya

🧩

Format Adapter

OpenAI-format ↔ Anthropic-format otomatis di gateway

🕵️

Trace-ID Logging

Header trace-id untuk tiap request, debugging mudah

🌍

Edge Network

Cloudflare anycast, datacenter Jakarta untuk latensi <30ms

API Surface

Endpoint utama. Full reference di Dashboard → Docs.

MethodPathDeskripsi
POST/v1/messagesAnthropic Messages API — native passthrough
POST/v1/chat/completionsOpenAI-compat adapter (input/output auto-translate)
GET/v1/modelsList model tersedia per plan
GET/v1/quotaCek sisa token / amount di kunci aktif
GET/auth/loginSessionStart session untuk web-UI mirror
GET/healthLiveness probe + region info

Cara Integrasi

1

Generate API Key

Buka Dashboard → Integrations → New Key. Pilih scope (Claude Code / Codex / Full) dan expiry.

2

Pilih Mode Integrasi

API Gateway untuk CLI, Session Proxy untuk browser, Setup Script untuk Claude Code di mesin lokal.

3

Config & Connect

Export ANTHROPIC_BASE_URL + ANTHROPIC_AUTH_TOKEN, atau run one-liner setup. Siap dipakai dalam <60 detik.

4

Monitor Usage

Semua request logged di Dashboard → Usage. Quota alert via email saat 80% / 100%.

Arsitektur

High-level flow dari client ke upstream provider.

          ┌────────────────┐        ┌────────────────┐
          │  CLI / SDK     │        │  Browser       │
          │  Claude Code,  │        │  Chat Web UI   │
          │  Codex, curl   │        │                │
          └───────┬────────┘        └───────┬────────┘
                  │                          │
                  ▼                          ▼
        ┌───────────────────────────────────────────┐
        │        CLOUDFLARE EDGE — Jakarta          │
        │     WAF · Turnstile · TLS 1.3 / HTTP/3    │
        └─────────┬────────────────────┬────────────┘
                  │                    │
                  ▼                    ▼
        ┌─────────────────┐   ┌─────────────────────┐
        │  API Gateway    │   │  Reverse Proxy      │
        │  (Go · Redis)   │   │  (OpenResty + Lua)  │
        │  • key lookup   │   │  • cookie rewrite   │
        │  • quota check  │   │  • sub_filter HTML  │
        │  • pool select  │   │  • SSE passthrough  │
        └────────┬────────┘   └────────┬────────────┘
                 │                     │
                 └──────────┬──────────┘
                            ▼
        ┌───────────────────────────────────────────┐
        │  UPSTREAM POOL                            │
        │  claude.ai · chat.openai.com · grok.com   │
        │  api.anthropic.com · midjourney.com       │
        └───────────────────────────────────────────┘

⚠️ Ketentuan Penggunaan

  • • API key bersifat personal — jangan di-commit ke repo publik atau di-share
  • Rate limit berlaku per plan: Premium 60 req/min, Pro 300 req/min, Phantom unlimited fair-use
  • • Abuse (scraping masif, reselling) akan menyebabkan key di-revoke permanen
  • • Semua request di-log dengan trace-id untuk keperluan debugging & audit
  • • Hormati Terms of Service upstream provider saat memakai gateway ini

Provider yang Didukung

Satu gateway, banyak model

🟧
Claude
🟢
ChatGPT
Grok
🔵
Gemini
🎨
Midjourney
💻
Codex

FAQ

Apa bedanya Integration vs Extension?

Extension = auto-login ke web UI via Chrome. Integration = akses programmatic untuk developer: CLI, SDK, REST API, dan setup script untuk Claude Code/Codex.

Apakah SDK resmi Anthropic/OpenAI kompatibel?

Ya, gateway kami 100% kompatibel dengan @anthropic-ai/sdk dan openai Python/Node SDK. Cukup ganti base_url saja, sisanya identik.

Bagaimana sistem quota bekerja?

Setiap key punya quota token atau USD amount. Input + output tokens dicount, di-aggregate di Redis, dan bisa dicek via /v1/quota. Alert otomatis di 80% dan 100%.

Apakah streaming response didukung?

Ya, SSE streaming full passthrough dengan buffering off. Latensi tambahan <50ms dibanding request langsung ke upstream.

Data percakapan saya disimpan?

Tidak. Gateway hanya forward request dan log metadata (token count, latency, status). Isi percakapan tidak pernah disimpan ke database.

Bisa pakai custom base URL di IDE plugin?

Bisa. Claude Code, Cursor, Continue.dev, Cline — semua support custom ANTHROPIC_BASE_URL. Tinggal set env var dan API key.

Siap integrasi?

Generate API key pertama kamu dalam 30 detik. Gratis untuk plan Pro ke atas.