Post to LinkedIn from Codex
Codex is OpenAI's coding agent. It runs as the Codex CLI in your terminal, as an IDE extension and inside the ChatGPT desktop app, and all three can use MCP servers. A text-only post or a video with text, published publicly on your own LinkedIn profile.
Connect Codex to Kreatix
Sign in with Kreatix
No key to copy: paste the address, sign in to Kreatix and press Allow.
- Run once in a terminal: codex mcp add kreatix --url https://api.kreatix.cc/mcp
- Run codex mcp login kreatix, sign in to Kreatix in the browser and press Allow.
- Start codex and type /mcp to check that kreatix is listed.
codex mcp add kreatix --url https://api.kreatix.cc/mcpWith a key
For setups without sign-in. The key works like a password, so keep it to yourself.
- In Kreatix, open Settings > AI agent and create a key. It is shown once.
- Add the [mcp_servers.kreatix] table from the snippet to the end of ~/.codex/config.toml.
- To keep the key out of the file instead, run export KREATIX_API_KEY=YOUR_KEY in your shell and then codex mcp add kreatix --url https://api.kreatix.cc/mcp --bearer-token-env-var KREATIX_API_KEY.
- Check with codex mcp list, or with /mcp inside codex.
[mcp_servers.kreatix]
url = "https://api.kreatix.cc/mcp"
http_headers = { "Authorization" = "Bearer YOUR_KEY" }What Codex can do on LinkedIn
A text-only post or a video with text, published publicly on your own LinkedIn profile.
| Setting | Values | Needed | What it does |
|---|---|---|---|
caption | string (max 5000) | No | The post text. A text-only post needs it. |
media_url | URL | No | One video to post with the text: a link from your Kreatix library or a public YouTube, TikTok, Instagram or Facebook post. Leave it out for a text-only post. |
Ask in plain words
Ask inside the codex terminal app, or one-off from a script: codex exec "Which of my Kreatix pages got the most views this week?"
codex exec "Post this on my LinkedIn tomorrow at 8:30: We hired our first two engineers this month."codex exec "Share yesterday's product video on LinkedIn at 12:00 with a short, plain caption."codex exec "What is planned on my LinkedIn next week?"
LinkedIn rules to know
- Posts go out on the profile of the person who connected LinkedIn, in their name.
- Every post is public: Kreatix sends LinkedIn the PUBLIC visibility.
- A text-only post needs a caption.
- get_stats has no numbers for LinkedIn.
Tips for Codex
- Add default_tools_approval_mode = "writes" to [mcp_servers.kreatix]. Codex then asks before schedule_post, reschedule_post and cancel_post, and runs the reading tools straight away.
- Set it up once: the Codex CLI, the IDE extension and Codex in the ChatGPT desktop app share ~/.codex/config.toml.
- In the IDE extension you can skip the terminal: gear menu > MCP servers > Add server, choose Streamable HTTP, enter the address, save, select Restart extension, then Authenticate.
- The agent checks the pages, caption and time with you before it posts. It cannot delete pages, read messages or change your account, and you can remove it any time in Settings > AI agent.
Questions
How do I post to LinkedIn from Codex?
Connect Codex to Kreatix once, as shown above. Then ask it to post: name your LinkedIn pages or a page group, the video or text and the time. Codex shows you the plan and posts after you say yes.
Can it post to a LinkedIn company page?
Kreatix posts as the person who connected LinkedIn, on their own profile. Company pages are not part of the connection.
Who can see the post?
Everyone: Kreatix publishes LinkedIn posts with public visibility.
Can the agent post text only?
Yes. LinkedIn, X and Facebook take text-only posts. Leave media_url out and give a caption.
What if my LinkedIn login expires?
list_channels shows needs_reconnect on that channel, and nothing goes out there until you reconnect it in Kreatix. A post still waiting 24 hours after its time is marked failed, and Kreatix tells you.
Can I sign in on a machine without a browser?
Yes. Run codex mcp login kreatix --no-browser, open the printed link on another device, sign in and press Allow, then paste the full redirect URL back into the terminal.
Does the config go in my home folder or the project?
~/.codex/config.toml works everywhere. A project's .codex/config.toml also works, but only in projects you trust.
Kreatix schedules one video to every page you run, each with its own platform settings.
Start free, then connect Codex