Connect Codex CLI to Postwyre
Codex CLI, OpenAI's command line agent, connects with a key you make in Postwyre and keep in an environment variable, not in Codex's config file.
With a key
Set it up
In Postwyre, make a key from the Connect your agent card on the Accounts screen. Postwyre shows it once. It starts with sk_live_.
Put this in ~/.codex/config.toml.
[mcp_servers.postwyre] url = "https://postwyre.com/api/mcp" bearer_token_env_var = "POSTWYRE_API_KEY"Set POSTWYRE_API_KEY to your key in your shell profile before you start Codex, not on the command line.
Click Check connection in the Connect your AI panel, then start or reload your agent. The panel shows Connected once your agent reaches Postwyre.
Your agent can draft posts, schedule them for each platform and report how they did. Ask it to hold a post for approval and nothing goes out until a person in the brand approves it. The agent can ask for approval but cannot give it.
The same steps in the docsStart Postwyre, then connect Codex CLI
Your agent works in the brands you are in. It can read them as soon as it connects, and it can post once the brand has a plan.