How to connect Grok to OKX
With TraderWAI, Grok can read live charts, check your OKX account and prepare orders with stop loss and take profit that you approve. It takes about 2 minutes and you don't need to install anything on your computer.
OKX: Global crypto exchange with spot, futures and options.
Step 1: 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).
Server URL to paste in Grok:
https://mcp.traderwai.comExact click path: grok.com/connectors → New Connector → Custom → Name: TraderWAI + Server URL → Save → Sign in to TraderWAI and allow access
- 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».
If it doesn't work
- No «New Connector» or «Custom» option: custom connectors depend on your Grok plan and region. Your TraderWAI account works the same with Claude or ChatGPT, including their free plans.
- Grok doesn't use the tools: start a new chat, check that TraderWAI is enabled for the chat and name it in your request («Using TraderWAI, show me…»).
- Sign-in fails or loops: allow pop-ups for grok.com, sign in with the same Google or Microsoft account you use on TraderWAI, then remove the connector and add it again.
- The URL must be exactly https://mcp.traderwai.com (https, no extra path or spaces).
Step 2: connect your OKX account
In TraderWAI go to Settings → Broker accounts → Add account and choose 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.
Step 3: ask Grok
Open a new chat and try, for example:
- «Show me the BTC/USDT 4H chart and the key support and resistance levels.»
- «What is my balance and which positions do I have open?»
- «If Bitcoin closes an H1 candle above yesterday's high, prepare a buy with the stop below that candle.»
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.
Questions
Is it free to connect Grok to OKX?
Yes. The free plan includes unlimited charts and analysis and 5 order executions per day.
Does Grok place orders on its own?
Only if you want it to. By default every order needs your approval. You can also allow automatic execution for specific symbols, always within the risk limits you set.
Is my OKX account safe?
Your credentials are encrypted (AES-256) and the key is kept on a separate server. TraderWAI only acts on your account as you instruct and never requests withdrawal permissions.
Does it work with demo accounts?
Yes, with demo and live OKX accounts. We recommend starting with a demo.
Related guides
Other AIs with OKX
Grok with other platforms
- How to connect Grok to MetaTrader 5
- How to connect Grok to MetaTrader 4
- How to connect Grok to TradeLocker
- How to connect Grok to cTrader
- How to connect Grok to Match-Trader
- How to connect Grok to DXtrade
- How to connect Grok to Capital.com
- How to connect Grok to eToro
- How to connect Grok to tastytrade
- How to connect Grok to Binance
- How to connect Grok to Bybit
- How to connect Grok to Toobit
- How to connect Grok to Kraken
Trading involves risk. TraderWAI is a technology tool: it does not provide investment advice and AI analysis is not a recommendation; you decide every order.