@pixelml/agenticflow-cli
Command-line interface for the AgenticFlow platform. Build workflows, agents, and multi-agent workforces. Designed as the API contract for AI agents — Ishi (AgenticFlow's first-party desktop agent), Claude Code, OpenAI Codex, Cursor, Gemini CLI, and other compatible hosts all drive AgenticFlow through this CLI.
Current version: 1.12.0. Built on @pixelml/agenticflow-sdk@1.7.0.
Install
npm install -g @pixelml/agenticflow-cli
Available as both agenticflow and af. Requires Node.js 18+.
The composition ladder
Three deploy verbs map 1:1 to rungs on a 7-level complexity ladder. Start at the lowest rung that solves the user's problem.
| Rung |
Kind |
Deploy |
| 0 |
workflow |
af workflow init --blueprint llm-hello (single LLM call) |
| 1 |
workflow |
af workflow init --blueprint llm-chain (chained reasoning) |
| 2 |
workflow |
af workflow init --blueprint summarize-url / api-summary |
| 3 |
agent |
af agent init --blueprint research-assistant / content-creator / api-helper |
| 6 |
workforce |
af workforce init --blueprint parallel-research (multi-agent DAG) |
Run af playbook composition-ladder for the decision rule.
Jev decision workflows
CLI 1.11 adds typed ai_decision and ai_switch support backed by Jev 1.13.0.
Use ai_decision for named choice, score, or noul questions, then reuse its
recorded result from ai_switch with decision_source: existing. The shipped
blueprints keep uncertain or policy-sensitive cases on explicit human-review
paths:
af workflow init --blueprint customer-support-triage-reply --name "Support triage" --json
af workflow init --blueprint jev-ordered-exception-routing --name "Exception review" --json
af workflow init --blueprint jev-score-quality-gate --name "Draft quality gate" --json
af agent init --blueprint jev-review-assistant --name "Review assistant" --json
af workforce init --blueprint jev-review-workforce --name "Review team" --json
These Jev blueprints require a pixelml connection. They produce review
artifacts only; they do not send messages, issue refunds, change accounts, or
create tickets.
Quick Start
af login # Authenticate
af doctor --json --strict # Verify setup
af bootstrap --json # One-shot workspace snapshot + cheat-sheet
# Deploy the simplest thing that fits your need
af workflow init --blueprint summarize-url --json # rung 2 (workflow)
af agent init --blueprint research-assistant --json # rung 3 (agent + plugins)
af workforce init --blueprint parallel-research --json # rung 6 (workforce DAG)
AI agents: Run af bootstrap --json first. It returns auth, agents, workforces, all 20 blueprints with kind/complexity/deploy_command, playbooks, changelog, and a commands cheat-sheet in one call.
Authentication
login stores credentials; whoami reports the selected local configuration. Neither verifies a key. Run af doctor --strict --json for a protected API check and af bootstrap --compact --strict --json for a verified workspace snapshot. A failed resource read sets data_fresh:false and appears in data_errors; an empty list alone is not evidence of an empty project.
Use --base-url <url> or AGENTICFLOW_BASE_URL with separate credentials and AGENTICFLOW_CLI_DIR for a confirmed DEV environment.
af login # Interactive (saves to ~/.agenticflow/auth.json)
export AGENTICFLOW_API_KEY=<key> # Environment variable
af --api-key <key> agent list # CLI flag
af auth import-env --file .env # Import from .env
af whoami --json # Verify
Core Commands
Workflows (rungs 0-2)
af workflow init --blueprint <slug> --json # Deploy a workflow blueprint
af workflow list --fields id,name,status --json
af workflow run --workflow-id <id> --input '{"url":"..."}' --json
af workflow run-status --run-id <run_id> --json # --run-id or --workflow-run-id
af workflow validate --body @wf.json --local-only
af workflow delete --workflow-id <id>
Agents (rung 3)
af agent init --blueprint <slug> --json # Deploy with plugins pre-attached
af agent list --fields id,name,model --json
af agent get --id <id> --fields plugins --json # --id alias for --agent-id
af agent run --agent-id <id> --message "..." --json
af agent update --agent-id <id> --patch --body '{"system_prompt":"..."}'
af agent delete --agent-id <id>
af agent run returns structured JSON:
{"schema":"agenticflow.agent.run.v1","status":"completed","thread_id":"...","response":"..."}
Workforces (rung 6)
af workforce init --blueprint <slug> --name "<name>" --json
af workforce list --fields id,name --json
af workforce schema --workforce-id <id> --json # Full graph
af workforce publish --workforce-id <id> --json # Mint public URL
af workforce delete --workforce-id <id>
Blueprints & Marketplace
af blueprints list --kind workflow|agent|workforce --json # CLI-shipped catalog
af blueprints get --id <slug> --json # Full details
af marketplace list --type agent_template --json # Live backend catalog
af marketplace try --id <item_id> --json # Clone into workspace
MCP Clients
af mcp-clients list --verify-auth --json
af mcp-clients inspect --id <id> --json # Classify pattern + flag risks
af agent update --agent-id <id> --patch --body '{"mcp_clients":[...]}'
Webhook Gateway
af gateway serve --channels webhook,linear --verbose
curl -X POST http://localhost:4100/webhook/webhook \
-H "Content-Type: application/json" \
-d '{"agent_id":"<id>","message":"Summarize Q4 report"}'
The default bind is loopback-only. Binding to a public interface requires
--gateway-secret (or AF_GATEWAY_SECRET) unless every enabled connector
verifies a provider signature. Generic callbacks reject loopback/private
destinations by default; --allow-private-callbacks is a local-development
opt-in.
AI-Agent Discovery
af bootstrap --json # The one-shot start — auth, blueprints, commands
af context --json # AI-agent invariants + journey
af schema agent --field mcp_clients # Drill into nested payload shapes
af blueprints list --kind agent --json
af marketplace list --json
af playbook composition-ladder # Pick the right rung
af playbook ready-prompts # Copy-paste prompts for AI operators
af changelog --json # What shipped
Playbooks
af playbook composition-ladder # The rung-picking rule
af playbook ready-prompts # Copy-paste prompts per rung
af playbook marketplace-vs-blueprint # When to use each starter catalog
af playbook first-touch # AI-agent onboarding
af playbook workflow-build # Workflow design checklist
af playbook agent-build # Agent configuration
af playbook workforce-build # Workforce from scratch
af playbook mcp-client-quirks # Pipedream vs Composio attach safety
af playbook migrate-from-paperclip # Legacy paperclip → workforce map
af playbook template-bootstrap # Start from pre-built templates
Hidden (deprecated) commands
af pack, af paperclip, af company are hidden from default af --help in v1.10.0. They still work; set AF_SHOW_DEPRECATED=1 to unhide. Migration paths:
af pack install → af workforce init --blueprint <id> (sunset 2026-10-14)
af paperclip init → af workforce init --blueprint <id> (sunset 2026-10-14) — see af playbook migrate-from-paperclip
af company * → af workforce export/import
Global Options
| Flag |
Purpose |
--json |
Machine-readable JSON output |
--fields <list> |
Filter output fields (saves context window) |
--dry-run |
Validate without executing |
--patch |
Partial update on af agent update (preserves MCP clients, tools, code-exec) |
--api-key <key> |
Override API key |
--workspace-id <id> |
Override workspace |
--project-id <id> |
Override project |
Environment Variables
| Variable |
Purpose |
AGENTICFLOW_API_KEY |
API key |
AGENTICFLOW_WORKSPACE_ID |
Default workspace ID |
AGENTICFLOW_PROJECT_ID |
Default project ID |
AF_SILENCE_DEPRECATIONS |
Set =1 to suppress deprecation warnings |
AF_SHOW_DEPRECATED |
Set =1 to un-hide pack/paperclip/company in --help |
AF_INSECURE_TLS |
Set =1 to opt-in to insecure TLS (off by default) |
AGENTICFLOW_BASE_URL |
Override the API base URL |
AF_GATEWAY_SECRET |
Shared secret for Gateway webhook authentication |
LINEAR_WEBHOOK_SECRET |
Verify Linear webhook signatures |
Links