Use a cheaper model for small tasks

models & providers

// what it does

small_model designates a fast, inexpensive model that opencode uses for lightweight background work — session titles, summaries, and compaction — while your main model handles the actual coding. Point it at something like anthropic/claude-haiku-4-5 to cut cost and latency on those chores.

// shell

$ { "small_model": "anthropic/claude-haiku-4-5" }

// resources