How to connect Grok Bot to your OKX account
With TraderWAI, Grok Bot 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 Bot in 2 minutes — free1. Add TraderWAI to Grok Bot
Included with X Premium and higher, and with Cursor Pro. Works on web and mobile.
- Open your Bot in Grok Bot.
- Paste this in the chat: «Add the remote MCP server https://mcp.traderwai.com»
- Tap «Connect» on the card it shows and sign in with Google or Microsoft (if you don't have a TraderWAI account yet, it is created at this step).
- Ask it, e.g. «Show me the gold H1 chart with TraderWAI» or «Backtest this strategy on EUR/USD».
Ready-made bot: describe a strategy and it backtests it on 1-minute data and marks the trades on the chart. You still connect TraderWAI with the phrase above.
Checks a trade before you place it: chart, news and a quick backtest; it only places the order if you confirm, always with a stop loss.
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 Bot + OKX →The platforms each firm offers can change; check which one your account uses in your OKX dashboard.
3. Ask Grok Bot
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 Bot 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 Bot: 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 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.