Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

12.3 KB
Raw Blame
####################################################################################################
# Pipelex Configuration File
####################################################################################################
#
# This configuration file is copied to client projects' .pipelex/ directory when running:
#   `pipelex init config`
#
# Purpose:
# - This file allows you to override Pipelex's default settings for specific projects
# - All values below are set to their defaults - modify them as needed
# - The values here will override the defaults from the Pipelex package
#
# The [run] section says where your runs execute. The three other top-level sections mirror the
# layers of the runtime:
# - [runtime]     process-scoped infrastructure: storage, secrets, logging, tracing, plugins
# - [inference]   the model-calling seam: model deck, LLM, image generation, extraction
# - [interpreter] library-scoped method machinery: parsing, pipe runs, pipeline execution
#
# Finding Available Settings:
# - See the full default configuration in: pipelex/pipelex.toml (in the Pipelex package)
# - See the configuration structure classes in: pipelex/system/configuration/configs.py
#   and pipelex/cogt/config_cogt.py
#
# Common customizations include:
# - Logging levels and behavior
# - Excluded directories for scanning
# - LLM prompt dumping for debugging
# - Feature flags
# - Observer and reporting output directories
#
# Documentation: https://docs.pipelex.com
# Support: https://go.pipelex.com/discord
#
####################################################################################################

####################################################################################################
# Run Config
####################################################################################################

[run]
# Where `pipelex run` and `pipelex-agent run` execute a method when the command passes neither
# --hosted nor --local: "local" runs on this machine, on the backends in .pipelex/inference/ (your own
# provider keys); "hosted" runs on the hosted Pipelex API, with the key in PIPELEX_API_KEY.
execution = "local"

####################################################################################################
# Storage Config
####################################################################################################

[runtime.storage]
# Whether to fetch remote HTTP URLs and store them locally
is_fetch_remote_content_enabled = true
# Whether to upload local file paths to storage and replace with pipelex-storage:// URIs
is_upload_local_content_enabled = true
# Storage method: "local", "in_memory", "s3", or "gcp"
method = "local"

[runtime.storage.local]
# Local storage settings
uri_format = "{hash}.{extension}"
local_storage_path = ".pipelex/storage"

[runtime.storage.in_memory]
# In-memory storage settings
uri_format = "{hash}.{extension}"

[runtime.storage.s3]
# AWS S3 storage settings (requires boto3: `uv pip install "pipelex[s3]"`)
uri_format = "{hash}.{extension}"
bucket_name = ""
region = ""
signed_urls_lifespan_seconds = 3600 # Set to "disabled" for public URLs

[runtime.storage.gcp]
# Google Cloud Storage settings (requires google-cloud-storage: `uv pip install "pipelex[gcp-storage]"`)
uri_format = "{hash}.{extension}"
bucket_name = ""
project_id = ""
signed_urls_lifespan_seconds = 3600 # Set to "disabled" for public URLs

####################################################################################################
# Network Config
####################################################################################################

[runtime.network]
# Whether fetching a document or image URL refuses private, loopback, link-local and cloud-metadata
# destinations, on the first request and on every redirect hop. Keep it on unless your documents live
# on an intranet host or your only way out is an HTTP proxy: with the guard on, fetches connect
# directly and ignore HTTP_PROXY / HTTPS_PROXY. Webhook delivery is guarded whatever this says.
is_fetch_ssrf_guard_enabled = true

####################################################################################################
# Secrets Config
####################################################################################################

[runtime.secrets]
# Secrets provider method: "env" (built-in, reads secrets from environment variables).
# An external pipelex-secrets-<backend> plugin can add its own method (e.g. "vault").
method = "env"

####################################################################################################
# Log Config
####################################################################################################

[runtime.log]
# Default logging level: "DEBUG", "INFO", "WARNING", "ERROR"
default_log_level = "INFO"
# Log output target: "stdout" or "stderr"
# console_log_target controls the RichHandler used by the logging system (log.debug/info/...).
# Logs are diagnostics → stderr.
console_log_target = "stderr"
# console_print_target controls the Console returned by get_console(), used for banners,
# deck notices, and the main `pipelex` CLI's data tables (`show backends`, `show models`,
# `which`, `doctor`). Tables are data the user pipes to a file → stdout.
# Note: the agent CLI (`pipelex-agent`) emits its actual JSON/markdown results via bare
# builtin `print(...)` to sys.stdout, bypassing Rich entirely — so this knob does NOT
# affect the agent CLI data channel. The agent CLI factory additionally forces both
# targets to stderr internally to keep its stdout strictly reserved for the success
# envelope.
console_print_target = "stdout"
# sink names where the records go: "console" (the Rich handler, for a terminal), "json" (one JSON
# object per line, for a server behind a log agent), "otlp" (the OpenTelemetry logs signal, for a
# collector), or a token an installed plugin registers.
sink = "console"

