Run Configuration
The [run] section says where pipelex run and pipelex-agent run execute a method when the command does not say.
Configuration Options
class RunExecution(StrEnum):
LOCAL = "local"
HOSTED = "hosted"
class RunConfig(ConfigModel):
execution: RunExecution
Fields
execution: where a run executes when the command passes neither--hostednor--local(nor--runneron the agent CLI)."local"(the default) runs on this machine, with the inference backends configured in.pipelex/inference/and your own provider keys."hosted"runs on the hosted Pipelex API, with the Pipelex API key inPIPELEX_API_KEY, at the origin inPIPELEX_BASE_URL(https://api.pipelex.comwhen unset). Nothing is booted locally, so no provider key or inference configuration is needed on this machine.
A flag on the command always wins: with execution = "hosted", pipelex run … --local still runs on this machine, and with "local", --hosted sends that one run to the hosted API.
pipelex init writes this setting from your answer to "Where should your runs execute?", and pipelex-agent init from the execution of its --config.
Example Configuration
[run]
execution = "hosted"
Put it in your project's .pipelex/pipelex.toml to make hosted runs the default for one project, or in ~/.pipelex/pipelex.toml for every project on the machine; the project's file wins over the global one.
The Key and the Origin
A hosted run reads its key and its origin from the environment, never from this file:
PIPELEX_API_KEYholds the Pipelex API key (plx_sk_…).pipelex logingets one through your browser and saves it in~/.pipelex/.env, which Pipelex loads at startup; you can also export it in your shell.PIPELEX_BASE_URLoverrides the origin, for a staging plane or a self-hosted Pipelex API server.--base-urlon the command overrides it in turn. Either must bescheme://host[:port], with no path such as/v1.
Related Documentation
- Running on the Hosted API — What a hosted run sends, uploads, saves and refuses
- Running on the Hosted API from Python — The pipelex-sdk client, the hosted half of the Python API
- Agent CLI —
pipelex-agent run --runner local|hosted