mdelias wires Mike into a whole catalog of AI models at once

This fork adds a fourth way to plug in the AI brains behind Mike - one account that reaches dozens of models instead of signing up with each vendor separately.

infrastructureintegration

Until now, Mike could run on three AI back ends (from Anthropic, Google, and OpenAI), each needing its own account and key. mdelias adds a fourth option: OpenRouter, a service that acts as a single doorway to a huge menu of models - Llama, Mistral, DeepSeek, Grok, plus rebranded access to the same OpenAI, Anthropic, and Google models - all through one account and one key.

For a legal team, the appeal is optionality: try a cheaper or newer model on a matter without renegotiating vendor contracts or juggling more credentials. Two caveats worth knowing before betting on it. The starter list of models it ships with is already out of date and would need refreshing, and the integration was written by an AI coding assistant rather than by hand, so it deserves a careful once-over before anyone leans on it in production.

So what Worth a look for any team that wants to shop across AI models without wiring up a new vendor each time.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

4 commits from mdelias/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
48315960 Merge pull request #2 from mdelias/sandbox/6ad04c37-7b97-4022-99c0--ecwr mdelias 2026-06-28 ↗ GitHub
docs: Add OPENROUTER_API_KEY to .env.example
c1ba766c Merge pull request #5 from mdelias/railway/code-change-hdhbdn mdelias 2026-06-28 ↗ GitHub
feat: Add OpenRouter LLM provider support
4a520764 docs: Add OPENROUTER_API_KEY to .env.example Railway Agent 2026-06-28 ↗ GitHub
Add `OPENROUTER_API_KEY` to the `.env.example` file to document the required environment variable for OpenRouter API integration.
438b6f08 feat: add OpenRouter LLM provider support railway-app[bot] 2026-06-28 ↗ GitHub
commit body
- Add openrouter.ts with streamOpenRouter and completeOpenRouterText
- Add OPENROUTER_MAIN/MID/LOW_MODELS constants to models.ts
- Update providerForModel() to detect openrouter/ prefix
- Expand ALL_MODELS set to include OpenRouter model IDs
- Add "openrouter" to Provider union type in types.ts
- Wire OpenRouter into streamChatWithTools and completeText in index.ts

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-686.md from inside the repo you want the changes in.

⬇ Download capture-thread-686.md