# redaction scrubs known secret shapes (bearer tokens, api-key and signature headers, OAuth code
# parameters, cookies, JSON secret entries, the sk_ / plx_sk_ / pk_ / bl_ key prefixes) out of the
# message and of every string a field carries, and neutralises control characters in a field value so
# a caller-supplied string cannot forge a line. Add this project's own secret shapes to extra_patterns.
[runtime.log.redaction]
is_enabled = true
extra_patterns = []

[runtime.log.package_log_levels]
# Log levels for specific packages (use "-" instead of "." in package names)
pipelex = "INFO"

####################################################################################################
# Reporting Config
####################################################################################################

[runtime.reporting]
# Cost reporting settings
is_log_costs_to_console = true
is_generate_cost_report_file_enabled = false
cost_report_dir_path = "reports"
cost_report_base_name = "cost_report"
cost_report_extension = "csv"
cost_report_unit_scale = 1.0

####################################################################################################
# Tracing Config (event log for distributed tracing across workers)
####################################################################################################

[runtime.tracing]
is_enabled = true
backend = "ndjson"

[runtime.tracing.ndjson]
traces_dir = ".pipelex/traces"

[runtime.tracing.dynamodb]
table_name = ""
region = ""
# Days a trace event is kept: every item is written with a `ttl` (epoch seconds) this many days past its write,
# which the table must use as its TTL attribute for DynamoDB to delete expired events.
retention_days = 30

####################################################################################################
# Plugins
####################################################################################################

[runtime.plugins]
# Names of discovered plugins to skip at startup (a denylist). Discovery is the
# source of truth for which plugins are present; this only turns one off.
disabled = []

####################################################################################################
# Inference Config (model deck, LLM, image generation, extraction)
####################################################################################################

[inference.model_deck]
# Model fallback behavior: if true, uses secondary model options when primary fails
is_model_fallback_enabled = true
# Reaction to missing presets: "raise", "log", or "none"
missing_presets_reaction = "log"

[inference.llm]
# Enable dumping of LLM inputs/outputs for debugging
is_dump_text_prompts_enabled = false
is_dump_response_text_enabled = false

[inference.llm.instructor]
# Enable dumping of structured content generation details for debugging
is_dump_kwargs_enabled = false
is_dump_response_enabled = false
is_dump_error_enabled = false

####################################################################################################
# Methods Config
####################################################################################################

[interpreter.methods]
# Fetch address-referenced methods (github.com/...->domain.pipe) on a miss and install them into
# ~/.mthds/methods/. Set to false to forbid network fetches at load time — a miss then raises a
# diagnostic naming the address and how to install it manually. The PIPELEX_METHODS_FETCH_ON_MISS
# environment variable (1/0, true/false) overrides this setting when set.
fetch_on_miss = true

####################################################################################################
# Scan Config
####################################################################################################

[interpreter.scan]
# Directories to exclude when scanning for pipeline files
excluded_dirs = [
  ".venv",
  "venv",
  "env",
  ".env",
  "virtualenv",
  ".virtualenv",
  ".git",
  "__pycache__",
  ".pytest_cache",
  ".mypy_cache",
  ".ruff_cache",
  "node_modules",
  "results",
]

####################################################################################################
# Method Tree Limits Config
####################################################################################################

[interpreter.method_tree_limits]
# How large a method tree this machine lists when it reads a method: a method's folder, a .mthds file named alone, a
# library directory or a dependency package. Listing stops before reading any file once a tree passes a limit.
# Raise them here for a method that needs more.
max_files = 10000
max_total_bytes = 1073741824

####################################################################################################
# Builder Config
####################################################################################################

[interpreter.builder]
# Settings for generated pipelines
default_output_dir = "."
default_bundle_file_name = "bundle"
default_directory_base_name = "pipeline"

####################################################################################################
# Pipeline Execution Config
####################################################################################################

[interpreter.pipeline_execution]
# Set to false to disable conversion of incoming data URLs to pipelex-storage:// URIs
is_normalize_data_urls_to_storage = true
# Set to false to disable generation of execution graphs
is_generate_graph = true
# Set to false to stop emitting usage (cost) tracing events
is_generate_usage = true

# Bounded fan-out concurrency for PipeBatch: at most this many branches run at once.
# Set max_concurrency = "unbounded" to disable the bound.
max_concurrency = 8

[interpreter.pipeline_execution.graph.data_inclusion]
# Control what data is included in graph outputs
stuff_json_content = true
error_stack_traces = true
pipe_and_concept_registry = true

[interpreter.pipeline_execution.graph.graphs_inclusion]
# Control which graph outputs are generated
graphspec_json = true
mermaidflow_mmd = true
mermaidflow_html = true
reactflow_html = true

[interpreter.pipeline_execution.graph.reactflow]
# Customize ReactFlow graph rendering
edge_type = "bezier" # Options: "bezier", "smoothstep", "step", "straight"
nodesep = 50         # Horizontal spacing between nodes
ranksep = 30         # Vertical spacing between ranks/levels
initial_zoom = 1.0   # Initial zoom level (1.0 = 100%)
pan_to_top = true    # Pan to show top of graph on load

[interpreter.pipeline_execution.graph.reactflow.style]
theme = "dark"
palette = "dracula"