Post from Codex in two commands
Add Posthoop to Codex and your terminal agent can schedule posts, cancel them and pull your numbers.
# add Posthoop, then sign incodex mcp add posthoop --url https://posthoop.com/api/mcpcodex mcp login posthoop- Works in
- Codex CLI
- Setup
- Two commands
- Sign-in
- Browser or API key
Connect Codex to Posthoop
Add the server
Run this in your terminal.
codex mcp add posthoop --url https://posthoop.com/api/mcpSign in
This opens Posthoop in your browser. Sign in, pick a workspace and approve.
codex mcp login posthoopTry it
Start Codex and ask "List my Posthoop accounts."
With an API key
For scripts and servers where nobody is around to click a sign-in page, use a Posthoop API key from an environment variable.
export POSTHOOP_API_KEY="your key"
codex mcp add posthoop --url https://posthoop.com/api/mcp --bearer-token-env-var POSTHOOP_API_KEYThings to ask it
Say it the way you'd say it to an assistant. These all work.
Schedule a post
"Post this video to Instagram, TikTok and Shorts on Friday at 6pm. Use a shorter caption on X."
Check before posting
"Would this caption fit every platform I've connected? Don't post anything yet."
Fill the week
"Add these five clips to my queue." Each one takes the next free slot in your weekly schedule.
Draft it first
"Save this as a draft so I can look at it before it goes out."
Change your mind
"Cancel tomorrow morning's LinkedIn post."
Ask what worked
"Which of last week's videos got the most views, and on which platform?"
Questions
Which should I use, the sign-in or the API key?
The browser sign-in on your own machine. It's tied to you and you can revoke it from the AI tools page. Use an API key for automation that runs unattended.
Will it post without asking me?
Posthoop marks publishing as an action that can't be undone, so well-behaved apps ask you to confirm before they post. You can also tell the agent to do a dry run, which checks the post against every platform and publishes nothing.
How does it get my video?
Give the agent a link to the file and Posthoop fetches it, up to 100 MB. For bigger files, the agent asks Posthoop for an upload link and sends the file there.
Can I disconnect it later?
Yes. The AI tools page in your dashboard lists every app connected to the workspace, and an admin or owner can cut any of them off at once.