Codex + Fluxi

Schedule social media posts with Codex

Add Fluxi to Codex and shipping and announcing become the same job. Codex reads what changed, writes the post in your brand voice and Fluxi schedules it to every network - all from the terminal, the editor or the Codex app.

  • One address and a sign-in connects Codex to Fluxi
  • Turn release notes, diffs and docs into scheduled posts
  • Running headless? The Fluxi CLI and skill work with an API key
MCPhttps://mcp.tryfluxi.com/mcp

7 days free, no card. Included in every plan.

codex - ~/larkspur

> Our spiced pear danish is back for autumn, only 30 a day. Post it to Instagram and Facebook at 8am tomorrow with the photo from the library.

● fluxi · get_portfolio

● fluxi · list_media

● fluxi · create_post

✓ Done - it’s scheduled for 8am tomorrow on Instagram and Facebook, in your usual voice. Want a shorter version for X as well?

> ▍

Set up

Connect Codex to Fluxi

Two commands.

  1. 1

    Add the server

    In your terminal:

    codex mcp add fluxi --url https://mcp.tryfluxi.com/mcp
  2. 2

    Sign in

    This opens Fluxi in your browser. Sign in and press Allow.

    codex mcp login fluxi
  3. 3

    Ask for a post

    Start Codex and ask. Codex finds your portfolios and connected accounts on its own.

  4. 4

    Or edit the config

    The same server, in ~/.codex/config.toml:

    [mcp_servers.fluxi]
    url = "https://mcp.tryfluxi.com/mcp"
  5. Prefer the CLI and skill?

    For Codex running with nobody at a browser - in CI, a cron job or on a server. In Fluxi, open Settings, then Connected apps, and create one under API keys, then:

    npx skills add fluxiai/fluxi-agent
    npm install -g @fluxi/cli
    export FLUXI_API_KEY=fxk_...

MCP or CLI

Which way should Codex connect to Fluxi?

Use the MCP server unless nobody is at a browser to sign in. Both ways can do everything in Fluxi.

Way inHow it signs inAPI keyBest for
MCP serverYour browser, once - press Allow in FluxiNoMost people using Codex
CLI and skillA Fluxi API key in FLUXI_API_KEYYes - revoke it any timeServers, CI, cron jobs and agents nobody is watching

Give Codex the skill

The skill teaches Codex when and how to use the fluxi command. In Fluxi, open Settings, then Connected apps, and create one under API keys, then:

npx skills add fluxiai/fluxi-agent
npm install -g @fluxi/cli
export FLUXI_API_KEY=fxk_...

Results come back as JSON and errors in plain words, so Codex can pass them on to you.

Running on its own

Anything that publishes straight away, deletes or spends AI credits stops and says what it would do. The skill tells the agent to check with you, then run it again with --confirm - or to go ahead on its own only where you have said it may.

$ fluxi posts create --portfolio-id P --text "Doors open at 7" --when now …
{ "confirmationRequired": true,
  "wouldDo": "Publishes this post to real social accounts straight away." }

$ fluxi posts create … --when now --confirm

What it can do

What Codex can do with Fluxi

Everything you would do in Fluxi’s composer, calendar and Media Agent - asked for in plain words, in Codex.

Write, schedule and publish

Drafts, scheduled posts or posts that go out now, to every connected account - with different text for each network, and times in your time zone.

Make images and video

Fluxi’s Media Agent makes on-brand images and short clips, or edits ones in your library, ready to attach.

Plan whole campaigns

Describe a promotion and Fluxi plans a campaign of posts, makes them, and waits for your approval.

Use your media library

Find what is already in your library, or add images from the chat or a link.

Keep the calendar right

See what is going out, move posts, edit them, and retry any that failed - with a link to each once it is live.

Best times, hashtags and replies

Suggested posting times, saved hashtag groups, and keyword replies that answer comments automatically.

Codex posts to every network Fluxi does

Google Business Profile coming soon.

Try asking

Things to ask Codex

Once Fluxi is connected, these work as written.

Release notes
“Read CHANGELOG.md and schedule a post about the new release on X, LinkedIn and Bluesky for 9am tomorrow.”
From the diff
“Write a short thread on the three biggest changes in this branch and save it to Fluxi as a draft for X and Threads.”
A launch
“Plan a launch campaign for v3.0 across X, LinkedIn and Instagram, starting Monday, and make an image for each post.”
Check the calendar
“List everything scheduled this week in Fluxi and retry any posts that failed.”

Coding agent · OpenAI

What is Codex?

Codex is OpenAI’s coding agent. It runs in your terminal, your editor and the Codex app, works on your code, and connects to outside tools through MCP servers - like Fluxi.

One config

The CLI, the editor extension and the app share ~/.codex/config.toml, so Fluxi added once is everywhere.

OAuth built in

codex mcp login signs in to a remote server in your browser - no token in your dotfiles.

Your ChatGPT account

Codex signs in with ChatGPT, so there is nothing extra to pay OpenAI for.

You stay in charge

Your accounts, your say

Codex works inside the limits you approve, on the posts you can see.

You approve the connection

Codex signs in through Fluxi’s own screen, which says exactly what it may do, or uses an API key you make and can revoke. Your social passwords never change hands.

It checks before it acts

Codex is asked to confirm the final post with you before publishing straight away, and before spending AI credits. With the CLI, those commands stop until it adds --confirm.

Everything lands on your calendar

Every post it schedules is on your Fluxi calendar, where you can edit, move or delete it.

Disconnect any time

Settings, then Connected apps: disconnect the app or revoke its key. Access ends straight away.

What it can never do

  • Change your plan, billing or team
  • Connect or remove social accounts
  • See your password or sign-in details

The same list is on the screen where you let it in.

FAQ

Codex and Fluxi: questions

Put Codex to work on your social media

Start a free trial, connect your social accounts, add Fluxi to Codex and ask for your first post. It takes a few minutes.

7 days free. No card required.