feat: add docker agent models command#2304
Merged
dgageot merged 2 commits intodocker:mainfrom Apr 1, 2026
Merged
Conversation
Adds a CLI command to discover models available for --model flag, so users don't have to guess valid provider/model combinations. Shows all catalog models for providers with configured credentials by default. --all includes providers without credentials. Supports --provider filter and --format json output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove unused env parameter (unparam) - Use strings.EqualFold for case-insensitive comparison (gocritic) - Use strings.SplitSeq for range iteration (modernize) - Fix import ordering: standard > third-party > project (gci) - Remove trailing blank line Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dgageot
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker agent models [list|ls]command to discover models available for--modelflag--allincludes providers without credentials,--provider/-pfilters by provider,--format jsonfor machine outputdocker agent modelsdefaults tolist(follows Docker CLI conventions)Motivation
Currently the only way to discover valid
--modelvalues is to guess aprovider/modelcombo, read the source, or use the TUI model picker at runtime. This command closes that gap so users can discover what's available before runningdocker agent new --modelordocker agent run --model.Test plan
cmd/roottests passdocker agent models,docker agent models -p openai,docker agent models --all,docker agent models --format json🤖 Generated with Claude Code