Xybrid

Configuration

Configure the Xybrid CLI

The Xybrid CLI can be configured via YAML files at the global or project level.

Configuration Files

ScopePathDescription
Global~/.config/xybrid/config.ymlUser-wide defaults
Project./.xybrid/config.ymlProject-specific overrides

Project configuration takes precedence over global configuration.

Registry Configuration

Local Registry

registry:
  name: "local"
  path: "~/.xybrid/registry"

S3 Registry

registry:
  name: "main"
  uri: "s3://xybrid-models"
  credentials:
    access_key: "${AWS_ACCESS_KEY_ID}"
    secret_key: "${AWS_SECRET_ACCESS_KEY}"

HTTP Registry

registry:
  name: "prod"
  base_url: "https://registry.xybrid.dev/"
  auth:
    type: bearer
    token: "${XYBRID_REGISTRY_TOKEN}"
  timeout_ms: 5000
  retry_attempts: 3

Telemetry Configuration

telemetry:
  enabled: true
  endpoint: "http://localhost:4318"
  sampling_rate: 0.05
  privacy_mode: "summary_only"
OptionDefaultDescription
enabledtrueEnable/disable telemetry collection
endpoint-OpenTelemetry collector endpoint
sampling_rate1.0Fraction of traces to sample (0.0-1.0)
privacy_modefullfull, summary_only, or none

Environment Variables

Configuration values can reference environment variables using ${VAR_NAME} syntax:

registry:
  auth:
    token: "${XYBRID_REGISTRY_TOKEN}"

Common environment variables:

VariableDescription
XYBRID_REGISTRY_TOKENAuthentication token for remote registry
XYBRID_API_KEYAPI key for cloud integrations
OPENAI_API_KEYOpenAI API key (for integration stages)
ANTHROPIC_API_KEYAnthropic API key

Example Configuration

Complete configuration example:

# ~/.config/xybrid/config.yml

registry:
  name: "prod"
  base_url: "https://registry.xybrid.dev/"
  auth:
    type: bearer
    token: "${XYBRID_REGISTRY_TOKEN}"
  timeout_ms: 10000
  retry_attempts: 3

telemetry:
  enabled: true
  endpoint: "https://telemetry.xybrid.dev"
  sampling_rate: 0.1
  privacy_mode: "summary_only"

defaults:
  target: "auto"
  log_level: "info"

On this page