Jan AI for VS Code
Use your local Jan.ai models directly inside Visual Studio Code.
Features
- 💬 Chat panel in the Activity Bar — persistent sidebar chat
- 🔍 Explain Code — right-click any selection → Jan AI: Explain Selected Code
- ♻️ Refactor Code — right-click any selection → Jan AI: Refactor Selected Code
- 🚀 Streaming responses — see output token-by-token
- 🔄 Auto-detects models — picks up whatever models are running in Jan
Requirements
- Install and run Jan.ai
- Start a model in Jan (Jan → Local API → Start)
- Jan's API defaults to
http://localhost:1337/v1
Settings
| Setting |
Default |
Description |
jan.baseUrl |
http://localhost:1337/v1 |
Jan API URL |
jan.model |
(auto) |
Model ID override |
jan.maxTokens |
2048 |
Max tokens per reply |
Building & Installing Locally
npm install
npm run compile
npx vsce package # creates jan-ai-vscode-0.1.0.vsix
code --install-extension jan-ai-vscode-0.1.0.vsix
Publishing to VS Code Marketplace
# One-time: create a publisher at https://marketplace.visualstudio.com/manage
npx vsce login <publisher>
npx vsce publish
| |