Set up Creagency with Codex
Point Codex at the Creagency skill, CLI, or local MCP server so it can list accounts, create drafts, upload media, and stop before publish.
Quick start
Setup surfaces
Install the Creagency skill so Codex uses the real API rules instead of inventing endpoints.
mkdir -p ~/.agents/skills/creagency-api
curl -fsSL https://creagency.ai/.agents/skills/creagency-api/SKILL.md \
-o ~/.agents/skills/creagency-api/SKILL.mdUse parseable terminal commands when the agent can run local shell tools.
npm install -g @creagency/agent
export CREAGENCY_API_KEY=creagency_xxx
export CREAGENCY_API_ORIGIN=https://api.creagency.ai
creagency auth:status --json
creagency integrations:list --jsonRun creagency-mcp as a local stdio server so Codex can use bounded Creagency tools. Hosted remote MCP is planned as a separate OAuth-based connector. Use the local CLI and stdio MCP server today.
[mcp_servers.creagency]
command = "npx"
args = ["-y", "-p", "@creagency/agent", "creagency-mcp"]
[mcp_servers.creagency.env]
CREAGENCY_API_ORIGIN = "https://api.creagency.ai"Prompt examples
Codex reads local release notes, then creates channel-specific drafts.
Use Creagency to draft a LinkedIn post and an X post from CHANGELOG.md. List connected accounts first and do not publish.Two Creagency drafts are created with copy tailored to each channel.
Codex uploads local media and attaches it to a draft.
Upload ./assets/launch-card.png to Creagency, then attach it to a LinkedIn draft about this release.The media asset is stored and linked to the draft without exposing the signed upload URL.
Codex summarizes a documentation change into a social post.
Read docs/api/agent-playbook.md and create one Creagency draft announcing the guide. Keep it under 900 characters.A concise post draft references the guide without publishing.
Codex prepares publish only after a human asks for it.
Prepare post_123 for publishing and show me the final text, platform, account, and schedule before executing.Codex returns a publish summary and waits for confirmation.
Run creagency auth:status --json, then integrations:list --json. If the list is empty, connect social accounts in Creagency first.
Create or rotate the API key with posts:read, posts:write, assets:read, assets:write, and integrations:read.
Point it back to the skill rule: create or schedule a draft first unless the user explicitly confirms publish.