Models & routing
Model selection is separate from policy and execution. Jeden signs OpenAI-compatible requests to Brama and records the route, usage, and billing decision in the session.
Selection precedence
- The invocation’s
--modelvalue. - The
JEDEN_MODELenvironment variable. - The model selected through native configuration or
/model. - The operator-provided default route.
$ jeden --model claude-code-subscription
$ jeden run "review this diff" --model <route>
/model
/model <route>Authentication ownership
/login [provider] and /logout [provider] inspect or delegate to the entitlement owner. Jeden does not reimplement provider login inside the model loop. /settings shows provider and entitlement state without returning credentials.
Subscription routing
Weles owns subscription state and payment policy. Jeden discovers active subscriptions and quota snapshots, freezes a deterministic order for each logical request, and sends the selected billing target to Brama.
- Request, idempotency, and decision identities remain stable across attempts.
- Typed quota exhaustion places a target into a durable
Retry-After-bounded cooldown. - Failover never occurs after model output becomes visible.
- Served account, subscription, quota bucket, and decision ID are retained in usage and audit events.
Jeden never accepts or stores card numbers, CVC/CVV values, processor tokens, or billing addresses. Payment setup opens a Weles-hosted HTTPS flow.
Usage controls
/usage
/usage show
/usage reset
/subscriptions list
/subscriptions status