# Assigning Per-Task AI Models in OpenCode: Agents, Commands, and Session Overrides

**URL:** https://www.itechguides.com/community/t/assigning-per-task-ai-models-in-opencode-agents-commands-and-session-overrides/4732
**Category:** Guides
**Created:** [November 17, 2026, 1:01am UTC](https://www.itechguides.com/community/t/assigning-per-task-ai-models-in-opencode-agents-commands-and-session-overrides/4732 "2026-11-17T01:01:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![itechguides](https://www.itechguides.com/community/user_avatar/www.itechguides.com/itechguides/32/8_2.png) [@itechguides](https://www.itechguides.com/community/u/itechguides)
#### Post date: [November 17, 2026, 1:01am UTC](https://www.itechguides.com/community/t/assigning-per-task-ai-models-in-opencode-agents-commands-and-session-overrides/4732/1 "2026-11-17T01:01:27Z")

</div>

Use OpenCode agents and commands for repeatable per-task model routing, or choose a model temporarily with /models and opencode run --model. Learn the precedence rules, project availability checks, and troubleshooting steps.

The post [Assigning Per-Task AI Models in OpenCode: Agents, Commands, and Session Overrides](https://www.itechguides.com/assigning-per-task-ai-models-in-opencode-agents-commands-and-session-overrides/) appeared first on [iTechGuides](https://www.itechguides.com).

* * *
This is a companion discussion topic for the original entry at [https://www.itechguides.com/assigning-per-task-ai-models-in-opencode-agents-commands-and-session-overrides/](https://www.itechguides.com/assigning-per-task-ai-models-in-opencode-agents-commands-and-session-overrides/)
