Problem
E2B sandboxes cannot clone or access private repositories because SSH keys are not available in the sandbox environment.
Use Case
- Projects with private npm packages
- Monorepos with private submodules
- Teams using private GitHub/GitLab repositories
Proposed Solution
CLI Flag
parallel-cc sandbox-run --repo . --prompt "Task" \
--ssh-key ~/.ssh/id_ed25519
Implementation
- Read SSH key file content (with user confirmation)
- Create
~/.ssh directory in sandbox
- Write private key with correct permissions (600)
- Add known hosts entries for common providers
- Optionally configure
~/.ssh/config
Security Considerations
- Never log SSH key contents
- Warn user before transmitting key to sandbox
- Clear key from sandbox after execution
- Support SSH_AUTH_SOCK forwarding as alternative (if E2B supports)
Files to Modify
src/cli.ts - Add --ssh-key flag
src/e2b/sandbox-manager.ts - SSH key injection
src/e2b/file-sync.ts - Exclude .ssh from normal sync
Acceptance Criteria
Dependencies
Problem
E2B sandboxes cannot clone or access private repositories because SSH keys are not available in the sandbox environment.
Use Case
Proposed Solution
CLI Flag
Implementation
~/.sshdirectory in sandbox~/.ssh/configSecurity Considerations
Files to Modify
src/cli.ts- Add--ssh-keyflagsrc/e2b/sandbox-manager.ts- SSH key injectionsrc/e2b/file-sync.ts- Exclude .ssh from normal syncAcceptance Criteria
Dependencies