OmniscioGuidesTwo config files exist
Claude Code: Two config files exist
Last checked against Anthropic's documentation on November 22, 2026. By the Omniscio team. Updated .
What is the exact message?
Anthropic's example, which includes a check for which file holds your setup:
Two Claude Code config files exist: this run uses /home/you/.claude/.config.json, not /home/you/.claude.json. The file with the higher count here is usually yours, and this prints nothing else from them: grep -c -E '"(hasCompletedOnboarding|mcpServers)"' "/home/you/.claude/.config.json" "/home/you/.claude.json". To end this: if several hosts share this home, first get every host to version 2.1.319 or later, since an older one can write a moved .config.json back. Then stop your Claude processes on every host, move aside the one you do not want, and start none until no host lists it.On Windows, the sentence with the grep command is replaced by: The one with hasCompletedOnboarding or mcpServers in it is usually yours.
What does it mean?
Claude Code's account details, personal MCP servers and per-project state normally live in ~/.claude.json. .config.json is an older name for that file, and this notice means both are present.
Only one can be in effect. Claude Code tells you which: the first file the message names is the one this run uses, and the second file's contents are not loaded.
The message also prints a way to work out which file is really yours, because the one in use is not necessarily the one holding your setup. That is why it ends on a choice rather than a fix: you decide which file to keep.
How do I fix it?
- Find the file that holds your setup. Both sit in your home folder, at
%USERPROFILE%\.claude\.config.jsonand%USERPROFILE%\.claude.json. On Windows, open each in a text editor such as Notepad and see which one hashasCompletedOnboardingormcpServersin it. On other platforms, run thegrepcommand from the message in your shell and see which file has the higher count. - Update every computer that shares the home directory. A host here means a computer. If several share this home, first update Claude Code on every one to the version the message names or later, because an older one can write a moved
.config.jsonback. - Stop Claude Code. Stop your Claude Code processes on every host.
- Move the file you do not want. Move it out of its folder rather than deleting it, so you can put it back if you change your mind.
- Wait before starting Claude Code again. Do not start Claude Code on any host until no host still lists the moved file at its old path.
The message stops once one of the two files is gone.
If you cannot tell which file is yours, leave both where they are. Claude Code keeps using the file it named in the message, so the session still runs; the notice only means the other file's contents are not loaded.
How do I know it worked?
- Claude Code starts without printing the
Two Claude Code config files existline. - The setup you kept is still there: your MCP servers, account details and project state behave as they did before.
- The moved file is still on disk where you put it, so the change is reversible.
Where these answers come from
- Anthropic's error reference, Two Claude Code config files exist, read November 22, 2026: the message and its Windows variant, the note that the first file named is the one in use, and the five steps to end it.
- Anthropic's .claude directory reference, which describes what
~/.claude.jsonholds and how Windows resolves~/.claudeto%USERPROFILE%\.claude.
Common questions
What does it mean?
Both .claude/.config.json and .claude.json are present. Claude Code uses the first file the message names, and the second file's contents are not in effect.
Which file is mine?
The message prints a grep command that counts hasCompletedOnboarding and mcpServers in each file; the higher count is usually yours. On Windows, open both files and look for those words.
How do I make the warning stop?
Move aside the file you do not want, then start Claude Code again. The message stops once one of the two files is gone.
Why update every host first?
If several hosts share the home directory, an older version can write a moved .config.json back. The message says to get every host to version 2.1.319 or later before moving anything.