Claude Code 1.0.7 – 1.0.9Install
Claude Code: permission denied writing to .claude/ on Windows
EPERM: operation not permitted, open 'C:\Users\...\.claude\config.json'
- Affected versions
- 1.0.7 – 1.0.9
- Fixed in
- —
- Last verified
- Claude Code 1.0.9
Root cause
The .claude config directory is owned/locked by another process or blocked by antivirus, so the CLI can't write its config or session files.
How to reproduce
Run Claude Code on Windows behind aggressive AV; commands fail with EPERM on .claude files.
Solutions (2)
Ordered by community votes. Always check the verified version before applying.
33
#1Applies to 1.0.9
Add an antivirus exclusion for the `%USERPROFILE%\.claude` folder, then retry. Real-time scanning often locks the file mid-write.
Last verified: Claude Code 1.0.9 · community
14
#2Applies to 1.0.7 – 1.0.9
Close other terminals/editors holding the file, or run the shell as your user (not elevated) so ownership matches.
Last verified: Claude Code 1.0.8 · community