| Both sides previous revisionPrevious revision | |
| programming:0_ide:kilocode_vscode [2026/05/12 21:31] – [memvid mcp for vscode] td | programming:0_ide:kilocode_vscode [2026/05/12 22:07] (current) – [memvid mcp for vscode] td |
|---|
| VS Code use sandbox environment where non admin user $profile is not available. | VS Code use sandbox environment where non admin user $profile is not available. |
| |
| | ##### Set PATH |
| powershell -Command "[Environment]::SetEnvironmentVariable('Path', 'D:\devfs\python;D:\devfs\node-v24.15.0-win-x64;' + [Environment]::GetEnvironmentVariable('Path', 'User'), 'User')" 2>&1; echo "PATH_UPDATED:$?" | powershell -Command "[Environment]::SetEnvironmentVariable('Path', 'D:\devfs\python;D:\devfs\node-v24.15.0-win-x64;' + [Environment]::GetEnvironmentVariable('Path', 'User'), 'User')" 2>&1; echo "PATH_UPDATED:$?" |
| | |
| |
| D:\devfs\python;D:\devfs\node-v24.15.0-win-x64;D:\devfs\node-v24.15.0-win-x64;D:\devfs\node-v24.15.0-win-x64;C:\Users\13223\.local\bin;C:\Users\13223\AppData\Local\Microsoft\WindowsApps;C:\Users\13223\AppData\Local\Programs\Git\cmd;C:\Users\13223\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\13223\AppData\Local\Programs\DockerDesktop\resources\bin;D:\devfs\jdk-21.0.10+7\bin;D:\devfs\apache-maven-3.9.15\bin;D:\devfs\node-v24.15.0-win-x64;.local\bin;D:\devfs\vim92; | D:\devfs\python;D:\devfs\node-v24.15.0-win-x64;D:\devfs\node-v24.15.0-win-x64;D:\devfs\node-v24.15.0-win-x64;C:\Users\13223\.local\bin;C:\Users\13223\AppData\Local\Microsoft\WindowsApps;C:\Users\13223\AppData\Local\Programs\Git\cmd;C:\Users\13223\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\13223\AppData\Local\Programs\DockerDesktop\resources\bin;D:\devfs\jdk-21.0.10+7\bin;D:\devfs\apache-maven-3.9.15\bin;D:\devfs\node-v24.15.0-win-x64;.local\bin;D:\devfs\vim92; |
| | |
| | ##### Set $env |
| | |
| | [Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "sk-your-key-here", "User") |
| | |
| | Then restart your computer (not just VS Code) to ensure it propagates system-wide. |
| | |
| | Check $env in terminal: |
| | |
| | $env:OPENAI_API_KEY |
| | |
| | Alternative: Set it in VS Code's terminal settings If you need it available immediately in the integrated terminal regardless, add this to your VS Code settings.json: |
| | |
| | "terminal.integrated.env.windows": { |
| | "OPENAI_API_KEY": "sk-your-key-here" |
| | } |
| | |