--key-file / key_file: first line is the key, never recorded (only its source). Self-tests run the openai and anthropic providers against a local mock server: request translation, extras, token parameter, auth, tool loop, token accounting, and no key in the record.