npx crewform) is a standalone command-line tool that lets you create, run, and manage AI agents locally — with optional connectivity to the CrewForm platform.
Installation
Quick Start
Commands
Local Execution
| Command | Description |
|---|---|
crewform run <file> [prompt] | Run an agent or team from a JSON config |
crewform chat <file> | Interactive chat session with an agent |
crewform init | Create a starter agent or team config |
crewform validate <file> | Validate a config file |
crewform tools | List available built-in tools |
Platform (API-Connected)
| Command | Description |
|---|---|
crewform login | Authenticate with your CrewForm API key |
crewform logout | Remove saved credentials |
crewform whoami | Show authenticated user & workspace |
crewform agents | List agents in your workspace |
crewform teams | List teams in your workspace |
crewform pull <id> | Download agent/team config to local JSON |
crewform push <id> [prompt] | Dispatch a task to a remote agent/team |
Running Agents
Basic Usage
Input & Output
Interactive Chat
Start a REPL session with conversation history:| Command | Action |
|---|---|
/clear | Clear conversation history |
/history | Show recent messages |
/stats | Show token usage & cost estimate |
/exit | End session |
Pipeline Teams
Run multi-agent workflows locally. Agents execute in sequence, with each step’s output passed as context to the next.Team Config Example
Fan-Out (Parallel Execution)
Steps withtype: "fan_out" run multiple agents in parallel, then merge results:
fail_fast— Stop all branches if any failscontinue_on_partial— Collect results from successful branches
MCP Server Integration
Connect agents to external MCP servers for dynamic tool discovery:MCP Server Config
Create amcp-servers.json file:
stdio, sse, streamable-http
Platform Integration
Connect the CLI to your CrewForm workspace to browse, download, and dispatch agents remotely.Authenticate
Get your API key from Settings → API Keys in the CrewForm dashboard.~/.crewform/config.json.
Browse Your Workspace
Download Agents Locally
Pull an agent or team from the platform and run it locally:Dispatch Work Remotely
Send a task to a cloud-hosted agent or team without running locally:Config Formats
The CLI accepts three config formats:Inline Agent (simplest)
Inline Agent (simplest)
CrewForm Export (from the web app)
CrewForm Export (from the web app)
Exported via Agent → Menu → Export in the dashboard:
Team Config
Team Config
See the Pipeline Teams section above for the full team config format.
Built-in Tools
| Tool | Description | Requires |
|---|---|---|
web_search | Search the web via Serper API | SERPER_API_KEY |
http_request | Make HTTP GET/POST requests | — |
code_interpreter | Run JavaScript code in a sandbox | — |
read_file | Read a file from a URL | — |
grammar_check | Check grammar and spelling | — |
Environment Variables
| Variable | Purpose |
|---|---|
CREWFORM_API_KEY | API key for platform commands (alternative to crewform login) |
CREWFORM_API_URL | Custom API URL for self-hosted instances |
SERPER_API_KEY | Required for web_search tool |
OPENAI_API_KEY | OpenAI provider |
ANTHROPIC_API_KEY | Anthropic provider |
GOOGLE_API_KEY | Google Gemini provider |

