Use variables in scenarios
Use variables such as${API_BASE_URL}, ${AUTH_TOKEN}, ${AUTH_EMAIL}, and ${AUTH_PASSWORD} instead of literal credentials.
Store credentials in the right place
Use:- Settings > Environments, for base URLs and target-specific values.
- Auth profiles for login credentials, tokens, and OAuth details.
- Settings > LLM keys for provider API keys.
- Settings > Connections for connector tokens. Connector credentials are write-only and never shown again after you save them.
Redaction is a safety net
Qodex redacts common secret shapes from captured evidence, including bearer tokens, JWT-like strings, GitHub tokens, AWS-style keys, and high-entropy values. Redaction helps when a response accidentally echoes a secret. It should not be your first line of defense. When the agent reads code from a linked repository, secrets are redacted from everything it reads.Avoid secrets in these places
- Scenario JSON.
- Finding titles or descriptions.
- Chat messages.
- Autopilot task comments.
- Knowledge files, including documents you upload.
- Documentation examples.
- PR comments.
Self-hosted note
In self-hosted deployments, encrypted credentials depend onQODECLAW_SECRET_KEY.
If you lose that key, encrypted secrets cannot be recovered and must be re-entered.
Next steps
Secret management
Understand encryption at rest.
Auth profiles
Store reusable login credentials.
Environment variables
Configure self-hosted secrets safely.
Sensitive endpoints
Handle risky routes carefully.