Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ on a readline for the next.
| `mcp-litellm-passthrough` | MCP | replace | Add one `x-mcp-<alias>-<header>` passthrough header to the `mcp.litellm` server so an upstream MCP server authenticates as you (run once per header; install `mcp-litellm` first) |
| `mcp-playwright` | MCP | replace | Add the Playwright MCP server (local stdio via npx; pins `@playwright/mcp` 0.0.78) |
| `mcp-vscode` | MCP | replace | Add the VS Code MCP server via the `JuehangQin.vscode-mcp-server` extension (loopback HTTP, default port 3000) |
| `plugin-litellm-pricing` | Plugin | append | Add `opencode-litellm-pricing` — discovers a LiteLLM proxy's models at runtime and adds them to the picker with real per-model pricing instead of `$0` (pair with `provider-litellm` to set the proxy URL and key; pins `opencode-litellm-pricing` 0.2.0) |
| `plugin-litellm-pricing` | Plugin | append | Add `opencode-plugin-litellm-pricing` — discovers a LiteLLM proxy's models at runtime and adds them to the picker with real per-model pricing instead of `$0` (pair with `provider-litellm` to set the proxy URL and key; pins `opencode-plugin-litellm-pricing` 0.3.0) |
| `provider-litellm` | Provider | replace | Point the `litellm` provider at your proxy URL for `plugin-litellm-pricing` (prompts for base URL and API key; no models list) |
| `plugin-superpowers` | Plugin | append | Add the Superpowers OpenCode plugin from `obra/superpowers` (brainstorming, plans, TDD, review workflows; pins tag `v6.2.0`) |
| `permissions-git-safe` | Permissions | merge | Read-only git commands (status, diff, log, branch --list, fetch, etc.) |
Expand Down
8 changes: 4 additions & 4 deletions presets/plugin-litellm-pricing.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// @name: plugin-litellm-pricing
// @description: Adds the opencode-litellm-pricing plugin: discovers a LiteLLM
// @description: Adds the opencode-plugin-litellm-pricing plugin: discovers a LiteLLM
// proxy's models at runtime and adds them to the picker with real per-model
// pricing instead of $0.
// @author: Jan <jan@trick77.com>
// @version: 0.3.0
// @version: 0.4.0
// @path: plugin
// @mode: append
// @pins: opencode-litellm-pricing 0.2.0
// @pins: opencode-plugin-litellm-pricing 0.3.0

["opencode-litellm-pricing@0.2.0"]
["opencode-plugin-litellm-pricing@0.3.0"]
4 changes: 2 additions & 2 deletions test/builtin-presets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test('ships a litellm plugin preset that appends the runtime-discovery plugin',
assert.equal(meta.name, 'plugin-litellm-pricing');
assert.equal(meta.path, 'plugin');
assert.equal(meta.mode, 'append');
assert.deepEqual(body, ['opencode-litellm-pricing@0.2.0']);
assert.deepEqual(body, ['opencode-plugin-litellm-pricing@0.3.0']);
});

test('ships a litellm provider preset that points at a proxy URL, no models', async () => {
Expand Down Expand Up @@ -141,7 +141,7 @@ test('records the pinned third-party version of every preset that installs one',
const expected: Record<string, Array<{ name: string; version: string }>> = {
'jdtls-lombok': [{ name: 'lombok', version: '1.18.46' }],
'mcp-playwright': [{ name: '@playwright/mcp', version: '0.0.78' }],
'plugin-litellm-pricing': [{ name: 'opencode-litellm-pricing', version: '0.2.0' }],
'plugin-litellm-pricing': [{ name: 'opencode-plugin-litellm-pricing', version: '0.3.0' }],
'plugin-superpowers': [{ name: 'superpowers', version: '6.2.0' }],
};

Expand Down