#17762·OpenHands

[Feature]: First-class OpenHands integration for VS Code

Author: fattanehtCreated Sep 28, 2026Updated Sep 28, 2026
Labelsenhancementpriority:lowready-for-dev

Problem or Motivation

OpenHands can currently be used with VS Code through its ACP support. However, it does not provide a first-class, officially supported VS Code integration.

A first-class, officially supported VS Code experience could make OpenHands easier to discover, configure, and adopt while building on the existing ACP capabilities.

Desired Behavior

OpenHands should provide an official, first-class VS Code integration that allows developers to:

  • Install the integration directly in VS Code.
  • Authenticate and configure OpenHands with minimal setup.
  • Open OpenHands as an agent within the IDE.
  • Start working with the current workspace without manually configuring CLI or ACP connections.

The integration could build on the existing ACP capabilities while providing a smoother, officially supported VS Code experience.

Acceptance Criteria

  • Official OpenHands integration for VS Code.
  • Simple installation and authentication.
  • No manual CLI or ACP setup required.
  • OpenHands can work with the current VS Code workspace.
  • Users can interact with the agent directly from VS Code.

Alternatives Considered

No response

Additional Context

No response


OpenHands AI triage

The following comments and acceptance criteria were added by the OpenHands AI agent.

Triage

Bounded to the Agent Canvas frontend (OpenHands/OpenHands): an explicitly installed Canvas App (Canvas Extension, schema 1) that presents OpenHands as a first-class VS Code agent, reusing the authenticated embedded-view host helper from #17641 / PR #17656 and the repo's existing ACP/provider plumbing (src/constants/acp-providers.ts, src/api/acp-service/). No new CLI or ACP subprocess connection is built in Canvas core.

The authoritative reuse mechanism is the App backend-view helper contract (same-origin ingress, feature-detected backend capability, visible loading/error/retry, safe new-tab fallback, disposal/revocation on backend switch and teardown), so this issue must build on it rather than add a parallel editor or connection path. The connection path reuses the existing openhands acp ACP server (OpenHands-CLI) already documented for IDE integration, rather than introducing a new protocol.

Non-goals (explicit): removing or changing bundled OpenVSCode serving (OpenHands/software-agent-sdk); the generic App host helper itself (#17641 / #17656); changing OpenHands/automation scheduling or OpenHands/extensions and Marketplace/OpenVSX distribution infrastructure; modifying the third-party omercnet.vscode-acp community extension; building first-class integrations for editors other than VS Code; any test fixture that uses a fake or placeholder Auth0/cloud client ID in a live configuration.

Sequencing: depends on the App backend-view helper and the Agent Server app-session/bridge API it uses (OpenHands/software-agent-sdk#5265); implementation should not begin before those contracts and this issue's scope are accepted.

Acceptance Criteria

  • The integration is an OpenHands-published Canvas App installable through the repository's documented Canvas App install path; no manual openhands acp subprocess command or ACP connection string is required from the user in VS Code.
  • With an already-configured OpenHands CLI (~/.openhands/settings.json), the agent starts in VS Code without re-entering LLM credentials; a user with no prior configuration is routed to the existing settings/onboarding flow instead of being shown an opaque error.
  • The agent starts with the folder currently open in VS Code as its working directory, verified by an observable reference to that workspace path from a conversation started through the integration.
  • The user can send a prompt and receive streamed responses/rendered tool activity inside the VS Code view.
  • When the helper or Agent Server bridge capability is unavailable, the view shows a visible unsupported/setup state and a safe new-tab fallback instead of a blank or broken panel.
  • Session credentials are not read from or written to browser localStorage by the App; authentication uses the existing backend connection/auth plumbing, and a missing or invalid session produces a visible, actionable error without exposing secrets in logs or UI.
  • Disabling, uninstalling, or switching the active backend, and tearing down the runtime, abort any pending mount/subscription and revoke the embedded session; remounting does not start an extra agent process.
  • A user-facing doc page or section exists for enabling and using OpenHands in VS Code, and the existing IDE docs (OpenHands/docs openhands/usage/cli/ide/) are updated so the officially supported path is distinguishable from the community omercnet.vscode-acp extension.
  • Automated coverage exists for the App install path, a prompt round-trip against a real backend (live or mock-LLM E2E per the repo's e2e-testing skill), the unsupported-capability fallback, and teardown/revocation; any live-auth or Marketplace test is skipped or explicitly gated when the required credentials or publication channel are absent.