cdcx
A CLI, MCP server, and terminal dashboard for the Crypto.com Exchange API. Single binary, zero runtime dependencies.
95 REST endpoints across 11 API groups, dynamically generated from the Crypto.com Exchange OpenAPI spec. Real-time WebSocket streaming. Full-screen TUI dashboard. Paper trading. Works as a standalone CLI, an MCP tool server for AI agents, or an interactive terminal.
Caution: This software interacts with the live Crypto.com Exchange and can execute real financial transactions. Test with cdcx paper before using real funds.
Install
curl -sSfL https://raw.githubusercontent.com/crypto-com/cdcx-cli/main/install.sh | sh
From source:
cargo install --git https://github.com/crypto-com/cdcx-cli.git --bin cdcx
Why cdcx?
For AI Agents
Every response is structured JSON. 95 MCP tools with typed parameters, enum validation, safety enforcement, and schema discovery — all generated from the OpenAPI spec at runtime. Your LLM can trade, analyze markets, manage positions, and orchestrate trading bots without custom tooling.
cdcx mcp config --enable trade,account
Compatible with Claude Code, Cursor, Claude Desktop, Codex, Github Copilot, Gemini CLI, and other MCP clients. Includes 13 agent skill files in skills/ for guided workflows.
Things you can ask your AI agent:
"What's the current BTC price and 24h volume?"
"Paper trade BTC for a few rounds and show me the P&L"
"Place an OTOCO bracket on BTC_USDT: entry at 70000, stop-loss at 65000, take-profit at 75000"
For the Command Line
Every endpoint is a command. --help on everything. --dry-run to preview. --output json for scripting. Tab completion. Profiles for multi-account.
cdcx market ticker BTC_USDT -o table
cdcx trade order BUY BTC_USDT 0.001 --dry-run
cdcx stream ticker BTC_USDT ETH_USDT
cdcx paper buy BTC_USDT --quantity 0.01
For the Dashboard
Full-screen terminal trading interface. 6 tabs, real-time streaming, candlestick charts, heatmap mode, split screen, order workflows. Zero flicker.
cdcx tui
Press p to toggle paper mode. Press O for OTOCO bracket orders. Press ? for all shortcuts.
Quick Start
Public market data works without credentials:
cdcx market ticker BTC_USDT -o table
cdcx market book BTC_USDT --depth 10 -o table
cdcx market candlestick BTC_USDT --timeframe 1h -o table
Paper trading works without credentials:
cdcx paper init --balance 50000
cdcx paper buy BTC_USDT --quantity 0.01
cdcx paper positions
cdcx paper balance
For trading, set credentials:
export CDCX_API_KEY="your-key"
export CDCX_API_SECRET="your-secret"
cdcx account summary
MCP Server
Expose the Exchange API as MCP tools for AI agents:
cdcx mcp # Start server (reads config)
cdcx mcp config # Show current config
cdcx mcp config --enable trade,account # Enable service groups
cdcx mcp config --allow-dangerous # Allow withdrawals, cancel-all
cdcx mcp config --reset # Reset to defaults (market only)
Service groups: market, account, trade, advanced, margin, staking, funding, fiat, otc, bot, stream
Configuration is stored in ~/.config/cdcx/mcp.toml and persists across updates.
Note: account also exposes historical endpoints (orders, trades, transactions). funding covers wallet deposit/withdrawal endpoints. Paper trading is a CLI-only feature and has no MCP tools.
Safety Model
| Tier | Behavior | Examples |
|---|
| read | No confirmation | market ticker, market book |
| sensitive_read | No confirmation | account summary, bot list |
| mutate | Requires acknowledged: true | trade order, bot create, bot pause |
| dangerous | Requires --allow-dangerous | trade cancel-all, bot terminate, wallet withdraw |
Plugin Installation
Install cdcx as a one-click plugin from your AI coding tool's marketplace.
Claude Code:
claude plugin marketplace add crypto-com/cdcx-cli
claude plugin install cdcx-cli@cdcx-cli
Codex:
-
Open Plugins and click + Add more:

-
Add the marketplace source crypto-com/cdcx-cli:

-
Enable the cdcx-cli plugin — it appears under your marketplace dropdown:

Or via the CLI:
codex plugin marketplace add crypto-com/cdcx-cli
Other: Open Settings > MCP Servers, add:
{
"cdcx": {
"command": "npx",
"args": ["-y", "@cryptocom/cdcx-cli@latest", "mcp"]
}
}
Then configure services with cdcx mcp config --enable trade,account.
Switching Profiles for MCP