How to connect Grok to your OKX account
With TraderWAI, Grok can read live charts, check your OKX account and prepare orders with stop loss and take profit that you approve. Setup takes a few minutes.
Connect OKX to Grok in 2 minutes — free1. Add TraderWAI to Grok
Works on grok.com and in the Grok app with Grok's custom connectors. If «Custom» doesn't appear in Connectors, your Grok plan doesn't include it: use Claude for free instead (one click).
- Open Grok and go to Connectors (grok.com/connectors, or Settings → Connectors in the app).
- Click «New Connector» and choose «Custom». If it doesn't appear, your Grok plan doesn't include it: use Claude for free (one click).
- Name: TraderWAI. Server URL: https://mcp.traderwai.com
- Save and sign in with Google to authorize access (if you don't have a TraderWAI account yet, it is created at this step).
- In a new chat, ask Grok to use TraderWAI, e.g. «Show me the EUR/USD H1 chart».
2. Connect your OKX account
In TraderWAI, add your OKX account with the platform it uses:
OKX
In OKX go to Profile → API → Create API key, with «Read» and «Trade» permissions (never «Withdraw»), restricted to IP 187.7.69.7, and paste the key, the secret and the passphrase you chose. Pick your OKX region (global, EEA or US). For a demo, create the key in OKX Demo Trading. USDT perpetuals (beta).
OKX works on the free plan: unlimited charts and analysis, and 5 order executions per day.
Detailed guide: Grok + OKX →The platforms each firm offers can change; check which one your account uses in your OKX dashboard.
3. Ask Grok
Try one of these in a new chat:
- «Show me the gold H1 chart and tell me where the key levels are.»
- «What positions do I have open and how much am I risking?»
- «Prepare a buy limit on EUR/USD at yesterday's low with a 20-pip stop and a 2R target. I'll approve it.»
OKX and TraderWAI: what to know
- TraderWAI connects to OKX USDT perpetual swaps through its official API (beta): create an API key with «Read» and «Trade» (never «Withdraw»), set its passphrase, restrict it to IP 187.7.69.7 and choose your region (global, EEA or US). OKX accounts work on TraderWAI's free plan.
- OKX has free Demo Trading: create the API key in Demo Trading and connect it as a demo account to try your AI first.
- Besides crypto, OKX lists gold, silver, oil and some US stocks as USDT perpetuals, and your AI can trade them too, long or short. Your OKX account must be in Futures or margin mode (not Spot mode); OKX spot isn't connected.
What Grok can do with your OKX account
- Read live charts in any timeframe, with the indicators you ask for.
- Check your balance, open positions and pending orders.
- Backtest a strategy idea on historical data before risking anything.
- Prepare market, limit and stop orders with stop loss and take profit that you approve.
- Leave conditional orders that TraderWAI watches every minute.
- Respect your risk limits: maximum daily loss and drawdown, risk per trade, size and number of trades.
OKX and Grok: questions
Can I connect Claude or ChatGPT to OKX?
Yes. Add TraderWAI to Claude or ChatGPT (free plans work) and connect your OKX account with an API key, its secret and passphrase, live or Demo Trading. Your AI can then read charts, check your positions and prepare orders with stop loss and take profit that you approve.
Related guides
Other AIs with OKX
- How to connect Claude to your OKX account
- How to connect ChatGPT to your OKX account
- How to connect Grok Bot to your OKX account
- How to connect Gemini to your OKX account
- How to connect Perplexity to your OKX account
- How to connect Cursor to your OKX account
TraderWAI is independent software and is not affiliated with OKX. Trading involves risk; TraderWAI does not provide investment advice.