How to persist Claude-Code login in GitHub Codespaces or automate login?
Resolved 💬 7 comments Opened Jul 12, 2025 by harshit-longevai Closed Jan 3, 2026
I have a subscription based plan (not API key based). I'm able to authenticate, everytime by logging in with the login link generated by Claude after installing Claude-code, manually when I create a fresh codespace, but I want to automate the process of logging in like it happens in VS code running in a local machine, i.e., VS code keeps the credentials saved. Maybe if there's a way to automatically add the credentials at the right location like in .devcontainer or somewhere, so whenever a container is spinned as a fresh codespace instance, Claude code accepts the credentials from there?
Any help is greatly appreciated.
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