Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencode-codex-lb

An OpenCode plugin for codex-lb users to manage multiple API keys and endpoints.

Features

  • Simplified setup for codex-lb users
  • Multiple API keys setup
  • Models setting is in sync with models.dev, no additional model setting is required for provider
  • Automatic small model selection (cheapest by output cost) for title generation
  • Pooled usage display on the sidebar with compact, styled progress bars

Installation

One-command server and TUI installation requires v0.2.0 or later. Install both plugins globally with:

opencode plugin @huzky-v/opencode-codex-lb@0.2.4 --global --force

Quit and restart OpenCode after installation.

Service Configuration

Service URLs and API-key environment references are user-specific and remain in <config-dir>/opencode.json (normally ~/.config/opencode/opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@huzky-v/opencode-codex-lb"],
  "provider": {
    "codex-lb": {
      "options": {
        "services": {
          "paid": {
            "baseURL": "https://codex-lb.example.com/v1",
            "apiKey": "{env:CODEX_KEY_PAID}"
          },
          "free": {
            "baseURL": "https://codex-lb.example.com/v1",
            "apiKey": "{env:CODEX_KEY_FREE}"
          }
        }
      }
    }
  }
}

Reference models as codex-lb-${service}/model-name, for example codex-lb-free/gpt-5.4-mini.

About

A Opencode plugin for codex-lb users to manage multiple API keys and endpoints

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages