VS Code Extension
The hostfunc extension brings your functions into VS Code: browse them, deploy, run with a payload, and stream execution logs — without leaving the editor. Sign in happens in your browser; no token to copy.
Step-by-Step Guide
1.Install
Install from the Visual Studio Marketplace (and Open VSX for Cursor, Windsurf, and VSCodium). Search the Extensions view for "hostfunc", or install from the command line.
# VS Codecode --install-extension hostfunc.hostfunc-vscode# Cursor / Windsurf / VSCodium (Open VSX)# Extensions view → search "hostfunc" → Install2.Sign in
Open the hostfunc view in the Activity Bar and click Sign in. A code appears and your browser opens to authorize the device — confirm the code matches, then approve.
- The extension polls until you approve, then stores a workspace-scoped token securely.
- The status bar shows your active workspace; click it to switch workspaces.
- Run the
hostfunc: Sign Outcommand to remove stored tokens.
3.Deploy and run
Each function in the explorer has inline actions. Deploy publishes the current draft to a live version; Run prompts for a JSON payload and invokes the deployed function.
- Run output and execution logs stream into the hostfunc Output channel.
- Open in Dashboard jumps to the function's editor on the web.
- Refresh re-loads the function list for the active workspace.
4.Inspect a function
Expand a function node to drill into its state without leaving the editor.
- Triggers — each configured trigger with its kind and status.
- Versions — recent deploys with size and status.
- Executions — recent runs with status and timing; copy an execution id for
hostfunc logs. - Secrets — configured key names (values are never shown or transferred).
5.Local file sync
Pull a function's draft into a local folder and push edits back. Saving the project's entry file pushes the draft automatically (quiet no-op for unrelated saves or signed-out sessions).
6.Configuration
Settings live under the hostfunc namespace.
hostfunc.baseUrl— control-plane URL. Defaults tohttps://hostfunc.io; set it tohttp://localhost:3000for local development.