هذه الصفحة هي لأغراض إعلامية فقط. قد لا تتوفر بعض الخدمات والميزات في منطقتك.

Connecting Agentic Trading to OKX Exchange with Agent Trade Kit

We've launched OKX Agent Trade Kit, an open-source MCP toolkit that gives AI agents and developers a complete environment to build, test, and deploy agentic trading strategies on OKX Exchange. It's available now on npm as okx-trade-mcp (MCP server) and okx-trade-cli (CLI).

As of today, it's the only exchange-native MCP toolkit where an AI agent can execute a spot trade, go long on a perpetual, and set a conditional algo order - all through a single MCP interface, without switching providers.

For developers optimizing for speed and cost, the CLI interface delivers the same capabilities with lower token overhead and faster execution.

Traders increasingly use AI assistants to research markets, form views, and identify setups. But when it comes to execution, the workflow breaks: you copy the analysis out of your AI client, switch to the exchange, and place the order manually. The insight and the action are stuck in separate tools.

Agent Trade Kit eliminates the extra steps. It connects Claude, OpenClaw, Cursor, VS Code, and any MCP-compatible client directly to OKX, so your agent can go from analysis to executed trade in a single conversation.

For developers who want a faster path to get started, Agent Trade Kit also ships with four plug-and-play Skills: okx-cex-market (Market Data), okx-cex-trade (Trading), okx-cex-portfolio (Portfolio), and okx-cex-bot (Bot), letting you load only what your agent needs without configuring the full toolkit.

What makes Agent Trade Kit different

Under the hood, Agent Trade Kit is designed specifically for AI-native trading workflows:

  • Local-first security. Unlike other implementations where API keys must be passed directly to the model, Agent Trade Kit is specifically designed so your credentials are never exposed to the LLM. Keys are stored in a local config file and read only by the local MCP — making them entirely inaccessible to the model. Signing happens locally via HMAC-SHA256, and the AI client sends only trading intent. Your credentials never leave your machine.

  • Permission-aware registration: API key permissions are read on startup. If a key lacks trading permission, order tools are never registered in the agent’s toolbox — meaning the AI cannot attempt actions it isn’t authorized to perform.

  • Fully open source under MIT licence. Every line of code is publicly auditable on GitHub.

Professional trading and options capabilities for AI agents

Agent Trade Kit is the only MCP toolkit that gives AI agents access to live options markets. No other exchange offers this. If you're building agents that need to hedge exposure, express directional views with defined risk, or construct multi-leg strategies — this is the only place to do it. Alongside options, agents can execute spot trades, go long on perpetuals, set conditional algo orders.

It ships with 82 tools across seven modules, covering the full professional trading lifecycle:

  • Spot, perpetual swaps, and futures: Execute trades across OKX’s full derivatives and spot markets.

  • Options trading: Market data, order books, open interest, position management, and fee queries. No other exchange MCP toolkit currently supports options.

  • Algo orders: Place OCO orders, trailing stops, and conditional triggers using natural language.

  • Bots: Configure automated range-trading strategies conversationally with grid and DCA bots.

  • Demo mode. Full access to OKX's exchange environment with simulated assets. Build your agent, test your strategies, and validate execution logic, with no real money exposure.

  • Account management: Query balances, positions, and trading history directly within the AI session.

The bigger picture

Agent Trade Kit is the CEX counterpart to OnchainOS, our AI layer for onchain and DeFi operations. Together, they give AI agents a continuous operating environment across both centralised and decentralised markets. Agent Trade Kit covers the centralised exchange layer. Together they represent OKX's AI agent platform: the only environment where an AI can operate across the full scope of how people actually trade — onchain and off, in a single protocol.

Start building: npm install -g okx-trade-mcp okx-trade-cli

This content may cover products that are not available in your region. It is not (i) investment advice or recommendations; (ii) an offer or solicitation to buy, sell, or hold digital assets, or (iii) financial, accounting, legal, or tax advice. Digital asset holdings, including stablecoins and NFTs, involve high risk, can fluctuate greatly, and are not FDIC insured. You should consider whether trading or holding crypto/digital assets is suitable for you and consult your advisors for questions about your circumstances. While reasonable care has been taken in preparing informational data and graphs, no responsibility or liability is accepted for any errors or omissions.

