Feature request for product/service
Cursor CLI
Describe the request
I’m using cursor-agent from another tool and need a way to pass provider-specific request parameters through the CLI.
From cursor-agent --help, I can see flags like --model, --mode, --header, --sandbox, and --workspace, but I could not find a way to pass request-body parameters or nested provider-specific kwargs.
One example is disabling thinking for a provider/model that expects something like:
{
"extra_body": {
"chat_template_kwargs": {
"thinking": false
}
}
}
I’d like a supported way to do something equivalent from cursor-agent, for example with:
- A JSON pass-through flag
cursor-agent --request-body-json '<json>'
- A dotted-path override
cursor-agent --set extra_body.chat_template_kwargs.thinking=false
For example:
cursor-agent --yolo --print --output-format=stream-json --model=kimi-k2.5 -- 'Please fix the function in Python__63.py such that all test cases pass.'
This works for model selection, but I do not see a way to also pass provider-specific request params.
Why this matters
- Some providers expose useful options only through nested request-body fields.
- Tools that integrate with
cursor-agentneed a stable CLI way to set those options. --headeris not enough because this is about request body fields, not HTTP headers.
Requested enhancement
Please add an officially supported way in cursor-agent to pass provider/model-specific request parameters, especially nested JSON body values.
Specific question
Is there currently any supported way in cursor-agent to pass nested request parameters such as:
{
"extra_body": {
"chat_template_kwargs": {
"thinking": false
}
}
}
If not, would you consider adding support for request-body overrides in the CLI?
Operating System (if it applies)
Linux