-
Notifications
You must be signed in to change notification settings - Fork 734
Description
Is your feature request related to a problem? Please describe.
To use claude code in a sandbox is needed to use the Anthropic API that is pretty expensive for casual developers that are just researching on something. It would be great to use the PRO or MAX subscription they offer, but to do so we need to authenticate claude code with oauth.
It's possible to connect manually to the sandbox and authenticate claude code using the oauth flow with an external browser, but when the sandbox is finished the authentication too.
Describe the solution you'd like
It would be great to be able to create a template taking a snapshot of a running sandbox. That way we could authenticate with oauth once, create the template, and then when running the template the authentication would persist.
Docker has just released something very similar, following this approach, and it works great: https://docs.docker.com/ai/sandboxes/
Describe alternatives you've considered
I tried to hack a bit my way to use claude code with a subscription inside of a e2b sandbox, copying claude config files from my system and trying to hijack the tokens that are used in my local to use it into e2b, but either it didn't work, or the login was temporary.
I think that creating templates from running sandboxes would be neat. In your docs it's mentioned that taking screenshots from running sandboxes is the current way of creating templates, but no function is exposed to do it through the CLI or the libraries. Maybe it's not that hard to add it?
Additional context
Any other tool that would need oauth authentication would benefit from this new feature.