Omniscio

OmniscioGuidesConfiguration file

Claude configuration file was empty and no backup holds anything

It is a startup notice, not a crash: Claude Code started with defaults for the file's contents.

Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

Claude configuration file at /home/user/.claude.json was empty and no backup holds anything: starting with defaults.

The path in the message is the file Claude Code read, normally ~/.claude.json, which is %USERPROFILE%\.claude.json on Windows and moves under CLAUDE_CONFIG_DIR when you set it.

What the message means

The file was blank, and none of its .backup copies holds anything either. Claude Code cannot read a configuration out of either place, so it started with defaults for what that file holds and told you so.

That file is the global ~/.claude.json: Anthropic describes it as holding app state, account details, UI toggles and your personal MCP servers. It is not the same file as your settings.json files and not the same as a project's .mcp.json, which are read separately and are not described by this message.

The backups live in ~/.claude/backups/. Claude Code keeps the five newest copies, plus a copy of any version it could not parse, and once a copy is older than cleanupPeriodDays, 30 days by default, the last copy that holds your configuration is deleted too, so backups are not permanent.

Before v2.1.318, Claude Code reported a blank file with no backup as the configuration error instead, so an older log shows a different message for the same situation.

How do I fix it?

  1. Check the backups before you rebuild anything. Open ~/.claude/backups/ and look for a .claude.json.backup.<timestamp> copy that holds your configuration. If one does, copy it over the empty file and start Claude Code again: cp ~/.claude/backups/.claude.json.backup.<timestamp> ~/.claude.json. The configuration error's own output prints the exact command for its case.
  2. Sign in again if Claude Code asks you to. The file holds account details, so a fresh one may need a sign-in.
  3. Re-add your personal MCP servers. Anthropic's example is adding your user and local scope servers with claude mcp add from your terminal. The MCP examples guide has the exact commands.
  4. Set up the rest as you go. Settings you change in /config and folders you trust are written back to the file as you use Claude Code.

If the file were missing rather than empty, you would not need to create it by hand: Claude Code creates it when you start a session or run a subcommand such as claude auth status.

How do I know it is fixed?

  • The message stops appearing when Claude Code starts.
  • /status in a session shows the credential and account you expect.
  • claude mcp list shows the personal servers you added, with a health status beside each one.
  • ls -l ~/.claude.json shows a file with a non-zero size.

What does not help

  • Deleting the file. It is already empty, and Anthropic's guidance is not to delete ~/.claude.json: it holds your account details and preferences.
  • Reinstalling Claude Code. The message is about a file's contents, not about the program. A reinstall does not restore the contents.
  • Waiting for a backup to appear. Backups are copies taken when Claude Code rewrites the file, and the message says none of the existing ones holds anything.

Where these answers come from

Common questions

What does Claude Code mean by a configuration file that was empty?

The file it names, normally ~/.claude.json, was blank and none of its .backup copies held anything either, so Claude Code started with defaults for what that file holds. It is a startup notice, and the session runs on those defaults.

Did I lose my settings and MCP servers?

Your settings.json files and .mcp.json are separate files, so this message does not describe them. What the message names is the global ~/.claude.json, which holds app state, account details, UI toggles and your personal MCP servers. If that content was only in this file and the backups are empty, it has to be set up again.

Can I restore it from the backups in ~/.claude/backups/?

It is the first place to look, but this message means none of those copies holds anything usable. Claude Code keeps the five newest copies plus any version it could not parse, and past cleanupPeriodDays, 30 days by default, it deletes the last copy that holds your configuration too. If a copy does hold your configuration, copy it back over ~/.claude.json and start Claude Code again.

Will Claude Code fill the file in again?

It writes the file as you use it: settings you change in /config and folders you trust are recorded there. If it is still empty at the next start, check that your home folder is writable and the disk is not full. If the file were missing rather than empty, Claude Code would create it when you start a session or run a subcommand such as claude auth status, but not for --version or --help.