What Happened
- Aider’s OpenRouter OAuth flow in `aider/onboarding.py` is updated to prevent the credential file from being created with default permissive permissions: it now hardens `~/.aider` to `0o700`, writes `oauth-keys.env` using explicit `0o600` creation flags, and corrects mode on existing token files after write.
- Aider’s OpenRouter OAuth flow in `aider/onboarding.py` is updated to prevent the credential file from being created with default permissive permissions: it now hardens `~/.aider` to `0o700`, writes `oauth-keys.env` using explicit `0o600` creation flags, and corrects mode on existing token files after write.
- 1 evidence item attached for review.