Skip to content

docs(spaces-dev-mode): surface SSH command, lead with SSH over VS Code#2488

Merged
gary149 merged 3 commits into
mainfrom
docs/spaces-dev-mode-ssh-first
May 20, 2026
Merged

docs(spaces-dev-mode): surface SSH command, lead with SSH over VS Code#2488
gary149 merged 3 commits into
mainfrom
docs/spaces-dev-mode-ssh-first

Conversation

@gary149
Copy link
Copy Markdown
Contributor

@gary149 gary149 commented May 20, 2026

Summary

  • Lead with SSH: Dev Mode runs an SSH server, VS Code sits on top.
  • Show the ssh <subdomain>@ssh.hf.space command and a snippet to derive the subdomain, instead of pointing at the UI modal.

Why

Today the SSH command lives only in the UI modal — invisible to agents and scripts reading the doc. A Codex agent recently spent ~15 min working around a VS Code marketplace 429 because the page made Dev Mode look VS-Code-shaped; once told "just SSH" it connected immediately.

Docs only.


Note

Low Risk
Low risk docs-only changes that clarify how to connect via SSH/VS Code; no product code or behavior is modified.

Overview
Updates the Spaces Dev Mode docs to lead with SSH as the primary connection mechanism, clarifying that VS Code/editor access is layered on top of the same SSH endpoint.

Adds an explicit ssh <space-subdomain>@ssh.hf.space command plus a small huggingface_hub snippet to fetch the Space subdomain programmatically, and rewords the intro to distinguish the SSH server (local editors/terminals) from the in-product VS Code Web server.

Reviewed by Cursor Bugbot for commit 5e4daf6. Bugbot is set up for automated code reviews on this repo. Configure here.

SSH is the underlying connection mechanism — VS Code rides on top of it — but the page currently mentions VS Code first and tells readers to find the SSH instructions in the UI modal. Reframe the intro accordingly and show the actual `ssh <subdomain>@ssh.hf.space` command plus a snippet to fetch the subdomain via `HfApi.space_info()`, so anyone reading the docs (humans or agents) can connect without going through the UI.
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@gary149 gary149 requested a review from mishig25 May 20, 2026 09:33
Comment thread docs/hub/spaces-dev-mode.md
Comment thread docs/hub/spaces-dev-mode.md Outdated
The Dev Mode allows you to update your Space much quicker by overriding the Docker image.

The Dev Mode Docker image starts your application as a sub-process, allowing you to restart it without stopping the Space container itself. It also starts a VS Code server and a SSH server in the background for you to connect to the Space.
The Dev Mode Docker image starts your application as a sub-process, allowing you to restart it without stopping the Space container itself. It also starts an SSH server (and a VS Code server on top of it) in the background, so you can connect to the Space from any editor or terminal.
Copy link
Copy Markdown
Collaborator

@mishig25 mishig25 May 20, 2026

Choose a reason for hiding this comment

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

Nit: "VS Code on top of SSH" only holds for local VS Code/Cursor. The in-product VS Code (web) option is served over HTTPS, not SSH.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oki thanks

@gary149 gary149 merged commit 69eeaa1 into main May 20, 2026
3 checks passed
@gary149 gary149 deleted the docs/spaces-dev-mode-ssh-first branch May 20, 2026 10:23
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