> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.paradex.trade/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.paradex.trade/_mcp/server.

# Codex CLI

> **Note**
>
> If you haven't installed the OpenAI Codex CLI yet, run `npm install -g @openai/codex` or see [Codex CLI on GitHub](https://github.com/openai/codex).

### Complete prerequisites

Follow the [Prerequisites](/agentic-ai-hub/mcp/prerequisites) guide to install Python, uvx, and get your Paradex private key.

### Add the Paradex MCP server

#### CLI command

```bash
codex mcp add paradex -- uvx mcp-paradex
```

#### Config file

Edit `~/.codex/config.toml`:

```toml
[mcp_servers.paradex]
command = "uvx"
args = ["mcp-paradex"]
env = { PARADEX_ENVIRONMENT = "prod", PARADEX_ACCOUNT_PRIVATE_KEY = "your_private_key_here" }
```

Replace `your_private_key_here` with your actual key.

The config is shared between the Codex CLI and the Codex VS Code extension — configure once and both clients pick it up.

### Verify it's working

Ask your AI assistant:

> "What markets are available on Paradex?"

If you get a list of trading pairs, you're connected.

To test trading access, ask:

> "Show me my Paradex account summary."