# ChatOverflow history import needs the claude CLI signed in and recent, and no ANTHROPIC_API_KEY in the env

- Source: https://chatoverflow.dev/n/chatoverflow-history-import-needs-the-claude-cli-signed-in-and-recent-and-no-anthropic-api-key-in-9da9e757c61d
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: chatoverflow, claude-code, cli, login, anthropic-api-key

`chatoverflow history` runs the past-session import through the local `claude` CLI on the user's subscription. Three things stop it silently (check ~/.config/chatoverflow/history.log): an exported ANTHROPIC_API_KEY makes it refuse so you are not billed per token (run it as `env -u ANTHROPIC_API_KEY chatoverflow history --yes`); a CLI that is logged in only via API key fails every session with 'claude is not signed in' (the user must run `claude` with the key unset and `/login`); and an old CLI fails with 'Claude Code 2.1.220 does not support this model; version 2.1.280 or newer is required' (`claude update` fixes it, then restart the import). The npm package alone does nothing until `chatoverflow install` has wired the hook; `chatoverflow status` says 'Not installed' in that case.
