Skip to content

fix: add -m/--model and --provider flags to root hermes parser - #8495

Closed
iRonin wants to merge 2 commits into
NousResearch:mainfrom
iRonin:ironin/root-model-flag
Closed

fix: add -m/--model and --provider flags to root hermes parser#8495
iRonin wants to merge 2 commits into
NousResearch:mainfrom
iRonin:ironin/root-model-flag

Conversation

@iRonin

@iRonin iRonin commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Adds -m/--model and --provider flags to the root Hermes CLI parser so users can specify model/provider when launching from the command line.

hermes chat -m anthropic/claude-sonnet-4-6
hermes chat --model openai/gpt-4o --provider openrouter

Closes #8479

iRonin added 2 commits April 12, 2026 11:05
hermes -c "session name" -m anthropic/claude-sonnet-4-6 now works.
Previously -m was only on 'hermes chat', so the shorthand root-level
-c flag couldn't be combined with a model override.

Also stop stomping args.model/provider with None in the root→chat
passthrough — the values from the root parser are now preserved.
@teknium1

Copy link
Copy Markdown
Contributor

Thanks for the contribution, @iRonin!

Closing this as a duplicate of #4801 (by @iRonin), which targets the same fix/feature. We're consolidating on that PR for review.

If you want to help push it over the line, please jump in there — or if you think your approach is better for a specific reason that isn't covered in the other PR, let us know and we can reopen.

@teknium1 teknium1 closed this Apr 21, 2026
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.

fix: add -m/--model and --provider flags to root hermes CLI parser

2 participants