RelayAPI

OpenAI Codex

Install the RelayAPI plugin for OpenAI Codex to manage social media posts from the Codex CLI.

The RelayAPI plugin for OpenAI Codex brings social media management to the Codex CLI. Use natural language to create posts, manage accounts, and schedule content.

Quick Reference

PlatformOpenAI Codex CLI
Version1.0.0
AuthRELAYAPI_API_KEY environment variable
DistributionRepository marketplace or personal install

Self-serve publishing to the official Codex Plugin Directory is coming soon. For now, install via repository or personal marketplace.

Install

Option A: Repository Marketplace (Team)

Add the plugin to your project so team members get it automatically:

mkdir -p ./plugins
cp -R packages/integrations/codex-plugin ./plugins/relayapi

Create $REPO_ROOT/.agents/plugins/marketplace.json:

{
  "name": "relayapi-plugins",
  "interface": {
    "displayName": "RelayAPI Plugins"
  },
  "plugins": [
    {
      "name": "relayapi",
      "source": {
        "source": "local",
        "path": "./plugins/relayapi"
      },
      "policy": {
        "installation": "AVAILABLE",
        "authentication": "ON_INSTALL"
      },
      "category": "Productivity"
    }
  ]
}

Restart Codex to discover the plugin.

Option B: Personal Install

Install for your user only:

mkdir -p ~/.codex/plugins
cp -R packages/integrations/codex-plugin ~/.codex/plugins/relayapi

Create or update ~/.agents/plugins/marketplace.json:

{
  "name": "personal-plugins",
  "interface": {
    "displayName": "My Plugins"
  },
  "plugins": [
    {
      "name": "relayapi",
      "source": {
        "source": "local",
        "path": "~/.codex/plugins/relayapi"
      },
      "policy": {
        "installation": "INSTALLED_BY_DEFAULT"
      },
      "category": "Productivity"
    }
  ]
}

Restart Codex.

Setup

Set your API key as an environment variable:

export RELAYAPI_API_KEY="rlay_live_your_key_here"

Get your key from relayapi.dev under Settings > API Keys.

Usage

Skills

Invoke the RelayAPI skill in Codex:

$relayapi — post "Hello world!" to Twitter

Or use the guided post composer:

$social-post

Example: Natural Language

Use RelayAPI to post to Twitter and LinkedIn
Use RelayAPI to list my connected social media accounts
Use RelayAPI to schedule a post for tomorrow

What's Included

Skills

  • RelayAPI Reference — Full API documentation with TypeScript SDK examples and all 21 platform details
  • Social Post Composer — Step-by-step post creation with platform validation and confirmation

Updating

  1. Update skill content in skills/*/SKILL.md
  2. Bump version in .codex-plugin/plugin.json
  3. Re-copy to the target location
  4. Restart Codex

Found something wrong? Help us improve this page.

On this page

Submit an Issue
Requires a GitHub account.View repo