This guide covers how to install NebulaFlow, a VS Code extension for designing and running LLM+CLI workflows as visual node graphs.
Before installing NebulaFlow, ensure you have the following:
After installation, you can open the NebulaFlow editor by running the command “NebulaFlow: Open Workflow Editor” (Ctrl+Shift+P or Cmd+Shift+P, then type the command).
If you have a .vsix file (e.g., from a release or local build):
.vsix file and select itIf you want to contribute or run the latest development version:
git clone https://github.com/PriNova/nebulaflow.git
cd nebulaflow
npm install
npm run build
For more details on development workflow, see Development Setup.
NebulaFlow requires environment variables for LLM node functionality:
AMP_API_KEY: Required for the Amp SDK (LLM node execution)OPENROUTER_API_KEY: Optional for OpenRouter SDK integrationLinux/macOS (temporary):
export AMP_API_KEY="your_amp_api_key_here"
export OPENROUTER_API_KEY="your_openrouter_api_key_here" # optional
Linux/macOS (permanent):
Add the lines to your shell profile file (e.g., ~/.bashrc, ~/.zshrc, ~/.profile):
export AMP_API_KEY="your_amp_api_key_here"
export OPENROUTER_API_KEY="your_openrouter_api_key_here"
Windows (PowerShell):
$env:AMP_API_KEY="your_amp_api_key_here"
$env:OPENROUTER_API_KEY="your_openrouter_api_key_here"
Windows (Command Prompt):
set AMP_API_KEY=your_amp_api_key_here
set OPENROUTER_API_KEY=your_openrouter_api_key_here
Note: Environment variables set in a terminal session only apply to that session. For permanent changes, set them system-wide or use a .env file in your workspace (see below).
.env FileYou can also place a .env file in your workspace root (or the first workspace folder). NebulaFlow will read environment variables from this file when the extension activates.
Create a file named .env in your workspace:
AMP_API_KEY=your_amp_api_key_here
OPENROUTER_API_KEY=your_openrouter_api_key_here
NebulaFlow provides VS Code configuration options:
nebulaFlow.storageScope: Choose where workflows and custom nodes are stored:
user (default): Global storage in your user folderworkspace: Storage in the current workspace (.nebulaflow/ directory)nebulaFlow.globalStoragePath: Custom absolute path for global storage (if empty, uses home directory)To configure:
You can configure LLM settings per workspace by creating a .nebulaflow/settings.json file in your workspace root. This file can contain Amp SDK settings, model configurations, and more.
Example .nebulaflow/settings.json:
{
"nebulaflow": {
"settings": {
"openrouter.key": "sk-or-...",
"internal.primaryModel": "openrouter/xiaomi/mimo-v2-flash:free"
}
}
}
For detailed configuration options, see Configuration.
After installation, verify that NebulaFlow is working:
Cause: The vendored Amp SDK is not properly linked or missing.
Solution:
npm install to ensure dependencies are installednpm run build to bundle the SDK.vsix file is completeCause: The environment variable for the Amp SDK is not set.
Solution:
AMP_API_KEY environment variable as described in the Configuration section.env file, ensure it’s in the correct workspace folderCause: The webview bundle hasn’t been built or is outdated.
Solution:
npm run build or npm run build:webviewCause: VS Code extension host issues or incompatible VS Code version.
Solution:
Cause: Invalid API key or model selection.
Solution:
AMP_API_KEY is set correctlyOPENROUTER_API_KEY is set or configured in .nebulaflow/settings.jsonCause: Permission issues or command not found.
Solution:
Cause: The extension may need executable permissions for shell commands.
Solution:
safe safety level for command modeCause: VS Code marketplace sync delay or network issues.
Solution:
Once installed and configured:
If you encounter issues not covered here: