localise-opencode
Auto-detect and configure local LLMs for opencode.
Version: 1.0.0
Installation
pip install localise-opencode
Or install from source:
git clone https://github.com/praneel/localise-opencode.git
cd localise-opencode
pip install -e .
Prerequisites
Usage
Detect running servers
localise-opencode detect
List available models
localise-opencode list
Add a model to opencode
# Interactive mode - shows available models
localise-opencode add
# Add specific model
localise-opencode add llama-3.1-8b-instruct
Check configuration
localise-opencode status
Remove a model
# Interactive mode
localise-opencode remove -i
# Remove specific model
localise-opencode remove llama-3.1-8b-instruct
Configuration
The tool modifies ~/.config/opencode/opencode.jsonc to add your local LLM provider.
Example configuration added:
{
"provider": {
"lmstudio": {
"name": "LM Studio",
"base_url": "http://localhost:1234/v1",
"api_key": "lm-studio",
"models": {
"llama-3.1-8b-instruct": {}
}
}
}
}
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run linter
ruff check src/
# Run tests
localise-opencode test
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file localise_opencode-1.0.0.tar.gz.
File metadata
- Download URL: localise_opencode-1.0.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40210b65bb0c934187ab57ae57e11a352ffaa185594c3b0b13fd170c29030891
|
|
| MD5 |
ebf8bbc9e066baefdd30f1533dfbb353
|
|
| BLAKE2b-256 |
ac21d097946796818bc9858cb66409747b0a58a5ad49583630db9af31ca820bd
|
File details
Details for the file localise_opencode-1.0.0-py3-none-any.whl.
File metadata
- Download URL: localise_opencode-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a64c4800dfd9b772551fdd7ad2461204e5014059c52bf7d53fe920a1dd7b646
|
|
| MD5 |
638fea75074458555ae6ef1de24e6e3f
|
|
| BLAKE2b-256 |
c05163143d0b114b94b263c4b13149b95d89d45dcf8e64f5e063613f979bdec6
|