Skip to content
Black Friday: 30% off monthly or 50% off yearly, for as long as you stay. Runs through Dec 31.
Codex integration · Updated October 20, 2026

Run link outreach from Codex

Add BacklinkGenie to Codex once and use it from the Codex CLI or IDE extension: review pitches against what you just shipped, draft replies to editors, and check which links went live.

Connects with
codex mcp add (HTTP)
Auth
API key (bg_live_...)
Tools available
All 22, on every plan
Setup

How do I connect BacklinkGenie to Codex?

4 steps, about two minutes. You need an API key from BacklinkGenie and the config below.

  1. 1

    Create an API key

    Create the key in BacklinkGenie under Settings → MCP. Keys start with bg_live_ and are shown once. Creating a key needs an active paid plan (Starter, Growth or Agency).

  2. 2

    Put the key in an environment variable

    Codex reads the token from an environment variable, so the key never sits in a config file.

    ~/.zshrc or ~/.bashrc
    export BACKLINKGENIE_API_KEY="bg_live_your_key"
  3. 3

    Add the server

    Run this once, or add the same table to ~/.codex/config.toml.

    Terminal
    codex mcp add backlinkgenie --url https://app.backlinkgenie.com/mcp \
      --bearer-token-env-var BACKLINKGENIE_API_KEY
  4. 4

    Or edit config.toml

    Same result, written by hand. Then type /mcp in a Codex session to check the tools loaded.

    ~/.codex/config.toml
    [mcp_servers.backlinkgenie]
    url = "https://app.backlinkgenie.com/mcp"
    bearer_token_env_var = "BACKLINKGENIE_API_KEY"
Codex
BacklinkGenie connected

We shipped CSV export today. Which pending pitches go to posts about reporting tools? Rewrite those to mention it.

Used list_drafts Used edit_draft

3 of the 8 pending pitches go to reporting roundups (techradar.com, zapier.com, g2.com). I rewrote the second paragraph of each to mention CSV export; all three passed the quality check. Approve them, or see the new text first?

Example with fictional product Margin, a note-taking app for researchers.

Tools used in this example

list_drafts

Pitches waiting for your approval, with the post, contact and why it fits.

edit_draft

Changes a pitch's subject or body. Edits go through the quality check before they're saved.

Also try

Codex can use all 22 tools. See the full tool list on the MCP page or browse example link building prompts.

Fit

Who is the Codex integration for?

Developers using OpenAI's coding agent in the terminal or IDE who want pitches checked against what the code actually ships.

Does Codex ask before sending?

Codex's approval mode covers MCP calls. Use the default mode that asks before actions when approve_draft and send_reply are available. On top of that, BacklinkGenie's server tells every client to show you the exact email and wait for a yes before approve_draft or send_reply.

What goes wrong in Codex setup?

  • Variable not set in the IDE

    The IDE extension only sees BACKLINKGENIE_API_KEY if the editor was launched from a shell that exports it. Restart the editor from the terminal, or set the variable system-wide.

  • Slow calls time out

    If a call fails with a timeout, raise tool_timeout_sec under [mcp_servers.backlinkgenie] in config.toml.

  • Check what loaded

    Type /mcp in a Codex session. If BacklinkGenie is listed with no tools, the key was rejected.

Guides

What can you do from Codex?

Eight step-by-step guides, each with a prompt written for Codex, the tools it calls and an example answer.

What is BacklinkGenie, and what stays the same as the dashboard?

BacklinkGenie is an AI link-building outreach agent for SaaS and online businesses. It buys a separate sending domain and warms the mailbox, finds relevant posts in your niche (best-of roundups, comparison and alternatives pages, resource pages, how-to guides and niche blogs), finds and verifies the editor, writes one pitch per post, sends it and follows up, then checks every won link weekly. The goal is a higher Domain Rating, more organic traffic and more mentions in ChatGPT, Perplexity and Google AI Overviews.

Codex works on the same account, sites and mailboxes as the dashboard, so you can switch between them freely. Pitches wait for your approval unless you turn on Autopilot (we suggest about two weeks of reviewing first), every edit goes through the quality check, and sending stays inside each mailbox's daily limit. Read more about how the outreach agent works, or check whether it's a better fit than Pitchbox or BuzzStream for your team. New to MCP? How MCP servers work for SEO explains the setup in plain terms, and the other integrations use the same connection.

FAQ

Questions people ask

Does the IDE extension use the same setup?

Yes. The Codex CLI and IDE extension share ~/.codex/config.toml, so adding the server once covers both.

Why an environment variable instead of the key in the file?

bearer_token_env_var keeps the secret out of config files you might sync or commit. Codex reads the variable when it connects.

What does a 401 or an upgrade message mean?

A 401 means the key is wrong, revoked or the variable isn't set in the shell Codex started from. If the tools load but answer with an upgrade message, the account has no active paid plan; only start_free_report runs without one.

What does it cost to use BacklinkGenie from Codex?

MCP access is on every plan, and every feature is on every plan: Starter $99/mo (1 site, 1 mailbox, 1,000 emails), Growth $249/mo (3 sites, 3 mailboxes, 3,000 emails), Agency $499/mo (8 sites, 8 mailboxes, 8,000 emails). Pitches and follow-ups written through Codex use the same monthly emails as the dashboard. Reading data and replying to editors don't use any.

Keep reading

Related

Get your free prospect report first

Up to 40 posts worth pitching, no card needed. Connect Codex once you subscribe.

The BacklinkGenie genie The BacklinkGenie genie