Defend

Canary token

Detect canary tokens that should not appear in user-visible output.

YAML key: canary_token
Direction: output

Detect canary tokens that should not appear in user-visible output.

Configuration

Prop

Type

Example

defend.config.yaml (fragment)
guards:
  output:
    enabled: true
    provider: claude
    modules:
      - "canary_token"

Provider usage

Configure under guards.output.modules with output guarding enabled and provider claude or openai.

See the modules overview.