This repositry is now considered obsolete, moved to https://github.com/TriDefender/OpenCorde for further usage.
A lightweight Python client for OpenCode, providing AI assisted coding through Horde's distributed AI network.
Auto generator of opencode configuration based on capabilities of currently available models
Use uv for virtual environment and dependency management:
uv venv
source .venv/bin/activate
# Windows:
.venv\Scripts\activate
uv pip install -r requirements.txtRun the server and client:
python main.pyYou will be prompted to put in your AI Horde key.
AI Horde currently doesn't support streaming responses. All text generation is batch-based. If OpenCode adds non-streaming support one day this would work.
main.py- Client interfaceserver.py- Local server for API callshorde_client.py- Horde API wrapperconfig_generator.py- Configuration setup