Skip to content

Configuration reference

Precedence, highest first: a command-line flag, an environment variable CREDENCESTACK_<SECTION>_<KEY>, the project file credencestack.toml (found by walking up from the working directory), the default. credencestack config show prints the resolved value of every setting and where it came from; credencestack config init writes a commented project file. The OpenTelemetry SDK's own OTEL_* variables configure the exporter as usual.

[output]

Where results are written.

Key Default Environment variable Meaning
dir credencestack-out CREDENCESTACK_OUTPUT_DIR Parent directory of every -/ output directory.

[packs]

Where packs are found.

Key Default Environment variable Meaning
path — CREDENCESTACK_PACKS_PATH Extra directories of packs, searched after the shipped ones.

[mutators]

Where mutator plugins are found.

Key Default Environment variable Meaning
path — CREDENCESTACK_MUTATORS_PATH Extra directories (or files) of mutator plugins.

[run]

Defaults for running scenarios.

Key Default Environment variable Meaning
epochs 1 CREDENCESTACK_RUN_EPOCHS Repeats per scenario.
seed 0 CREDENCESTACK_RUN_SEED Master seed: an integer, or fresh to draw one (recorded in the manifest).
fail_on high CREDENCESTACK_RUN_FAIL_ON Exit 1 if any finding is at or above this severity (none never fails).
max_samples 8 CREDENCESTACK_RUN_MAX_SAMPLES Episodes run in parallel.

[evidence]

Signing.

Key Default Environment variable Meaning
signing_key — CREDENCESTACK_EVIDENCE_SIGNING_KEY Ed25519 private key (PEM) used by --sign.
sign False CREDENCESTACK_EVIDENCE_SIGN Sign every output (as if --sign were given).

[otel]

OpenTelemetry. Exporter details also follow the standard OTEL_* variables.

Key Default Environment variable Meaning
enabled False CREDENCESTACK_OTEL_ENABLED Emit traces (--otel).
content False CREDENCESTACK_OTEL_CONTENT Include prompts, tool arguments and results of public scenarios (--otel-content).
granularity scenario CREDENCESTACK_OTEL_GRANULARITY scenario (one trace per scenario epoch) or run (one trace).
metrics False CREDENCESTACK_OTEL_METRICS Emit metrics (--otel-metrics).
exporter otlp CREDENCESTACK_OTEL_EXPORTER otlp, console, file or none.
file — CREDENCESTACK_OTEL_FILE OTLP/JSON lines file for the file exporter.
endpoint — CREDENCESTACK_OTEL_ENDPOINT OTLP endpoint (else OTEL_EXPORTER_OTLP_ENDPOINT).
protocol — CREDENCESTACK_OTEL_PROTOCOL http/protobuf or grpc (else OTEL_EXPORTER_OTLP_PROTOCOL).
service_name — CREDENCESTACK_OTEL_SERVICE_NAME service.name (else OTEL_SERVICE_NAME, else credencestack).
trace_url_template — CREDENCESTACK_OTEL_TRACE_URL_TEMPLATE URL with {trace_id} for trace links in reports.
agent_spans nest CREDENCESTACK_OTEL_AGENT_SPANS nest, separate or off: what happens to the framework's own spans.
sample_rate 1.0 CREDENCESTACK_OTEL_SAMPLE_RATE Share of environment episodes traced (make_env_batch defaults to 0.01).
required False CREDENCESTACK_OTEL_REQUIRED Exit 3 if the collector cannot be reached (otel check).

[bench]

Benchmarks with real models.

Key Default Environment variable Meaning
max_usd — CREDENCESTACK_BENCH_MAX_USD Hard spending cap; overrides the benchmark file's max_usd when set.

[connectors]

Connector options that are machine settings rather than flags.

Key Default Environment variable Meaning
http_token — CREDENCESTACK_CONNECTORS_HTTP_TOKEN Bearer token the HTTP connector sends (secret: never shown or recorded). Secret: never shown or recorded.
model — CREDENCESTACK_CONNECTORS_MODEL Default chat model for the reference LangChain agents.