opencode-luigi-connect
v2.2.4
Published
CLI tool to configure api.chat.luigivis.com (LiteLLM) as a provider in OpenCode
Downloads
911
Maintainers
Readme
opencode-luigi-connect
CLI tool to configure api.chat.luigivis.com (LiteLLM Gateway) as a provider in OpenCode.
About
This tool connects your OpenCode installation to the Luigi Connect API gateway, which provides access to various AI models through LiteLLM.
API Gateway: https://api.chat.luigivis.com/v1
For API access: Contact [email protected]
Installation
Requires Node.js 16+ (no other dependencies needed).
# Clone the repo
git clone https://github.com/luigivis/opencode-luigi-connect.git
cd opencode-luigi-connect
# Run the installer
./install.shThe installer will:
- Copy files to
~/.local/lib/opencode-luigi-connect/ - Create a symlink in
~/.local/bin/ - Add
~/.local/binto your PATH if needed
Requirements
- OpenCode installed
- Node.js 16 or higher
- API key for api.chat.luigivis.com
Usage
Quick Setup (Recommended)
The easiest way to set everything up:
# One command to rule them all
opencode-luigi-connect init --api-key=sk-your-keyThis will:
- Install OpenCode if not present
- Install opencode-remote-ctrl if not present
- Configure Tailscale for remote access
- Set up the Luigi Connect provider
Add Provider
# With API key
opencode-luigi-connect add --api-key=sk-your-keyThe tool will:
- Validate your API key
- Fetch available models from the gateway
- Configure OpenCode to use the provider
- Display all available models
List Providers
opencode-luigi-connect listRemove Provider
opencode-luigi-connect removeAfter Setup
- Run
opencode - Use
/modelsto select "Luigi Connect" - Start coding!
How It Works
The tool configures OpenCode by:
- Adding provider config to
~/.config/opencode/opencode.json - Adding auth token to
~/.local/share/opencode/auth.json
Troubleshooting
"command not found" after installation
If you get opencode-luigi-connect: command not found, make sure ~/.local/bin is in your PATH:
export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrcSupport
For API access or questions: [email protected]
License
MIT
