Set up Creagency with AI Agents CLI
The Creagency CLI and stdio MCP server let agents inspect connected accounts, create drafts, upload media, and prepare publish actions from the terminal without exposing platform passwords.
Quick start
Setup surfaces
Install the Creagency skill so your agent 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 your agent 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.
{
"mcpServers": {
"creagency": {
"command": "npx",
"args": ["-y", "-p", "@creagency/agent", "creagency-mcp"],
"env": {
"CREAGENCY_API_ORIGIN": "https://api.creagency.ai"
}
}
}
}Publish and delete require target-bound confirmation. --confirm true is intentionally rejected.
creagency posts:create --file post.json --json
creagency media:upload ./launch-card.png --category assets --json
creagency posts:publish post_123 --confirm post_123 --jsonPrompt examples
Check the API key and connected accounts before asking any agent to create content.
Run creagency auth:status --json and creagency integrations:list --json. Summarize which social accounts are available.A clean readiness report with account ids, platform names, and no leaked API key.
Use the CLI when a local process has already prepared a JSON payload.
Create a Creagency draft from ./post.json, return the post id, and do not publish.A draft exists in Creagency and the agent reports the post id for review.
Send a local image through the signed upload flow, then attach it to the draft.
Upload ./launch-card.png with Creagency, then create a LinkedIn draft that uses the uploaded asset.An asset is stored in Creagency and linked to a review-ready post draft.
Use the confirmation flow when a person asks the agent to publish.
Prepare post_123 for publish, show me the summary, and wait for my confirmation.The agent returns the summary and does not execute publish until confirmation is provided.
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.