Chanh /ch-ahn/ (n.) — lime or lemon in Vietnamese
A VS Code extension that downloads, hosts, and runs the Lemonade Server embeddable binary locally, enabling AI chat with local LLMs directly in VS Code.
- Managing/downloading Lemonade models
- Chat integration:
@chanhchat participant for quick Q&A, plus chat models with tool-calling support in the native VS Code model picker (agent mode, streaming, and vision) - The models run locally
- Multiple server modes: system-installed Lemonade Server, Embeddable Lemonade, or Custom URL
- Model management extras: pin loaded models against LRU eviction, backend configurations, UI filter mechanism, and group installed/downloadable models by capability
- Documentation site and interactive mockup at https://lanly-dev.github.io/vscode-chanh/
- Just another way to integrate with VS Code
The @chanh chat participant supports the following slash commands:
/fix- Generate a fix for the selected code/explain- Explain the selected code/test- Generate unit tests for the selected code/doc- Write documentation for the selected code/refactor- Suggest a refactor of the selected code/reset- Start a fresh conversation (clears the context sent to the model)
The tree view in the sidebar shows the active server, its status and its models. You can pick different server modes, such as using the system-installed Lemonade Server or downloading the binary version.
Models served by the active Lemonade Server are exposed to VS Code's native model picker under the Chanh 🍋 provider. Only chat-capable models that also advertise tool-calling are listed, since agent mode relies on tool calling. chat and llm labels are treated the same, and label matching is case-insensitive. Vision models (vision label) are tagged in the picker and accept image attachments.
Plain chat models (no tool-calling label) remain available through the @chanh participant. chanh.chatModel remembers the last model used for @chanh (leave empty to be prompted).
| Setting | Default | Description |
|---|---|---|
chanh.chatModel |
null |
Model to use for chat (leave empty to be prompted) |
chanh.customServerUrl |
null |
Custom Lemonade Server URL (used in CUSTOM mode) |
chanh.lemondPort |
8000 |
Port for the bundled lemond binary |
chanh.lemonadePort |
13305 |
Port for the Lemonade Server (System) |
chanh.serverMode |
"LEMONADE" |
Which Lemonade Server to use: LEMONADE, LEMOND, or CUSTOM |
chanh.maxLoadedModels |
-1 |
Maximum number of loaded models. Set -1 for unlimited. |
chanh.showTokenStats |
false |
Show per-turn token stats in the chat/agent footer (from the model's usage block) |
chanh.systemSampleInterval |
5 |
Seconds between System group CPU/GPU/RAM samples |
- Add Copy ID context menu options
- Add
custommodel group - Add pinning model feature
- Add website and mockup
- Improve chat
@chanh - New Get Started walkthrough
- Add an eye button to toggle Installed and Downloadable sections
- Add custom endpoint option - Chanh 🍋🟩
- Add omni, audio-gen treeview group
- Add sub-capabilities filter
- Add system utilization treeview display
- Add token count footer option
- Bugfixes and improved agent integration
- Add backends/recipes management
- Change the extension name from Lemon to Chanh
- Add download function into the treeview
- Label capabilities of the model
- Integrate into the VS Code agent harness
- Add icon
- Lemonade management treeview
- Chat integration
Enjoy!
