io.github.TheBarmaEffect

glassbox-framework

Runtime constitutional verification for AI answers — claim reasoning, ECS, red team, audits.

stdiocommunityinfra

Package Details

Transportstdio

Environment Variables

ANTHROPIC_API_KEY(str)
RequiredSecret

Your Anthropic API key (sk-ant-...). Required for the claim extractor, red team, constitution engines, and ECS coherence checks. One v1 tool (generate_trust_card) works without an API key — it's pure assembly + deterministic audit hashing.

GLASSBOX_MODEL(str)
Default:claude-sonnet-4-6

Override the Claude model used by the verification engines. Defaults to claude-sonnet-4-6.

GLASSBOX_MAX_TOKENS(str)
Default:2048

Per-engine-call max-tokens cap. Defaults to 2048; raise for verifying long-form content.

GLASSBOX_ECS_MODE(str)
Default:arithmetic

ECS aggregation mode: arithmetic (weighted mean, default) or geometric (stricter — any zero dimension collapses the total).