Install
pip install pipelex
pipelex init
To use AI models, you need API key(s):
- The
PIPELEX_INFERENCE_API_KEYkey provides access to all the AI models. To get your key, join our Discord community, then request your free API key (no credit card required, limited time offer) in the 🔑・free-api-key channel. - You can also use other AI routing services like BlackBox AI, or you can bring your own API keys (OpenAI, Anthropic, Google, Mistral, etc.), or run local AI (no key needed). See Configure AI Providers for details. If you are using non-standard APIs, that's OK too, don't hesitate to join our Discord for guidance, Pipelex provides dependency injections for the API portals, See here for more information
Generate workflows with Pipe Builder
The fastest way to create production-ready AI workflows is with the Pipe Builder. Just describe what you want, and Pipelex generates complete, validated pipelines.
pipelex build pipe "Take a CV and Job offer in PDF, analyze if they match and generate 5 questions for the interview"
The pipe builder generates a complete production-ready script in our Pipelex language, saved as a .plx file including domain definition, concepts, and the multiple pipe steps to take to achieve the goal. It has also generated a file inputs.json, describing the form of the mandatory inputs for running the pipe.
Pipe Builder Requirements
For now, the pipe builder requires access to Claude 4.5 Sonnet, either through Pipelex Inference, or using your own key through Anthropic, Amazon Bedrock or BlackboxAI. Don't hesitate to join our Discord to get a key, otherwise, you can also create the workflows yourself, following our documentation guide.
Run your pipeline
Option 1: CLI
pipelex run results/cv_match.plx --inputs inputs.json
The --inputs file should be a JSON dictionary where keys are input variable names and values are the input data. Learn more on how to provide the inputs of a pipe: Providing Inputs to Pipelines
Option 2: Python
This requires having the .plx file or your pipe inside the directory where the Python file is located.
import json
from pipelex.pipeline.execute import execute_pipeline
from pipelex.pipelex import Pipelex
# Initialize Pipelex
Pipelex.make()
# Load the inputs from the JSON file
with open("inputs.json", "r", encoding="utf-8") as json_file:
inputs = json.load(json_file)
# Execute the pipeline
pipe_output = await execute_pipeline(
pipe_code="analyze_cv_and_prepare_interview",
inputs=inputs
)
print(pipe_output.main_stuff)
Easily iterate on your pipe
Now, thanks to our Pipelex language, you can easily edit the pipeline, even if you're not a coder. Better yet, you can get assisted in making changes with the help of your favorite AI coding assistant. To that end, we have prepared comprehensive rules meant for the most popular AI coding assistants. You can install those rules with one call:
pipelex kit rules
This installs Pipelex rules for Cursor, Claude Code, OpenAI Codex, GitHub Copilot, Windsurf, and Blackbox AI.
Now refine your pipeline with natural language directly in your AI assistant's chatbot:
- "Include confidence scores between 0 and 100 in the match analysis"
- "Write a recap email at the end"
- "Split the first pipe into 2 more detailed pipe"
IDE Support
We highly recommend installing our own extension for PLX files into your IDE of choice. You can find it in the Open VSX Registry and download it directly using this link. It's coming soon to the VS Code marketplace too and if you are using Cursor, Windsurf or another VS Code fork, you can search for it directly in your extensions tab.
Examples
Cookbook Examples - Real-world patterns and use cases
Next Steps
Now that you know how to generate workflows with the Pipe Builder, explore these resources:
Learn how to Write Workflows yourself
Explore Examples:
- Cookbook Examples - Real-world patterns and use cases
Configure Your Setup:
- Configure AI Providers - API keys, local AI, model providers
- Project Organization - Structure your Pipelex projects
