Skip to content

Add OpenRouter model generator#1405

Open
nicopujia wants to merge 3 commits intoanomalyco:devfrom
nicopujia:add-openrouter-generator
Open

Add OpenRouter model generator#1405
nicopujia wants to merge 3 commits intoanomalyco:devfrom
nicopujia:add-openrouter-generator

Conversation

@nicopujia
Copy link
Copy Markdown
Contributor

@nicopujia nicopujia commented Apr 9, 2026

Summary

Add an OpenRouter generator that pulls from GET /api/v1/models and generates OpenRouter model TOMLs.

The generator supports:

  • --dry-run to preview changes without writing files
  • --new-only to create missing models without updating existing ones
  • --delete-orphaned to remove local model files that are no longer present in the OpenRouter API

Testing

bun install
bun openrouter:generate --dry-run
bun openrouter:generate --dry-run --delete-orphaned
bun validate

Optional write-mode checks:

bun openrouter:generate --new-only
bun validate

@nicopujia nicopujia marked this pull request as ready for review April 9, 2026 17:11
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