Pipelex Features
Pipelex is the reference runtime for AI methods written in MTHDS. This section covers the main capabilities you use to define methods, run them, and operate them in production.
This section covers all Pipelex capabilities, organized by area.
Declarative AI Methods
-
A declarative, TOML-based
.mthdsfile format for defining AI methods without writing code. Domains, bundles, packages, and cross-references. -
Semantic typing system for AI data. Native types, inline structures, Python classes, concept refinement, and hierarchies.
-
The workers that do the actual processing: PipeLLM, PipeExtract, PipeImgGen, PipeSearch, PipeCompose, and PipeFunc.
-
Controllers for building complex workflows: PipeSequence, PipeParallel, PipeBatch, PipeCondition, and working memory for data flow.
AI Capabilities
-
Pipelex Gateway & Model Access
Unified access to 60+ AI models through a single API key, or bring your own keys for direct provider access. Open-source model support via Hugging Face, Scaleway, and Groq.
-
Text generation, structured outputs, vision language models, prompting styles, system prompt inheritance, and model presets.
-
Multi-provider OCR with Mistral OCR, Azure Document Intelligence, docling, and Deepseek-OCR. PDF processing, page rendering, layout analysis, and table recognition.
-
Text-to-image generation with FLUX, GPT Image, and other providers. Cloud storage integration for generated images.
-
Structured web search results with source citations and advanced filters via PipeSearch.
Developer Tools
-
Build, run, validate, and edit AI methods directly from Claude Code with the MTHDS skills plugin. Slash commands cover the full method lifecycle.
-
Full command-line interface:
login,init,doctor,build,validate,run,graph,show,which, and more. Dry run mode, graph generation, and agent CLI. -
Fast formatting and linting for TOML, MTHDS, and PLX files. CI-ready with
--checkmode. -
Interactive HTML visualization and Mermaid chart export for pipeline execution. Step-by-step data inspection with JSON, HTML, images, and PDFs.
Production & Operations
-
Pipeline validation without execution, dry run with mocked LLM responses, input validation, and allowed-to-fail pipes.
-
Production monitoring with Langfuse, OpenTelemetry, and PostHog integration. Gateway telemetry, span tracing, and custom destinations.
-
Store generated artifacts on AWS S3 or Google Cloud Storage with public or signed URLs.
-
Automatic token cost tracking per operation with console logging and CSV report export.
Configuration & Extensibility
-
Multi-level TOML configuration: base defaults, project overrides, environment-specific, and run-mode-specific. Environment variable support.
-
Dependency injection framework for secrets, storage, observers, content generators, and pipe routers.