feat: OpenRouter provider integration — API key management, usage tracking, and account UI#740
Open
EnesDemir143 wants to merge 9 commits into
Open
feat: OpenRouter provider integration — API key management, usage tracking, and account UI#740EnesDemir143 wants to merge 9 commits into
EnesDemir143 wants to merge 9 commits into
Conversation
- Define OpenRouterAccount interface with key_type, usage, limits - Define OpenRouterModel, OpenRouterUsage, OpenRouterCreditsInfo - Add helper functions: display email, plan badge, usage percent, credits
- Service layer with invoke wrappers for all Rust commands - Zustand store using createProviderAccountStore factory - Covers: CRUD, refresh, inject, credits, models, activity
- Add 'openrouter' to PlatformId, Page, ALL_PLATFORM_IDS, PLATFORM_PAGE_MAP - Add OpenRouter icon component and SVG asset - Add OpenRouterAccountsPage with accounts list, add/edit/delete, models tab - Add route rendering, store import, and navigation entries - Handle quota alerts and tray navigation
- Models: OpenRouterAccount, key types, credit info, model pricing - Commands: list, add, delete, import/export, refresh, inject, credits, models - Module: encrypted account CRUD, API key validation via /key endpoint - Register all modules and wire up commands in lib.rs
- Add OpenRouter icon to macOS ProviderIconView.swift - Register OpenRouter in tray module and tray_layout - Add build_openrouter_display_info for tray display - Add build_openrouter_cards for macOS native menu - Add i18n keys for en.json and zh-CN.json (nav, tabs, usage, credits, models) - Fix QuickSettingsType, ProviderCurrentPlatform, DashboardPage stats - Add openrouter adapters to dataTransferService and accountTransferService
…nd account card UI
- Redesign quota section with OpenCode-style layout - Add proper OpenRouter logo SVG icon - Remove custom budget feature - Clean up unused code - Improve account card UI to match project patterns
- Replace placeholder SVG with actual OpenRouter brand PNG logo - Update native macOS menu to use PNG instead of SVG - Match Qoder's pattern for icon handling
abaynp
approved these changes
May 21, 2026
EnesDemir143
commented
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full OpenRouter provider integration to Cockpit Tools — manage your OpenRouter API keys, track usage/spending, and browse available models — all within the app.
Features
Core
UI
Technical
Testing