إخلاء المسؤولية
يُقدَّم هذا المحتوى لأغراضٍ إعلامية بهدف التوضيح فقط، وقد يتضمَّن إشارة لمنتجاتٍ أو خدماتٍ غير مُتاحة في منطقتك الجغرافية. لا يُقصَد به تقديم (1) مشورة استثماريَّة أو توصية استثماريَّة، أو (2) عرضًا أو التماسًا لشراء العملات/الأصول الرقمية أو بيعها أو الاحتفاظ بها، أو (3) مشورة ماليَّة أو محاسبيَّة أو قانونيَّة أو ضريبيَّة. تنطوي عمليات الاحتفاظ بالعملات الرقمية/الأصول الرقمية، بما فيها العملات المستقرة، على درجة عالية من المخاطرة، ويُمكِن أن تشهد تقلّبًا كبيرًا في قيمتها. لذا، ينبغي التفكير جيدًا فيما إذا كان تداوُل الأصول/العملات الرقمية أو الاحتفاظ بها مناسبًا لك حسب وضعك المالي. ويُرجى استشارة خبير الشؤون القانونيَّة أو الضريبيَّة أو الاستثماريَّة الذي تتعامَل معه بخصوص أي أسئلة متعلِّقة بظروفك الخاصَّة. المعلومات (بما في ذلك بيانات السوق والمعلومات الإحصائية، إن وجدت) الواردة في هذا المنشور مُقدَّمة لأغراض معلوماتية فقط. رغم اتخاذ جميع التدابير المعقولة لضمان الدقة عند إعداد هذه البيانات والرسوم البيانية، فإننا لا نتحمل أي مسؤولية عن أي أخطاء في الحقائق أو أي معلومات محذوفة واردة فيها.

الأصول الرقمية عرضة للتقلبات وغير مؤمَّن عليها. هذه ليست نصيحة مالية أو استثمارية. ليست جميع المنتجات والخدمات متاحة في جميع المناطق. تُطبَّق الاستثناءات والشروط والأحكام.

© 2026 OKX. يجوز إعادة نشر هذه المقالة أو توزيعها بالكامل، أو استخدام مقتطفات منها لا تتجاوز 100 كلمة، بشرط أن يكون هذا الاستخدام غير تجاري. ويتعيَّن أيضًا في أي عملية إعادة إنتاج أو توزيع للمقال بأكمله أن يُذكر وضوحًا: «تعود ملكية هذا المقال الفكرية لصالح © 2026 OKX وتُستخدَم بموجب إذن». ويجب أن تشير المقتطفات المسموح بها إلى اسم المقال وتتضمَّن الإسناد المرجعي، على سبيل المثال «اسم المقال، [اسم المؤلف إن وجد]، © 2026 OKX». قد يتضمَّن بعض هذا المحتوى موادّ أُنتِجَت أو جرى إعدادها بمساعدة أدوات الذكاء الاصطناعي (AI). لا يجوز إنتاج أي أعمال مشتقة من هذه المقالة أو استخدامها بطريقة أخرى.

المقالات ذات الصلة

عرض المزيد
Plugin Store (Web3) Thumbnail

Your agent's next onchain plugin is one command away

The shift from human-driven to agent-driven is already happening. Onchain plugins exist across the ecosystem - but finding something reliable meant digging through GitHub repos, Discord threads, and p
‏6 يوليو 2026
Agent Trade Kit Skills Thumb

Your trading agent is only as good as the skills it runs

Good trading agents run on good skills. Finding reliable ones has always been the hard part - scattered across GitHub, shared in Discord threads , with no signal for what's worth installing. Agent
‏6 يوليو 2026
Agentic Wallet Thumbnail

Introducing OKX Agentic Wallet

Today we're introducing OKX Agentic Wallet, a new capability to Onchain OS, our AI toolkit for developers. Most wallets were built for humans. They wait for clicks, approvals, and manual inputs. OKX A
‏2 يونيو 2026
OnchainOS

Introducing Our AI Toolkit for Developers

We are opening OKX Wallet and DEX to enable AI Agents. Our OnchainOS (featuring the widely-used DEX API) now has a full AI layer that developers can use to enable AI agents for new applications. Thes
‏2 يونيو 2026
Agent Payments Protocol - Thumbnail

Agents can now do real business, not just make payments

Introducing the Agent Payments Protocol - the open standard for agent commerce, by OKX Onchain OS. In the past few months, AI agents moved from answering questions to running workflows, managing busin
‏7 مايو 2026
عرض المزيد