promptgarten 🌱

Command reference Β· Cursor CLI

agent models

Lists all models available for the account.

agent models shows the list of models usable by the currently signed-in account. This is the same result as agent --list-models. A model is then selected separately, either with --model <model> at startup or via /model in a running session.

πŸ”„ THE SAME TASK (β€œLIST AVAILABLE MODELS”) ON OTHER PLATFORMS

Compare all 28 tasks β†’

βœ… WHEN TO USE IT?

Check the exact model name to use before a script run

agent models

Pipe the available models into another tool or script

agent --list-models > models.txt

β›” WHEN NOT TO?

You just want to switch the model for the current session

agent models only lists models, it doesn't switch anything.

Better: Use /model in the running chat, or set --model <model> at startup

You're already in an interactive session and want a quick switch

A new agent models call would mean a new session or process.

Better: Use /model directly inside the running session

SOURCES

MORE COMMANDS Β· Cursor CLI

agent mcpagent sandboxagent workeragent acpagent updateagent lsagent resumeagent create-chatagent generate-rule | agent ruleagent install-shell-integrationagent uninstall-shell-integrationagent help [command]

All commands Β· Cursor CLI β†’

Share:𝕏inπŸ’¬