What is the exact message?
Could not refresh your login: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full · Delete files you no longer need on that disk, then try again · Signing in again won't helpIn non-interactive mode (-p) and the Agent SDK the same failure reads:
Failed to refresh OAuth token: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full. Delete files you no longer need on that disk and retry; signing in again won't helpWhat does it mean?
Claude Code refreshes its OAuth token while the session runs. The refreshed credential is written into the Claude Code config directory, and this message means that write could not complete because the disk behind it is full.
The config directory is ~/.claude in your home folder unless you set CLAUDE_CONFIG_DIR. The full disk is the one holding that folder — often your system disk — not the one holding the project you are working in.
What causes it?
- The disk is full. The credential write has nowhere to go.
- Your disk quota is used up, or the disk has run out of inodes. Anthropic documents that both produce this same message, so a disk full of small files can refuse a new one while showing gigabytes free.
Anthropic's message names the fix in the same line: delete files you no longer need on that disk, then try again. It also says plainly that signing in again will not help, because a new login could not be saved either.
How do I fix it?
- Find the disk that holds the config folder. The folder is
~/.claudeunlessCLAUDE_CONFIG_DIRpoints somewhere else. On macOS or Linux,df -h ~/.claudeshows that disk and its free space. On Windows,Get-PSDrive (Get-Item $HOME).PSDrive.Namein PowerShell shows the drive holding your profile, whatever letter it is. - Free space on that disk. Delete files you no longer need there. Claude Code's own folder holds transcripts, checkpoints and caches, so old sessions are a reasonable place to look; Anthropic's guide to the Claude directory lists what lives where.
- If the message returns, think in inodes. Anthropic's advice is to delete many small files rather than a few large ones, because each file takes one inode whatever its size. A folder of thousands of tiny cache files can exhaust the limit while the free-space figure looks healthy.
- Send your message again. You do not need to sign in again. Anthropic's instruction is to free space and retry.
- Headless or SDK: free the space, then rerun the
claude -pcommand, which is what Anthropic gives for that variant of the message.
How do I know it is fixed?
- Your message sends and a reply comes back, with no credential message in between.
- The free-space figure on the config folder's disk stays above zero as the session runs.
- In a headless run, the
claude -pcommand completes instead of printing the token message.
Where these answers come from
- The message in both forms, the config folder's location, the quota and inode causes, and the delete-small-files advice: Anthropic's error reference, Could not refresh your login (disk full), read November 21, 2026.
CLAUDE_CONFIG_DIRand what the config folder holds: Anthropic's Claude directory page and the environment variables reference, read November 21, 2026.- Non-interactive mode: Anthropic's headless mode page, read November 21, 2026.
Common questions
Will signing in again fix this?
No, and Anthropic says so inside the message itself. A new login has to be written to the same full disk, so it could not be saved. Free space first, then send your message again; you do not need to run /login.
Which disk is full?
The one that holds your Claude Code config directory. That is ~/.claude in your home folder by default, or the folder you set in CLAUDE_CONFIG_DIR. Free space on that disk, not on the disk where your project lives.
The disk shows free space. Why is Claude Code still saying it is full?
Because the same message also covers a disk quota and running out of inodes. Anthropic documents both: if the message returns after you free space, delete many small files rather than a few large ones, since every file takes one inode whatever its size.
My session runs headless. What does the message look like there?
In non-interactive mode and the Agent SDK the same failure reads Failed to refresh OAuth token: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full. Free space, then rerun the claude -p command.
How much space does Claude Code need?
Anthropic publishes no minimum for this path; the message appears when a write fails. Free a few hundred megabytes of your own files on that disk and retry. If it returns, delete many small files rather than a few large ones, because each file takes one inode.