Skip to content
@Pipelex

Pipelex

The language for declarative composable Al workflows. Devtool for agents and mere humans.
Pipelex Logo

Executable AI Methods

Declare multi-step AI methods in typed .mthds files — deterministic orchestration, structured outputs, repeatable results.


MIT License PyPI Discord


What a Method Looks Like

[pipe.summarize_article]
type    = "PipeLLM"
inputs  = { article = "Text", audience = "Text" }
output  = "Text"
prompt  = "Summarize $article in three bullet points for $audience."

From here, Pipelex handles model routing across 60+ models, structured output parsing, and pipeline orchestration.


Get Started with Claude Code

Open Claude Code and paste this. Claude does the rest.

Install mthds: run bash -c 'npm install -g mthds && mthds-agent bootstrap && claude plugin marketplace add mthds-ai/mthds-plugins && claude plugin install mthds@mthds-plugins'. Then tell me to /reload-plugins.

Then build your first method:

/mthds-build A method to summarize articles with key takeaways for different audiences

Run it:

/mthds-run

Get Started with Codex

Open Codex and paste this. Codex does the rest.

Install mthds: run bash -c 'npm install -g mthds && mthds-agent bootstrap && mthds-agent codex apply-config && codex plugin marketplace add mthds-ai/mthds-plugins'. Then tell me to restart Codex and run /plugins to install mthds.

Requires Codex 0.130.0+ (npm install -g @openai/codex@latest if needed). See the mthds-plugins README for what mthds-agent codex apply-config does and manual install steps.


Get Started without an AI Coding Agent

uv tool install pipelex
pipelex init
  1. Install the VS Code extension for .mthds syntax highlighting
  2. Browse methods on the MTHDS Hub for inspiration
  3. Author your own .mthds methods
  4. Validate with pipelex validate bundle your_method.mthds
  5. Run with pipelex run bundle your_method.mthds

Starter Templates

Two ready-to-fork templates depending on how you want to run methods:

  • pipelex-starter-python — Python project embedding the pipelex runtime directly. Best when you want to run methods in-process from a Python service, script, or notebook. Click Use this template on GitHub.
  • pipelex-starter-js — Next.js 16 + TypeScript app that calls a Pipelex API server via the mthds SDK. Best when you want a TypeScript frontend/backend that talks to a remote (hosted or self-hosted) Pipelex runner. Ships with three demo pipelines (text entities, PDF summary, image generation).

Configure AI Access

  • Pipelex Gateway (Recommended) — Free credits, single API key for LLMs, OCR / document extraction, and image generation across all major providers.
  • Bring Your Own Keys — Use existing API keys from OpenAI, Anthropic, Google, Mistral, etc. See Configure AI Providers.
  • Local AI — Ollama, vLLM, LM Studio, or llama.cpp — no API keys required. See Configure AI Providers.

Examples

Ready-to-run methods in the Cookbook: classification, extraction, analysis, generation, and more.

Community & Support

Key Repositories

Repository Description
pipelex Python runtime — build and run AI methods
mthds The MTHDS open standard — specification and docs
mthds-plugins Claude Code + Codex skills plugin for building, running, and editing methods
pipelex-starter-python Starter template — Python project embedding the pipelex runtime
pipelex-starter-js Starter template — Next.js + TypeScript app calling the Pipelex API via the mthds SDK
pipelex-cookbook Production-ready examples and tutorials

License

All repositories are MIT licensed unless otherwise specified. See individual LICENSE files for details.

"Pipelex" is a trademark of Evotis S.A.S.

Pinned Loading

  1. pipelex pipelex Public

    Declarative language for composable Al workflows. Devtool for agents and mere humans.

    Python 676 50

  2. pipelex-cookbook pipelex-cookbook Public

    Cookbook for Pipelex, the declarative language for composable Al workflows. Devtool for agents and mere humans.

    Makefile 37 9

  3. pipelex-mcp pipelex-mcp Public

    MCP server to run Pipelex pipelines

    Makefile 8 1

  4. pipelex-starter-python pipelex-starter-python Public template

    Minimal python starter template that runs AI methods using the Pipelex python library.

    Makefile 5 1

  5. n8n-nodes-pipelex n8n-nodes-pipelex Public

    n8n Node for running Pipelex

    Makefile

Repositories

Showing 10 of 19 repositories

Top languages

Loading…

Most used topics

Loading…