Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
98651fe
build(deps): bump hashgraph-online/ai-plugin-scanner-action (#176)
dependabot[bot] Nov 2, 2026
4c4bf80
build(deps-dev): bump @opencode-ai/plugin from 1.19.3 to 1.19.4 (#178)
dependabot[bot] Nov 2, 2026
dbb6b62
build(deps-dev): bump typescript-eslint from 8.71.2 to 8.72.0 (#179)
dependabot[bot] Nov 2, 2026
e8a0c39
build(deps): bump @opencode/plugin from 2.0.32 to 2.1.4 (#177)
dependabot[bot] Nov 2, 2026
4f74c94
docs: update OpenCode v2 compatibility badge
yuhp Nov 2, 2026
9260644
docs: streamline README (#187)
yuhp Nov 4, 2026
d15cf5c
build(deps-dev): bump @types/node from 26.6.5 to 26.6.6 (#181)
dependabot[bot] Nov 4, 2026
b338440
build(deps-dev): bump @opencode-ai/plugin from 1.19.4 to 1.19.5 (#182)
dependabot[bot] Nov 4, 2026
d9cf92f
build(deps-dev): bump typescript-eslint from 8.72.0 to 8.72.1 (#183)
dependabot[bot] Nov 4, 2026
1385495
build(deps): bump hashgraph-online/ai-plugin-scanner-action (#184)
dependabot[bot] Nov 4, 2026
9aef717
build(deps-dev): bump eslint from 10.13.0 to 10.14.0 (#186)
dependabot[bot] Nov 4, 2026
51ee63d
build(deps): bump @opencode/plugin from 2.1.4 to 2.2.5 (#185)
dependabot[bot] Nov 4, 2026
5398b69
Merge main into dev after v2.1.1 release
yuhp Nov 4, 2026
f0fefdf
docs: update plugin examples to v2.1.1 (#189)
yuhp Nov 4, 2026
d690b03
build(deps): bump hashgraph-online/ai-plugin-scanner-action (#193)
dependabot[bot] Nov 11, 2026
205efa0
build(deps-dev): bump globals from 17.13.0 to 17.14.0 (#195)
dependabot[bot] Nov 11, 2026
861e938
build(deps-dev): bump vitest from 5.0.5 to 5.1.0 (#197)
dependabot[bot] Nov 11, 2026
7ae6123
build(deps): bump @opencode/plugin from 2.2.5 to 2.2.6 (#196)
dependabot[bot] Nov 11, 2026
599e042
docs: add UberLLM provider configuration example (#198)
PSA-Team-source Nov 11, 2026
57abbad
Merge community config examples into dev
yuhp Nov 11, 2026
11081a5
Merge latest dev changes
yuhp Nov 11, 2026
60f4288
docs: update plugin examples to v2.1.2
yuhp Nov 11, 2026
683786e
chore: bump version to 2.1.2
github-actions[bot] Nov 11, 2026
7565be2
docs: update OpenCode v2 compatibility badge
yuhp Nov 11, 2026
f5d4742
docs: fix OpenCode v1 docs link
yuhp Nov 11, 2026
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 .github/workflows/plugin-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
persist-credentials: false

- name: Scan plugin
uses: hashgraph-online/ai-plugin-scanner-action@8c2dd4f9cc381ad56496ca44aab10ce19f6bdd0f # v1.2.813
uses: hashgraph-online/ai-plugin-scanner-action@9b169fc65d09b24726b66d70b3563ab563158b58 # v1.2.816
with:
plugin_dir: "."
min_score: 80
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[![npm downloads](https://img.shields.io/npm/dt/opencode-models-discovery.svg)](https://www.npmjs.com/package/opencode-models-discovery)
[![release](https://github.com/yuhp/opencode-models-discovery/actions/workflows/release.yml/badge.svg)](https://github.com/yuhp/opencode-models-discovery/actions/workflows/release.yml)
[![license](https://img.shields.io/github/license/yuhp/opencode-models-discovery)](https://github.com/yuhp/opencode-models-discovery/blob/main/LICENSE)
[![OpenCode v1](https://img.shields.io/badge/OpenCode%20v1-%3E%3D1.18.29-blueviolet)](https://opencode.ai/docs)
[![OpenCode v2](https://img.shields.io/badge/OpenCode%20v2-%3E%3D2.2.5-blueviolet)](https://opencode.ai/v2/docs/)
[![OpenCode v1](https://img.shields.io/badge/OpenCode%20v1-%3E%3D1.18.29-blueviolet)](https://opencode.ai/v1/docs)
[![OpenCode v2](https://img.shields.io/badge/OpenCode%20v2-%3E%3D2.2.6-blueviolet)](https://opencode.ai/v2/docs/)

> Discover models from OpenAI-compatible providers and add them to OpenCode automatically.

Expand All @@ -29,7 +29,7 @@ OpenCode v2 uses `plugins` and `providers`. Discovery settings belong under `pro
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"gateway": {
Expand Down Expand Up @@ -73,7 +73,7 @@ For OpenCode v1 (`1.18.29+`), use `plugin`, `provider`, and `options`:
```json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-models-discovery@2.1.0"],
"plugin": ["opencode-models-discovery@2.1.2"],
"provider": {
"lmstudio": {
"npm": "@ai-sdk/openai-compatible",
Expand Down
36 changes: 18 additions & 18 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/config_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Do not paste secrets into public issues or pull requests. Configure provider cre
- [A2Agent](a2agent.md)
- [AI-ROUTER](ai-router.md)
- [DeepSeek](deepseek.md)
- [UberLLM](uberllm.md)

## Community Example PR Scope

Expand Down
2 changes: 1 addition & 1 deletion docs/config_example/a2agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project is not affiliated with, endorsed by, or sponsored by [A2Agent](http
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"a2agent": {
Expand Down
2 changes: 1 addition & 1 deletion docs/config_example/ai-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project is not affiliated with, endorsed by, or sponsored by [AI-ROUTER](ht
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"ai-router": {
Expand Down
2 changes: 1 addition & 1 deletion docs/config_example/deepseek.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project is not affiliated with, endorsed by, or sponsored by DeepSeek.
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"deepseek": {
Expand Down
40 changes: 40 additions & 0 deletions docs/config_example/uberllm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# UberLLM Configuration Example

This example uses the primary OpenCode v2 configuration shape. For legacy OpenCode v1, adapt using the [migration guide](../migrate-v1-to-v2.md).

## Disclaimer

This project is not affiliated with, endorsed by, or sponsored by [UberLLM](https://uberllm.dev/).

## Example

```jsonc
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.2"
],
"providers": {
"uberllm": {
"package": "@opencode/ai/providers/openai-compatible",
"settings": {
"baseURL": "https://api.uberllm.dev/v1",
// Optional: omit if managing credentials interactively via OpenCode '/connect'
"apiKey": "example_api_key",
"modelsDiscovery": {
"enabled": true,
"modelInfoFormat": "openrouter"
}
}
}
}
}
```

## Notes

- Configure credentials with OpenCode `/connect` when possible, or through local private configuration.
- This uses the plugin's standard `/v1/models` discovery path, which resolves to `https://api.uberllm.dev/v1/models`. That endpoint lists chat models only; image, video and music models are not returned there.
- The `/v1/models` response carries OpenRouter-style inline fields (`context_length`, `top_provider.max_completion_tokens`, `architecture` modalities, `supported_parameters`, `pricing`), so `modelInfoFormat: "openrouter"` fills limits, modalities, tool-call support and cost from the same response without another request. Remove it if you do not want the plugin to set per-model costs.
- The example intentionally does not declare a static model list or filters. Returned models depend on the current API response.
- Verify the current API base URL, model availability, pricing, terms of service, data handling, and regional availability before use.
6 changes: 3 additions & 3 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ OpenCode v2 uses `plugins` and `providers`. The plugin can be declared directly
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"my-provider": {
Expand Down Expand Up @@ -727,7 +727,7 @@ For providers with custom metadata paths or non-standard behavior:
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"lmstudio": {
Expand Down Expand Up @@ -776,7 +776,7 @@ In this example:
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"ollama": {
Expand Down
4 changes: 2 additions & 2 deletions docs/connect-and-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ OpenCode v2 features a first-class Integration subsystem (`ctx.integration`) and
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"deepseek-custom": {
Expand Down Expand Up @@ -83,7 +83,7 @@ OpenCode v1 does not have the V2 plugin integration API. Instead, the V1 adapter
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"provider": {
"test_provider": {
Expand Down
4 changes: 2 additions & 2 deletions docs/migrate-v1-to-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ OpenCode v2 is the stable, primary integration. The package contains separate ad
| OpenCode v1 | OpenCode v2 |
|---|---|
| `plugin` | `plugins` |
| `plugin: ["opencode-models-discovery"]` | `plugins: ["opencode-models-discovery@2.1.0"]` |
| `plugin: ["opencode-models-discovery"]` | `plugins: ["opencode-models-discovery@2.1.2"]` |
| `provider` | `providers` |
| `provider.<id>.npm` | `providers.<id>.package` |
| `provider.<id>.options` | `providers.<id>.settings` |
Expand Down Expand Up @@ -64,7 +64,7 @@ The V1 package commonly uses:
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
"opencode-models-discovery@2.1.0"
"opencode-models-discovery@2.1.2"
],
"providers": {
"gateway": {
Expand Down
Loading
Loading