Custom model support agent mode?

I am trying to use Qwen3 model from openrouter. I can succesfully connect the openrouter URL and API key, and I can talk to Qwen3 model. However, it does not support Agent mode. In other words, the Qwen3 model from openrouter cannot read and write files, and cannot use MCP tools. Is there any way to use Agent mode with our custom model?

Hey, models via API do not support agent mode yet.

do not support model via api. then is there any way to use my local model in agent mode?

Local models are not supported, but you can check out this thread for more information:

bump. My local qwen cannot use MCPs