Skip to main content

Fibe Managed Env

Fibe reserves specific env vars for platform wiring. Do not write these keys from a template unless this reference says the surface is user/operator-settable. Application-owned names such as FIBE_DB_PASS are allowed, but avoid inventing FIBE_* names when a normal app name works.

Template and Compose surfaces

VariableWhere availableOwnerHow to use
FIBE_SERVICES_<SERVICE_TOKEN>_PATHCompose interpolation for job-mode templatesFibeUse only when a Compose value needs the absolute clone path of a source-backed service. Token is the service name uppercased with non-alphanumerics replaced by _. Not guaranteed inside containers.
FIBE_REPOSITORY_URLJob/trick runtime envFibeCI scripts can read it for the resolved Prop URL.
FIBE_REPOSITORY_OWNERJob/trick runtime envFibeParsed owner from repository URL.
FIBE_REPOSITORY_NAMEJob/trick runtime envFibeParsed repository name.
FIBE_BRANCHJob/trick runtime envFibeResolved service branch.
FIBE_COMMIT_SHAJob/trick runtime envFibeTrigger commit SHA when available.
FIBE_TRIGGER_EVENTJob/trick runtime envFibemanual, push, pull_request, schedule, or equivalent run source.
FIBE_PROP_IDJob/trick runtime envFibeProp id for the resolved service or primary Prop.
FIBE_PLAYSPEC_IDJob/trick runtime envFibePlayspec id.
FIBE_PLAYGROUND_IDJob/trick runtime envFibePlayground or Trick id.

Template variables should not target these keys with path/paths. Use app-owned names for app config and leave platform context to Fibe.

Docker build args

VariableWhere availableOwnerHow to use
FIBE_BUILD_TIMEDocker build argsFibeDockerfile must declare ARG FIBE_BUILD_TIME. Not runtime env unless copied into ENV.
FIBE_BUILD_GIT_COMMIT_SHADocker build argsFibeDockerfile must declare ARG FIBE_BUILD_GIT_COMMIT_SHA. Not runtime env unless copied into ENV.

Agent runtime

VariableWhere availableOwnerHow to use
FIBE_AGENT_IDAgent containersFibeCurrent Agent identity.
FIBE_API_KEYAgent containers and built-in Fibe MCP envFibeFibe API key for the runtime. Never put provider tokens here.
FIBE_DOMAINAgent containers and built-in Fibe MCP envFibeFibe API host.
FIBE_MARQUEE_IDAgent containersFibeHosting Marquee id.
FIBE_WORKSPACE_PATHAgent containers when workspace mirroring is enabledFibePlayer-visible workspace path for artefact mirroring.
FIBE_SETTINGS_JSONfibe-agent settings bridgeFibe/operatorRails normally writes fibe.yml; legacy/generated agent Compose may use this JSON settings bridge. Do not use it in app templates.
MCP_CONFIG_JSONfibe-agent process env after settings promotionFibe/operatorMCP server config consumed by fibe-agent. Usually generated from Fibe settings.

SDK, CLI, and MCP operator env

These configure the local fibe process. They are not Compose template variables.

VariableSurfacePurpose
FIBE_API_KEYCLI/SDK/MCPAuth fallback when no profile is configured.
FIBE_DOMAINCLI/SDK/MCPAPI domain fallback when no profile is configured.
FIBE_OUTPUTCLIDefault output format.
FIBE_MCP_TOOLSMCP serverTool surface: full, core, or comma-separated tiers.
FIBE_MCP_YOLOMCP serverSkip destructive-tool confirmation for intentional non-interactive use.
FIBE_MCP_REQUIRE_AUTHMCP serverRequire resolved auth in multi-tenant/HTTP mode.
FIBE_MCP_AUDIT_LOGMCP serverWrite audit JSONL to a file or stderr.
FIBE_MCP_PIPELINE_CACHE_SIZEMCP serverPipeline result cache size.
FIBE_MCP_PIPELINE_CACHE_ENTRY_MAXMCP serverMax bytes per cached pipeline entry.
FIBE_MCP_PIPELINE_MAX_STEPSMCP serverMax steps in one pipeline.
FIBE_MCP_PIPELINE_MAX_ITERATIONSMCP serverMax total for_each iterations.

Local and E2E operator env

Keys such as FIBE_LOCAL_TRAEFIK_CERT_PATH, FIBE_LOCAL_TRAEFIK_KEY_PATH, FIBE_E2E_TIMEOUTS, FIBE_E2E_PARALLELISM, FIBE_E2E_SETTINGS, FIBE_AGENT_E2E_IMAGE_SOURCE, and FIBE_AGENT_E2E_IMAGE_REPOSITORY are Fibe development/test harness knobs. Do not depend on them in user templates.

Validation behavior

Compose validation warns when a service environment: defines a known platform-managed key or a FIBE_SERVICES_*_PATH key. It intentionally does not warn on arbitrary app-owned FIBE_* names such as FIBE_DB_PASS.

Job ENV entries reject every FIBE_* key because those entries are reusable runtime injections and would conflict with Fibe platform context.

reference-validation-pipeline, mode-job-trick, fibe-agents-and-automation, recipe-whole-node-paths.