Denne siden er kun til informasjonsformål. Enkelte tjenester og funksjoner er kanskje ikke tilgjengelige i din jurisdiksjon.

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.

Ansvarsfraskrivelse
Dette innholdet er kun gitt for informasjonsformål og kan dekke produkter som ikke er tilgjengelige i din region. Det er ikke ment å gi (i) investeringsråd eller en investeringsanbefaling, (ii) et tilbud eller oppfordring til å kjøpe, selge, eller holde krypto / digitale aktiva, eller (iii) finansiell, regnskapsmessig, juridisk, eller skattemessig rådgivning. Holding av krypto / digitale aktiva, inkludert stablecoins, innebærer høy grad av risiko og kan svinge mye. Du bør vurdere nøye om trading eller holding av krypto / digitale aktiva egner seg for deg i lys av den økonomiske situasjonen din. Rådfør deg med en profesjonell med kompetanse på juss/skatt/investering for spørsmål om dine spesifikke omstendigheter. Informasjon (inkludert markedsdata og statistisk informasjon, hvis noen) som vises i dette innlegget, er kun for generelle informasjonsformål. Selv om all rimelig forsiktighet er tatt i utarbeidelsen av disse dataene og grafene, aksepteres ingen ansvar eller forpliktelser for eventuelle faktafeil eller utelatelser uttrykt her.

© 2025 OKX. Denne artikkelen kan reproduseres eller distribueres i sin helhet, eller utdrag på 100 ord eller mindre av denne artikkelen kan brukes, forutsatt at slik bruk er ikke-kommersiell. Enhver reproduksjon eller distribusjon av hele artikkelen må også på en tydelig måte vise: «Denne artikkelen er © 2025 OKX og brukes med tillatelse.» Tillatte utdrag må henvise til navnet på artikkelen og inkludere tilskrivelse, for eksempel «Artikkelnavn, [forfatternavn hvis aktuelt], © 2025 OKX.» Noe innhold kan være generert eller støttet av verktøy for kunstig intelligens (AI/KI). Ingen derivatverk eller annen bruk av denne artikkelen er tillatt.