Skip to content

Add OpenRouter LLM plugin with model search and pricing#173

Merged
SeoFood merged 1 commit intomainfrom
SeoFood/add-openrouter-llm
Apr 3, 2026
Merged

Add OpenRouter LLM plugin with model search and pricing#173
SeoFood merged 1 commit intomainfrom
SeoFood/add-openrouter-llm

Conversation

@SeoFood
Copy link
Copy Markdown
Contributor

@SeoFood SeoFood commented Apr 3, 2026

Summary

Adds a dedicated OpenRouterPlugin providing access to 300+ LLMs via the OpenRouter API. The plugin includes a searchable model picker with per-model pricing display and account credits/balance in settings. Also introduces LLMModelSelectable, a binary-compatible @objc protocol that lets plugins expose their preferred model - the Prompts tab uses it when available and falls back to the existing global model picker for older plugins. A ModelPickerView with search field is added for providers with large model lists (20+).

Test Plan

  • Built and ran locally
  • Tested the changed functionality manually
  • No regressions in existing features

- New LLM plugin for OpenRouter (300+ models from OpenAI, Anthropic, Meta, Google etc.)
- Model picker with search field and per-model pricing display ($X/$Y per 1M tokens)
- Account credits/balance shown in plugin settings
- New LLMModelSelectable protocol (binary-compatible) lets plugins expose their preferred model
- Prompts tab uses plugin's preferred model when available, falls back to global picker for older plugins
- ModelPickerView with search field for providers with 20+ models
- CI workflow mapping for plugin-openrouter-v* release tags
@SeoFood SeoFood merged commit e5fee15 into main Apr 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant