Skip to content

VS Code Extension

The Orvanta VS Code extension allows you to build scripts and flows in VS Code or the Cursor editor, leveraging Orvanta UIs for testing and flow editing.

First, synchronize your workspace locally using the Orvanta CLI with orvanta sync pull and orvanta sync push commands. Then:

  1. Install the orvanta extension from the VS Code marketplace.
  2. From any script file, use > Orvanta: Run preview in the current editor or Ctrl+Enter and Shift+Enter to generate the UI preview.

Scripts must meet specific language requirements (main function, imports) and use dedicated file extensions (.py, .go, etc.). For Bun scripts, use [name].bun.ts (note that .ts defaults to Deno).

The extension splits your screen to display a panel that updates based on the edited document:

  • Script/Flow Step Editing: View the script preview UI with auto-inference of parameters.
  • Flow YAML Editing: See the flow builder and test UI.

Test scripts, flows and flow steps — Test them directly from VS Code once pulled or created locally.

Update UI from YAML — Editing flow YAML definitions instantly updates the rendered graph.

Update YAML from UI — Editing flows in the UI immediately modifies YAML definitions.

Flow YAML validation — Built-in syntax validation for flow.yaml files helps catch errors before testing or deployment.

Infer lockfile or use current lockfile — Toggle between using the metadata lockfile (derived from workspace dependencies) or inferring dependencies directly from scripts.

Access via the Command Palette (Ctrl/Cmd+Shift+P):

CommandDescription
Orvanta: Show PreviewLaunches a preview of your script in a new tab
Orvanta: Run previewRuns the current script with preview in VS Code
Orvanta: Configure remote, workspace, and tokenOpens setup wizard for environment configuration
Orvanta: Switch Orvanta workspaceSwitch between different workspaces
Orvanta: Add an Orvanta workspaceAdds a new workspace to configuration

The extension automatically uses workspace settings from the Orvanta CLI configuration. Available settings include:

SettingDescription
orvanta.remoteFull remote URL including http and trailing slash (default: https://app.orvanta.cloud/)
orvanta.workspaceIdWorkspace ID to use
orvanta.tokenUser token for authentication
orvanta.additionalWorkspacesList of additional remotes for multiple workspaces
orvanta.currentWorkspaceCurrently active workspace name (default: main or empty)
orvanta.configFolderOverride CLI config folder path

Create a user token in the Orvanta app per the Webhooks documentation.

For TypeScript scripts, Bun is the default runtime. Change it per-script using the .deno.ts extension or globally in orvanta.yaml with the defaultTs field.