OmniscioGuidesNetwork path working directory
Claude Code: a network path cannot be added as a working directory
Claude Code refused the path on sight, without checking whether the share exists. Checking could send the remote computer your Windows login, so it refuses first and explains after.
Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .
What is the exact message?
\\server\share is a network path, which cannot be added as a working directory. On Windows, map the share to a drive letter and pass it at launch with --add-dir (a drive letter added mid-session does not yet carry remote-read trust).You see it when you run /add-dir with a network path. The path you typed stands at the start of the line, so the message quotes your own argument back to you.
At startup the message is quieter. If you pass the path with --add-dir or list it in permissions.additionalDirectories, Claude Code starts without that directory, and in an interactive session the warning goes to the debug log with the other startup warnings rather than appearing on screen.
What does it mean?
Claude Code does not add network paths as working directories. Anthropic's error reference gives the reason: looking up a network path can contact the host it names, and on Windows that contact can send the host your credentials. So the path is refused without being looked up.
That refusal is why a share that is perfectly reachable in Explorer is still turned down. The check is on the shape of the path, not on whether the server answers.
Before v2.1.257, Claude Code accepted a reachable network path as a working directory. If you are on a build older than that, the behaviour you remember was the old one.
Which paths are refused?
- UNC shares such as
\\server\share. - Automount paths such as
/net/<host>, unless you launched Claude Code from a directory under that host's automount. Reads under that automount still go through the network path check. - Local paths that reach a network location through a symbolic link or junction.
Two things that look like network paths are not treated as ones: mapped drive letters and \\wsl$ paths. A mapped drive is exactly what the Windows fix uses.
How do I fix it?
- On Windows, map the share to a drive letter. In PowerShell, run
net use Z: \\server\share, then start Claude Code withclaude --add-dir Z:\. The drive letter is not a network path to the check, so it is accepted. - Pass the drive at launch, not mid-session. The message is explicit that a drive letter added mid-session does not yet carry remote-read trust, so the launch flag is the reliable route.
- On macOS or Linux, mount the share locally. Mount it at a local path, such as a directory under
/mntor/Volumes, and add that path instead. - Clear the path from settings if it is listed there. An entry in
permissions.additionalDirectoriespointing at a network path means Claude Code starts without that directory. Remove it from the settings file that lists it.
What does not help
- Adding the UNC path again after launch. The path shape is what is refused, so the same argument gets the same answer.
- Pointing a symlink or junction at the share. A local path that reaches a network location that way is refused too.
- Assuming the permissions are wrong. This is not a permission denial; the directory was never added, so there are no rules for it to fail.
Does the fix cover reading files on the share?
Mostly. Once the folder is added, Claude can read a file under the drive letter or mount. A file that still sits on the network path gets its own permission check, and in Claude Code v2.1.292 and later approving the folder in advance does not cover that read: a read-only permission rule does not pre-approve it, a hook that returns allow does not skip the prompt, and in dontAsk mode the read is denied.
The same fix applies: read the file through the local path, so the check never sees a network path.
How do I know it is fixed?
- Claude Code starts with no network-path warning. When one is raised, it goes to the debug log rather than the screen, so a quiet startup is the sign.
- Claude can read a file under the drive letter or mount when you ask it to.
/add-dirwith the local path is accepted without the refusal.
Where these answers come from
- Anthropic's error reference, read November 25, 2026: the message, the credential risk, the refused path types, mapped drives and
\\wsl$not counting, the fixes and the v2.1.257 change. - Anthropic's permissions page, Network paths: the separate permission check for reads from a network path, that allow rules and hooks do not skip it, and the map-or-mount fix.
- Anthropic's permissions page, Working directories:
--add-dir,/add-dirandadditionalDirectories, and that network paths cannot be added as working directories. - Anthropic's CLI reference:
--add-dirvalidates that each path exists as a directory and cannot add most network paths.
Common questions
Why is a network path treated differently from a local folder?
Looking up a network path can contact the host it names, and on Windows that contact can send the host your credentials. So Claude Code refuses the path without looking it up, rather than checking whether it exists.
Does a mapped drive letter count as a network path?
No. Anthropic says mapped drive letters and \\wsl$ paths don't count as network paths, which is why mapping the share to a drive and passing the drive at launch is the Windows fix.
Can I add the drive after the session has started?
Not with the same result. The message says a drive letter added mid-session does not yet carry remote-read trust, so map the share and pass the drive with --add-dir when you launch Claude Code.
What about a symlink to a network folder?
A local path that reaches a network location through a symbolic link or junction is refused too, because the path still leads to the network.