In the AI chat, type:
Help me auto install Gate Skills and MCPs: https://github.com/gate/gate-skills
- ChatGPT sign-in with Codex access, or an OpenAI API key for API-billed use
- Node.js >= 18
Install the OpenAI Codex CLI globally:
npm install -g @openai/codexOr use npx (no installation required):
npx @openai/codex --versionCodex supports ChatGPT sign-in and API-key sign-in; see official OpenAI authentication. This is separate from Gate OAuth2 authorization below.
# Complete Codex browser login with a ChatGPT account.
codex loginFor API-key sign-in, first set OPENAI_API_KEY privately on your machine, then pass it through stdin:
# Keep the key value out of command arguments and documentation.
printenv OPENAI_API_KEY | codex login --with-api-keyFor full trading (OAuth on connect):
codex mcp add gate --url https://api.gatemcp.ai/mcp/exchangeFor market data only (no auth):
codex mcp add gate --url https://api.gatemcp.ai/mcpFor Info (no auth):
codex mcp add gate-info --url https://api.gatemcp.ai/mcp/infoFor News (no auth):
codex mcp add gate-news --url https://api.gatemcp.ai/mcp/newsAdding the server may prompt Gate OAuth. If authorization is incomplete or needs renewal, run:
# Authorize Gate MCP; this does not sign in to the Codex account.
codex mcp login gateFollow the installed client's prompts and official MCP documentation. A saved configuration alone does not establish complete business permissions.
List all configured MCP servers:
codex mcp listYou should see the Gate MCP server in the list.
Launch the Codex CLI:
codexTry these example queries:
- "What is the current price of BTC/USDT?"
- "Show me arbitrage opportunities on Gate"
- "Analyze SOL for me"
- "Any new coins on Gate worth watching?"
To update the MCP server URL or configuration:
codex mcp remove gate
codex mcp add gate --url https://api.gatemcp.ai/mcp/exchangeCheck the API key only when using API-key sign-in. ChatGPT sign-in does not require this environment variable:
export OPENAI_API_KEY="your-api-key-here"- Check if the MCP is properly added:
codex mcp list - Try removing and re-adding the MCP
- Check your internet connection
- Verify the URL is correct:
https://api.gatemcp.ai/mcp/exchange(trading) orhttps://api.gatemcp.ai/mcp(market data) - Check if you need a proxy or VPN
- Try again later (the server might be temporarily down)
- Explore all available tools
- Learn about futures market tools
- Check the API documentation


