Model configuration

I am looking to clean up my model configuration

I would like the following:

Main agent model: anthropic-opus-4-5 via token
Fallback agent: minimax m2.1 via minimax code
Fall back agent 2: glm4.7

And I would also like to configure codex to spawn coding sub agents on demand. How should I configure these?
Was this page helpful?