@gaurav-321/pi-local-llm
v1.1.1
Published
Pi extension: llama-swap provider with dynamic model discovery
Readme
@gaurav-321/pi-local-llm
Pi coding agent extension for local LLM providers: LM Studio, llama.cpp, and llama-swap.
Features
- Registers a
llama-swapprovider with dynamic model discovery - Supports LM Studio, llama.cpp, and llama-swap backends
- Per-model context window detection with overrides
- Optional config via
~/.pi/agent/pi-llama-swap.json
Install
pi install npm:@gaurav-321/pi-local-llmOr load directly:
pi -e /path/to/pi-llama-swapQuick Start
- Start your local LLM server (LM Studio, llama.cpp, or llama-swap)
- Load the extension:
pi -e /path/to/pi-llama-swap - Select a model:
/model→ pickllama-swap/your-model-id
Config
Create ~/.pi/agent/pi-llama-swap.json:
{
"origin": "http://127.0.0.1",
"port": 8080,
"apiKey": "optional"
}Commands
| Command | Description |
|---------|-------------|
| /llama-swap-set-context-length <n> | Override context window for current model |
License
MIT
