Use Xpoz from Codex (OpenAI CLI and ChatGPT)
Wire Xpoz into OpenAI's Codex CLI or ChatGPT Developer Mode to give your coding agent brand monitoring, lead generation, and social listening across Twitter/X, Instagram, TikTok, and Reddit.
What is Codex?
Codex is OpenAI's coding agent, available as a CLI and inside ChatGPT. It connects to external tools via the Model Context Protocol. Adding Xpoz lets Codex search 1.5B+ social posts, summarize conversations, and draft replies from inside its normal coding loop — no separate API integrations to maintain.
Install
Run this once to register Xpoz with Codex. Replace YOUR_XPOZ_API_TOKEN with your token from the Xpoz dashboard. You can also `export XPOZ_API_KEY=...` first and then run the `codex mcp add` command on its own line.
XPOZ_API_KEY=YOUR_XPOZ_API_TOKEN codex mcp add xpoz --url https://mcp.xpoz.ai/mcp --bearer-token-env-var XPOZ_API_KEYTest query
Run this to confirm the connection works:
Use the xpoz MCP server to search Twitter for "OpenAI Codex" in the last 48 hours. Return the top 5 posts by engagement.Example prompts
Brand monitoring
Multi-platform mention sweep in Codex
Using xpoz, sweep Twitter/X, Reddit, and Instagram for mentions of "YourBrand" in the last 7 days. Group by platform and return a JSON summary with counts and the three posts with the highest engagement per platform.Lead generation
Intent-signal lead list from Reddit
Using xpoz, find Reddit posts in the last 30 days where someone is evaluating tools in the category of YourCategory. Return a CSV with subreddit, post title, author username, and a one-line qualification note.Troubleshooting
Codex does not list xpoz as an available MCP server
Run `codex mcp list` to confirm xpoz is registered. If it is not, re-run the `codex mcp add` command above and make sure your Codex CLI version supports MCP (`codex --version`). Restart Codex if the tool list does not refresh.
401 Unauthorized from mcp.xpoz.ai
Your XPOZ_API_KEY is missing, expired, or revoked. Generate a fresh token at https://www.xpoz.ai/get-token, export it in your shell (`export XPOZ_API_KEY=...`), and re-run the `codex mcp add` command.
Rate-limit errors on heavy sweeps
The free tier allows 100,000 results/month and 60 requests/minute. Break long sweeps into smaller batches or upgrade at https://www.xpoz.ai/pricing.
Why XPOZ + Codex?
No Platform API Keys Needed
Access Twitter, Instagram, TikTok, and Reddit data without obtaining API keys from each platform.
Natural Language Queries
Ask questions in plain English instead of writing complex API calls.
Unified Multi-Platform Access
One tool to query all major social platforms simultaneously.
Generous Usage Limits
Free tier includes 100K results/month. Pro plans scale to 10M+.
Getting Started
Sign up for XPOZ
Create a free account at xpoz.ai to get your MCP server credentials.
Configure Codex
Add the XPOZ MCP server to your Codex configuration.
Start Querying
Your Codex agents can now access social media data through natural language queries.
Ready to Connect XPOZ with Codex?
Get started with 100,000 free results per month. No credit card required.
