This is a feature request for 'oh-my-opencode' to add native support for OpenRouter as an LLM provider. OpenRouter offers a unified API for various models, enabling cost optimization and diverse model access. Users currently resort to manual configuration, highlighting a clear need for a first-class integration.
A starter prompt for Claude Code, what you'll need, and how to reach them.
You are an expert software engineer. I need you to implement native OpenRouter provider support for the `code-yeongyu/oh-my-opencode` project. Your task is to fork the repository, add a new provider configuration for OpenRouter, and integrate its models into the existing model selection logic. Use Next.js 16 App Router, React 19, Tailwind v4, and ensure the integration handles API key management and model listing robustly. The MVP should allow users to configure an OpenRouter API key and select models available through OpenRouter, similar to how OpenAI or Anthropic providers are handled. Begin by outlining the necessary file changes and code structure. Provide specific examples of how the OpenRouter API will be called and how its response (listing models) will be parsed and integrated into the frontend. Include error handling for invalid API keys or failed requests. The build/verify gate is a successful test showing OpenRouter models are listed and usable within a local instance of oh-my-opencode.
Reach out to users of 'oh-my-opencode' who are actively using or considering OpenRouter, offering a usage monitor for their AI coding tools or a robust MCP server starter kit.
### Prerequisites - [x] I will write this issue in English (see our [Language Policy](https://github.com/code-yeongyu/oh-my-opencode/blob/dev/CONTRIBUTING.md#language-policy)) - [x] I have searched existing issues and discussions to avoid duplicates - [x] This feature request is specific to oh-my-opencode (not OpenCode core) - [x] I have read the [documentation](https://github.com/code-yeongyu/oh-my-opencode#readme) or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer ### Problem Description There is currently no way to configure [OpenRouter](https://openrouter.ai) as a provider in oh-my-opencode. OpenRouter is a unified API gateway that provides access to hundreds of models (Claude, GPT, Gemini, Llama, Mistral, DeepSeek, etc.) through a single API key and endpoint, with automatic fallback, rate limit handling, and cost tracking built in. Users who rely on OpenRouter for model access - whether for cost optimization, model variety, or because they don't have direct subscriptions to individual providers - currently have to manually edit each model in the config. ### Proposed Solution Add `openrouter` as a first-class provider in oh-my-opencod
Standard for GitHub project contributions.
Familiarity with obtaining and using LLM API keys.
Review existing provider implementations and project structure - ~1-2 days.
Learn it: Search getting-started ↗
Comment on the GitHub issue (Issue #1637) in `code-yeongyu/oh-my-openagent`, then open a draft pull request referencing the issue.
“I've seen the request for native OpenRouter support in oh-my-opencode and have started working on a prototype. I'm confident I can deliver a robust integration that aligns with the project's architecture. I'll open a draft PR shortly to share my progress and welcome early feedback.”
Open the original ↗