0n3
MCP servers · Detect & Refine · MCP server

Connect Codex CLI to Detect & Refine

One line gives Codex CLI your Detect & Refine account as tools: 3 endpoints, track, grade, lookup grade, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.

Get the line for Codex CLIConnect Detect & Refine first

Three steps

  1. Create a free 0n3 account and connect Detect & Refine. Paste a key or sign in; it lands in your vault, encrypted.
  2. Install 0n3 into Codex CLI. OpenAI's terminal agent reads 0n3 over Streamable HTTP with a token from your environment.
  3. Ask Codex CLI: whoami. Then: "Track in Detect & Refine".
Put the token in your environment
export ON3_TOKEN="<your 0n token>"

Add it to your shell profile so Codex finds it next time.

The line above carries a placeholder; 0n3.app/install mints a real key named for Codex CLI and fills it in.

What Codex CLI can then do in Detect & Refine

Track · Beacon ingestion — find-or-create dr_clicks row, upsert dr_sessions by uuid1
TrackPOST /api/track
Grade · Rule-based + Groq openai/gpt-oss-20b refinement, persists to dr_ai_scores1
GradePOST /api/grade
Lookup grade · Fetch latest grade for a session_id, click_id, or click_id_value0
Fetch latest grade for a session_id, click_id, or click_id_value
Rollup · Counts by grade, network, and crm_pipeline (sale/nurture/dead/x)0
Counts by grade, network, and crm_pipeline (sale/nurture/dead/x)
Export to sheet · Append graded rows to a Google Sheet via OAuth (composes with google_sheets)0
Append graded rows to a Google Sheet via OAuth (composes with google_sheets)
More · Everything else this app exposes.1
StatsGET /api/stats

Detect & Refine in other AI clients

Claude Code + Detect & RefineMCP server + skillClaude (desktop & claude.ai) + Detect & RefineconnectorChatGPT + Detect & Refineconnector · GPT actionGemini CLI + Detect & RefineMCP serverCursor + Detect & RefineMCP serverVS Code (Copilot) + Detect & RefineMCP serverWindsurf + Detect & RefineMCP server

Codex CLI with other apps

Hostinger363 endpointsTelegram132 endpointsPipedrive95 endpointsResend67 endpointsSquare57 endpointsLinkedIn50 endpointsSlack45 endpointsFigma32 endpointsCloudConvert32 endpointseBay25 endpointsQuickBooks21 endpointsCloudflare21 endpoints