Skip to content

feat: OpenRouter model expansion with live API + model selector #231

@rubenmarcus

Description

@rubenmarcus

Summary

Expand OpenRouter support with updated models, a live model fetcher, and a ralph-starter models command.

Current State

  • Default model: anthropic/claude-3.5-sonnet (outdated)
  • No model selector or discovery
  • File: src/llm/providers.ts

Changes

A. Update default model

Change defaultModel from anthropic/claude-3.5-sonnet to anthropic/claude-sonnet-4-5

B. Add --model flag

ralph-starter run --model anthropic/claude-opus-4-6 --from github --issue 42

C. Add ralph-starter models command

Fetches live data from OpenRouter API:

ralph-starter models
ralph-starter models --tier frontier
ralph-starter models --refresh  # Force API fetch

D. Curated model tiers

Tier 1 — Frontier:

  • anthropic/claude-opus-4-6 — 1M context
  • anthropic/claude-sonnet-4-5 — Fast, great for coding
  • openai/gpt-5.3-codex — 400K context
  • google/gemini-3 — 1M context
  • deepseek/deepseek-v3.2 — Strong open-source

Tier 2 — Cost-effective:

  • google/gemini-2.5-flash — Fast
  • openai/gpt-4o-mini — Budget-friendly
  • deepseek/deepseek-r1 — Strong reasoning

Tier 3 — Specialized:

  • mistral/devstral-2 — Dev-focused
  • qwen/qwen-2.5-coder — Code-specialized

Implementation

  • Modify: src/llm/providers.ts
  • Create: src/llm/models.ts (curated list + API fetcher)
  • Create: src/commands/models.ts (CLI command)
  • Modify: src/commands/run.ts (--model flag)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions