Skip to content

Conversation

@kcoopermiller
Copy link
Member

@kcoopermiller kcoopermiller commented Dec 10, 2025

Note

Introduces SSH connectivity and TCP port exposure across SDK and CLI, plus a demo.

  • SDK (prime_sandboxes): Add protocol to ExposePortRequest; extend ExposedPort with external_port/external_endpoint; new SSHSession model and exports. SandboxClient/AsyncSandboxClient: expose(..., protocol), list_all_exposed_ports(), create_ssh_session(), close_ssh_session().
  • CLI (prime sandbox): expose supports --protocol HTTP|TCP with protocol-aware output; list-ports can list for one sandbox or all; new ssh command creates ephemeral SSH sessions, authorizes key via gateway, connects, and cleans up.
  • Examples: New sandbox_port_expose_demo.py showing HTTP and TCP exposure with verification.

Backwards compatibility maintained (default protocol HTTP).

Written by Cursor Bugbot for commit 5cf5832. This will update automatically on new commits. Configure here.

@kcoopermiller kcoopermiller changed the base branch from main to feature/tcp December 10, 2025 17:29
@kcoopermiller kcoopermiller changed the base branch from feature/tcp to main December 10, 2025 19:53
@kcoopermiller kcoopermiller changed the base branch from main to feature/tcp December 10, 2025 19:53
@kcoopermiller kcoopermiller changed the base branch from feature/tcp to main December 10, 2025 19:53
@kcoopermiller kcoopermiller marked this pull request as ready for review December 30, 2025 15:51
Copy link
Member

@JannikSt JannikSt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check edge case:

  • Start ssh on machine A (your laptop)
  • Bootup a VM + authorize
  • Try to access same sandbox with ssh frorm

cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants