Skip to Content

Codex logoCodex

Connect Sync GTM to Codex, OpenAI’s coding agent CLI.

Why connect Codex to Sync GTM?

Sync GTM gives Codex live B2B data it can act on while building automation tasks from your terminal:

  • Enrich contacts as part of agentic tasks — Codex can look up emails, mobile numbers, and LinkedIn profiles mid-execution
  • Research companies inline — pull tech stack, headcount, funding, and job openings without leaving the terminal
  • Build data pipelines with real GTM data — generate lead lists, verify emails, filter by signals — all orchestrated by Codex
  • Automate prospecting workflows — find people within a company, check job changes, validate WhatsApp numbers in one agentic run
  • Prototype faster — test enrichment calls interactively while developing the integration that will use them

Best for automation-first teams and developers who want Codex to handle both the code and the GTM data layer.

Install

  • Open ~/.codex/config.toml and add the Sync GTM server. The experimental_use_rmcp_client feature enables streamable-HTTP MCP servers:
[features] experimental_use_rmcp_client = true [mcp_servers.syncgtm] url = "https://api.syncgtm.com/mcp"
  • Start the browser sign-in:
codex mcp login syncgtm
  • Your default browser opens the Sync GTM authorization page. Sign in and approve.
  • Codex stores the session and connects on each run.

No bearer_token_env_var is needed — Sync GTM uses browser OAuth, not a static token.

Next steps