ChirpieDocs
MCP

Use Chirpie with Codex

Add Chirpie to the OpenAI Codex CLI with codex mcp add chirpie --url https://chirpie.ai/mcp, sign in once, and let Codex post, schedule and thread.

Verified 2026-11-26 against OpenAI's Codex MCP docs.

How do I connect Chirpie to Codex?

Run codex mcp add chirpie --url https://chirpie.ai/mcp, then codex mcp login chirpie and sign in to Chirpie in your browser. Codex can then publish, schedule and read analytics through Chirpie from any session.

Add the hosted server to the Codex CLI, then sign in once.

Terminal
codex mcp add chirpie --url https://chirpie.ai/mcp
  1. Run the command above.
  2. Run codex mcp login chirpie and sign in to Chirpie in your browser.
Full Codex guide →
~/.codex/config.toml
[mcp_servers.chirpie]
url = "https://chirpie.ai/mcp"

Add the hosted server

codex mcp add chirpie --url https://chirpie.ai/mcp
codex mcp login chirpie

On a machine with no local browser, add --no-browser to the login and open the link it prints.

Or edit config.toml

Codex keeps its servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project):

[mcp_servers.chirpie]
url = "https://chirpie.ai/mcp"

Run codex mcp login chirpie once after adding it. For an unattended run, name an environment variable holding a Chirpie API key with bearer_token_env_var instead of signing in.

Set it up as an agent

Signing in to the hosted server is a step only a person can take in Codex (codex mcp login), so an agent working in Codex cannot finish it alone. It can do the rest instead: get a Chirpie API key by device authorization, where the person only taps Approve, then add the server with that key.

# 1. Get a key: relay data.human_action.message to the person, then poll /api/v1/device/token
curl -s -X POST https://chirpie.ai/api/v1/device/code -H "Content-Type: application/json" \
  -d '{"client_name": "Codex"}'

# 2. Hand it to Codex through an environment variable
export CHIRPIE_API_KEY=chirpie_sk_...
codex mcp add chirpie --url https://chirpie.ai/mcp --bearer-token-env-var CHIRPIE_API_KEY

The variable has to be set wherever Codex runs. The full polling flow is in For agents. When the person is at the keyboard, codex mcp login chirpie (above) needs no key at all.

What happens when you sign in?

The first time a Chirpie tool runs, a browser window opens on chirpie.ai. Sign in, or create a free account, then choose Full access or Read only on Chirpie's own screen. The app receives an access token for the MCP server, never your password, and the choice is enforced by Chirpie on every call. To change it, remove Chirpie from the app, add it again and choose the other option. See Read only or full access.

Then connect your social accounts: ask the agent ("connect my X account") and open the link it gives you, or use the Chirpie dashboard. Every app you connect sees the same accounts.

What can I ask it to do?

  • "Post this to X and LinkedIn, with a shorter version for X."
  • "Schedule a Bluesky thread for tomorrow at 9am New York time."
  • "Upload this video and post it to Instagram as a reel."
  • "How did my last Mastodon post do?"
  • "Save this as a draft. I will pick the wording later."

Large files go straight to storage with chirpie_create_media_upload, up to 20 MB for an image and 512 MB for a video; each network's own limit still applies when it is posted (see the media limits per platform). The full tool list is on the MCP server page.

Frequently asked questions

Do I need an API key to use Chirpie in Codex?

No. Codex signs in to Chirpie with OAuth, so there is no key to copy, store or rotate. An API key is only needed for a client that cannot sign in, or for a script.

Can I give Codex read-only access?

Yes. After you sign in, Chirpie asks whether Codex gets Full access or Read only. Read only lists your accounts and reads posts, analytics and comments, and offers no tool that publishes, edits, deletes or connects anything.

Which networks can Codex post to through Chirpie?

X, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook and Telegram, on every account you have connected to Chirpie. Video works on all eight. If one part of a thread fails, Chirpie deletes the parts already published, and names any part a platform will not delete.

On this page