Skip to main content

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

localise_opencode-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localise_opencode-1.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

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

Hashes for localise_opencode-1.0.0.tar.gz
Algorithm Hash digest
SHA256 40210b65bb0c934187ab57ae57e11a352ffaa185594c3b0b13fd170c29030891
MD5 ebf8bbc9e066baefdd30f1533dfbb353
BLAKE2b-256 ac21d097946796818bc9858cb66409747b0a58a5ad49583630db9af31ca820bd

See more details on using hashes here.

File details

Details for the file localise_opencode-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for localise_opencode-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a64c4800dfd9b772551fdd7ad2461204e5014059c52bf7d53fe920a1dd7b646
MD5 638fea75074458555ae6ef1de24e6e3f
BLAKE2b-256 c05163143d0b114b94b263c4b13149b95d89d45dcf8e64f5e063613f979bdec6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page