Claude Code + Codex · Documentation
Operate your own installation
Configure organization identity, verify deployed components and follow the owned runbooks for rollout and recovery.
Updated November 14, 2026 · Describes source behavior; verify your installed revision.
Connect organization SSO
Set AUTH_MODE=oidc for a confidential OIDC client with discovery/JWKS, signed ID tokens, authorization code and PKCE S256. Register the exact callback https://dashboard.example.com/auth/callback.
A shared Cognito user pool can serve multiple projects through separate app clients, callbacks, secrets and role mappings. Application-specific group assignment belongs in identity administration. Customer emails, domains and pool IDs are configuration, not general application rules.
| Setting | Purpose |
|---|---|
APP_PUBLIC_URL | Exact HTTPS origin, without a path, query or fragment. |
OIDC_ISSUER, OIDC_CLIENT_ID | Exact issuer identifier and the dedicated application client. |
OIDC_CLIENT_SECRET, SESSION_SECRET | Provision through protected secret references. Replicas must share the session key and identity configuration. |
OIDC_GROUPS_CLAIM | Top-level signed group claim: for Cognito, cognito:groups; otherwise the provider's configured claim. |
OIDC_SCOPES | Default openid profile. Add only scopes needed by the configured provider, including refresh issuance requirements. |
OIDC_ROLE_GROUPS | JSON mapping from viewer, analyst and admin to explicit group arrays. |
{
"viewer": ["YOUR_VIEWER_GROUP"],
"analyst": ["YOUR_EDITOR_GROUP"],
"admin": ["YOUR_ADMIN_GROUP"]
}
The UI's editor role maps to analyst; editor is not a configuration role key. Unmapped groups cannot log in. The highest mapped role wins.
| Role | Permissions |
|---|---|
| viewer | Read installation-wide telemetry; no Collector management or chat. |
| analyst / editor | Read telemetry, use enabled chat, download installers and manage owned devices. |
| admin | Analyst permissions plus installation diagnostics. |
Okta and Keycloak can supply this OIDC contract with the appropriate scopes and signed group claims. Verify the actual customer provider; generic support is not a completed provider acceptance test. Login does not provide per-user data isolation.
Keep login for up to 30 days
Persistent login is optional and disabled by default. A one-hour authorization ceiling with a fixed 30-day login limit can be configured as:
SESSION_MAX_AGE_SECONDS=3600
SESSION_REFRESH_MAX_AGE_SECONDS=2592000
The normal short-session default is 900 seconds; permitted values are 300–3600. Refresh lifetime is either 0 (disabled) or 3600–2592000 seconds. Short sessions are also bounded by provider token expiry, so one hour is a ceiling rather than a guaranteed renewal interval.
Renewal is request-driven near or after short-session expiry, not a background hourly timer. The 30-day deadline starts at initial login and does not slide forward. The provider can end it earlier.
- Refresh mode requires a reusable non-rotating refresh token, a fresh signed ID token with current groups, and exchange/revocation using
client_secret_basic. - Rotation-only providers are unsupported in this mode. A rotated refresh response requires a new login.
- Use encrypted Secure/HttpOnly cookies. Raw identity tokens are not returned by the session API.
- Logout clears local cookies and attempts refresh revocation. It does not end the provider's SSO session, instantly revoke copied short-lived cookies, or revoke device tokens.
Deploy a reviewed application revision
- Merge the release PR and deploy its immutable
vX.Y.Ztag from a clean build context. Record the commit and follow the deployment runbook's preflight checks. - Confirm AWS identity, target cluster, existing Terraform inputs, migration state and a usable rollback image.
- Build for the target architecture and publish an immutable image tag/digest. The provided EKS deployment targets arm64.
- Review the complete infrastructure plan where needed. Existing installations use compatibility verification and explicit upgrades, not automatic bootstrap retries.
- Roll out, check readiness and actual image digests, then verify login, API behavior, ingestion freshness and representative data.
Use /healthz for liveness and /readyz for readiness. Source declarations, passing builds and a healthy process do not establish a working identity provider, fresh telemetry or applied migrations.
EKS deployment and rollback · Schema migration procedure · Customer installation prerequisites
Start with the failing boundary
| Symptom | First checks |
|---|---|
| Login fails or ends early | Exact origin/callback/issuer, signed mapped groups, provider expiry and refresh contract. Do not print token values. |
| Collector port occupied | Use the source installer from the selected release; follow supported macOS migration or the existing service owner's manual procedure. |
| Unidentified or split users | Check the intended --user-id, emitted identity and dashboard filters. A device's SSO owner is not automatic telemetry attribution. |
| Token issued but no telemetry | Restart coding clients, generate work, check local service/exporter errors and device receipt, then confirm stored data. |
| Codex detail shows a dash | Inspect completion cohort and whole-window completeness separately. Missing denominators, prices or components must not become zero. |
| Slow cost detail | Inspect query admission, filters and effective resolution; use cost/effort profiles and measure target workloads before changing capacity. |
Operating prerequisites by platform
Every hosting option still needs a persistent ClickHouse schema and a functioning OTel pipeline. ECS and EC2 need separately authored service/secret/storage configuration; the supplied Terraform targets an existing EKS environment. Lambda needs an application runtime adaptation and external database/Collector services.
Deployment options and support boundaries · Schema initialization · Collector setup
Documentation deployment
This documentation is static HTML in site/. The Pages workflow uploads that directory on a merged main change. There is no bundler build and no application/EKS rollout for a documentation-only release.
Use source-linked runbooks for complete procedures. The website summarizes supported behavior and does not attest to the configuration of a particular customer installation.
Verify the Trace path
Start with a new interaction and its expected telemetry identity, client and time bucket. Usage totals and Trace availability come from different signals; a successful log export does not establish trace delivery.
- Confirm the current device package or organizer-managed settings enable trace export, then restart the coding client. See the client configuration reference.
- Check the local Collector's service and trace exporter for delivery failures. Continue through authenticated ingestion, the central trace pipeline and stored
otel_tracesrecords. Device receipt and process health confirm only their own stage. - In user detail, choose a time range containing the task’s start. The task list follows the effective range; drag to narrow it or click one bucket. Use the full-period reset to clear a point selection. Check the intended identity and filters; supported traced tasks are retained for 90 days.
- For Codex diagnostics, inspect Analytics' Trace tab using the full insights profile. Cost/effort, tool and performance profiles skip trace queries.
| Symptom | What to check |
|---|---|
| User has usage but no tasks | Trace configuration, restart time, exported identity, task start range and retention. Historical usage is not backfilled into traces. |
| Codex completion is outside a task | A traced turn needs a conversation ID and unique turn ID. Completions without an eligible turn remain unattached; a linked completion without a sampling span can be absent from the cost band. |
| Codex subagent count is unavailable | The current task view has only a main lane and does not infer subagent counts from unrelated spans. |
| Large detail omits totals | Check truncated and span_total. Task detail is bounded at 5,000 spans; the separate diagnostic preview uses 50 traces and 200 spans per trace. |
| Codex Trace disappears under a model filter | Only spans carrying model attributes match that filter. Clear it to inspect other diagnostic spans. |
| A line is dashed in the unit-cost chart | That interval has no computable matched sessions. Dashed segments only connect observed endpoints; they do not fill missing costs or prove no activity. |
Task endpoint limits · Collector recovery · Application release procedure