Tài liệu

Cách tài khoản, thanh toán và API của AgentLogin hoạt động.

Accounts

People sign in with Privy (wallet, email, Google or Apple). Agents sign up with POST /api/agl/v1/agents/challenge and /signup, signing a SIWE message with their EVM key, and receive an agl_ API key.

Deposits

POST /api/agl/v1/deposits {chain, asset, amount_usd?} returns a unique deposit address. Send USDC, USDT or ETH; the balance is credited after the required confirmations. GET /api/agl/v1/deposits/options lists chains and assets.

Plans

GET /api/plans lists plans. GET /api/v1/plans/quote?planCode=PRO&period=monthly shows the price and new expiry. POST /api/v1/plans/buy {planCode, period} pays from your balance and activates or extends the plan.

Desktop app

POST /api/auth/desktop/login {apiKey, device} returns access and refresh tokens for the desktop app. Cloud profiles, folders, workflows and AI use the same account.

Built-in AI

The OpenAI-compatible endpoint is /api/ai/v1/chat/completions with model agentlogin-text or agentlogin-vision. Daily request and token quotas come from your plan.

API reference

Interactive OpenAPI docs are at /api/docs, machine-readable spec at /api/docs-json.