Claude
They store past sessions inside ~/.claude/projects/
Use the api key: https://www.reddit.com/r/ClaudeAI/comments/1jwvssa/claude_code_with_api_key/
Failures
There was a bug, the string was wrong, i said it was a hack, so it did an entire data migration.