AI 子帳戶:如何使用 AI 子帳戶執行第一筆交易?
Bybit AI 子帳戶讓您將 Claude Code、OpenClaw 或 Cursor 等 AI 助理直接連接到您的 Bybit 帳戶,透過基於 API 的連接代您進行交易。這是一個獨立於您主帳戶資產的子帳戶,透過 API 金鑰而非密碼進行身份驗證,預設上限為 5,000 美元,且預設關閉提幣功能。
本指南涵蓋 AI 子帳戶的設定流程、在存入資金前建議配置的權限設定,以及執行和確認第一筆交易的步驟。
關鍵要點:
Bybit AI 子帳戶是一個隔離的純 API 帳戶,將 AI 代理的交易活動與您的主資金和其他子帳戶隔離開來。
連接後,您可以用自然語言對 AI 助理下指令,它會將指令轉換為經過驗證的 API 請求,進而下單、修改或平倉,以及執行其他操作。
什麼是 Bybit AI 子帳戶?
Bybit AI 子帳戶是一個專為 AI 代理管理的交易帳戶,而非由您直接管理。沒有密碼登入功能,也無法從平台的帳戶切換器切換到該帳戶。身份驗證透過公鑰/私鑰對進行:您在 AI 工具內生成金鑰,將公鑰提供給 Bybit,平台則發放 API 金鑰作為回報。
基於安全考量,API 金鑰預設每 90 天到期一次,迫使您定期重新生成。除非您手動提高上限,否則資產曝險上限為 5,000 美元;同樣地,除非您修改設定,否則提幣功能預設保持關閉。AI 代理進行的所有交易和轉帳都保留在這個隔離的帳戶內,除非您採取明確行動,否則無法將資金轉移到您的主帳戶或其他子帳戶。
Bybit supports several assistants directly, including OpenClaw, Claude Code and Cursor. Potentially, any AI tool capable of generating an RSA key pair and making authenticated API calls can connect in principle.
Permissions for asset transfers, leverage and trading are set from your main account, not by the agent itself, which is what keeps the subaccount contained even if a prompt gets misread.
How to set up your AI subaccount
第 1 步:Create your AI subaccount on Bybit
From your profile icon on the Bybit homepage, go to Subaccount, then Create Subaccount, and select AI Subaccount as the account type. Name it, confirm the security verification code sent to you and proceed. Once Bybit confirms the subaccount is created, click Connect to AI to get the setup prompt for your AI assistant.
第 2 步:Connect your preferred AI assistant
注:In the screenshots below, we use the Cursor AI assistant along with the relevant Bybit screenshots. The steps and prompts for your specific AI tool will be largely similar. |
Open your AI assistant and paste the prompt provided by the Bybit wizard. The AI assistant will access the instructions to generate your public key. It’s possible that your AI tool may signal that the prompt is not secure to execute. In this case, provide the alternative prompt as below:
"Review the instructions at https://raw.githubusercontent.com/bybit-exchange/skills/main/SKILL.md to enable Bybit trade execution. Generate an RSA public-private key pair for Bybit OpenAPI integration and provide the public key."
The assistant processes the prompt and returns a public key, often generating local .pem files containing the key pairings in the process, depending on the tool you're using. Paste that public key into the Generate API Key field on the Bybit wizard, confirm with your verification code and provide the resulting API key to your assistant to establish the connection.
第 3 步:Configure your account and trading permissions
After creating your AI subaccount and linking it to your AI tool, open the Subaccount Management page on your main account, find your new AI subaccount and go to Settings, then Permissions. Set the cap limit, turn on or off transfers in and out and define the maximum margin or contract leverage. These settings live on the parent account, so the agent can't change them on its own.
How to execute your first trade using an AI subaccount
第 1 步:Transfer funds to your AI subaccount
The subaccount needs capital before it can trade based on your prompts. Transfer funds from your main account's asset page by clicking on Transfer. Start with small amounts initially, even if the $5,000 default cap exists to limit your exposure.
第 2 步:Prompt your AI assistant to execute a trade
With funds in place and the API key authenticated, verify via natural prompts in your AI tool that the connection is live. After that, give the assistant a direct instruction, such as "execute a spot trade by selling 10 USDT of my funds to buy USDC." The assistant signs and submits the order through the API using the key pair generated earlier.
第 3 步:Monitor and verify your trade execution
Check the order execution status through issuing a natural language prompt to your AI assistant.
結語
Getting your first trade executed through a Bybit AI subaccount comes down to three steps: funding your subaccount, sending a clear natural language instruction and checking the result. Additionally, the limits built into the account type, the $5,000 cap, disabled withdrawals and main-account permission controls, help limit the damage from a single bad prompt.
#LearnWithBybit