aider
aider copied to clipboard
Feature: `aider --list-models` with no arg should list all models
Issue
I'm a new user and I can't figure out how to list all models known to aider. This would be very helpful to add.
- I expected
aider --list-modelsto do it, but it fails because it requires an argument to filter down the list of all models - I also tried
aider --list-models ''andaider --list-models '*', but neither of those worked
$ aider --list-models
usage: aider [-h] [--model MODEL] [--openai-api-key OPENAI_API_KEY] [--anthropic-api-key ANTHROPIC_API_KEY]
[--openai-api-base OPENAI_API_BASE] [--openai-api-type OPENAI_API_TYPE]
[--openai-api-version OPENAI_API_VERSION] [--openai-api-deployment-id OPENAI_API_DEPLOYMENT_ID]
[--openai-organization-id OPENAI_ORGANIZATION_ID] [--set-env ENV_VAR_NAME=value]
[--api-key PROVIDER=KEY] [--list-models MODEL] [--model-settings-file MODEL_SETTINGS_FILE]
[--model-metadata-file MODEL_METADATA_FILE] [--alias ALIAS:MODEL]
[--reasoning-effort REASONING_EFFORT] [--thinking-tokens THINKING_TOKENS]
[--verify-ssl | --no-verify-ssl] [--timeout TIMEOUT] [--edit-format EDIT_FORMAT] [--architect]
[--auto-accept-architect | --no-auto-accept-architect] [--weak-model WEAK_MODEL]
[--editor-model EDITOR_MODEL] [--editor-edit-format EDITOR_EDIT_FORMAT]
[--show-model-warnings | --no-show-model-warnings]
[--check-model-accepts-settings | --no-check-model-accepts-settings]
[--max-chat-history-tokens MAX_CHAT_HISTORY_TOKENS] [--cache-prompts | --no-cache-prompts]
[--cache-keepalive-pings CACHE_KEEPALIVE_PINGS] [--map-tokens MAP_TOKENS]
[--map-refresh {auto,always,files,manual}] [--map-multiplier-no-files MAP_MULTIPLIER_NO_FILES]
[--input-history-file INPUT_HISTORY_FILE] [--chat-history-file CHAT_HISTORY_FILE]
[--restore-chat-history | --no-restore-chat-history] [--llm-history-file LLM_HISTORY_FILE]
[--dark-mode] [--light-mode] [--pretty | --no-pretty] [--stream | --no-stream]
[--user-input-color USER_INPUT_COLOR] [--tool-output-color TOOL_OUTPUT_COLOR]
[--tool-error-color TOOL_ERROR_COLOR] [--tool-warning-color TOOL_WARNING_COLOR]
[--assistant-output-color ASSISTANT_OUTPUT_COLOR] [--completion-menu-color COLOR]
[--completion-menu-bg-color COLOR] [--completion-menu-current-color COLOR]
[--completion-menu-current-bg-color COLOR] [--code-theme CODE_THEME] [--show-diffs]
[--git | --no-git] [--gitignore | --no-gitignore] [--aiderignore AIDERIGNORE] [--subtree-only]
[--auto-commits | --no-auto-commits] [--dirty-commits | --no-dirty-commits]
[--attribute-author | --no-attribute-author] [--attribute-committer | --no-attribute-committer]
[--attribute-commit-message-author | --no-attribute-commit-message-author]
[--attribute-commit-message-committer | --no-attribute-commit-message-committer]
[--git-commit-verify | --no-git-commit-verify] [--commit] [--commit-prompt PROMPT]
[--dry-run | --no-dry-run] [--skip-sanity-check-repo] [--watch-files | --no-watch-files]
[--lint] [--lint-cmd LINT_CMD] [--auto-lint | --no-auto-lint] [--test-cmd TEST_CMD]
[--auto-test | --no-auto-test] [--test] [--analytics | --no-analytics]
[--analytics-log ANALYTICS_LOG_FILE] [--analytics-disable] [--just-check-update]
[--check-update | --no-check-update] [--show-release-notes | --no-show-release-notes]
[--install-main-branch] [--upgrade] [--version] [--message COMMAND]
[--message-file MESSAGE_FILE] [--gui | --no-gui | --browser | --no-browser]
[--copy-paste | --no-copy-paste] [--apply FILE] [--apply-clipboard-edits] [--exit]
[--show-repo-map] [--show-prompts] [--voice-format VOICE_FORMAT]
[--voice-language VOICE_LANGUAGE] [--voice-input-device VOICE_INPUT_DEVICE] [--file FILE]
[--read FILE] [--vim] [--chat-language CHAT_LANGUAGE] [--yes-always] [-v] [--load LOAD_FILE]
[--encoding ENCODING] [--line-endings {platform,lf,crlf}] [-c CONFIG_FILE] [--env-file ENV_FILE]
[--suggest-shell-commands | --no-suggest-shell-commands] [--fancy-input | --no-fancy-input]
[--multiline | --no-multiline] [--notifications | --no-notifications]
[--notifications-command COMMAND] [--detect-urls | --no-detect-urls] [--editor EDITOR] [--opus]
[--sonnet] [--haiku] [--4] [--4o] [--mini] [--4-turbo] [--35turbo] [--deepseek] [--o1-mini]
[--o1-preview]
[FILE ...]
aider: error: argument --list-models/--models: expected one argument
$ aider --list-models '*'
───────────────────────────────────────────────────────────────────────────────────────────────────────────────
Models which match "*":
- bedrock/*/1-month-commitment/cohere.command-light-text-v14
- bedrock/*/1-month-commitment/cohere.command-text-v14
- bedrock/*/6-month-commitment/cohere.command-light-text-v14
- bedrock/*/6-month-commitment/cohere.command-text-v14
$ aider --list-models ''
───────────────────────────────────────────────────────────────────────────────────────────────────────────────
Using openrouter/anthropic/claude-3.7-sonnet model with API key from environment.
Aider v0.82.2
Main model: openrouter/anthropic/claude-3.7-sonnet with diff edit format, infinite output
Weak model: openrouter/anthropic/claude-3-5-haiku
Git repo: .git with 85 files
Repo-map: using 4096 tokens, auto refresh
───────────────────────────────────────────────────────────────────────────────────────────────────────────────
>
Version and model info
$ aider --version
aider 0.82.2