Skip to content

Instantly share code, notes, and snippets.

@fazzledev
Created March 14, 2026 12:32
Show Gist options
  • Select an option

  • Save fazzledev/4dc677f7bd6d441306e02740bf369aaf to your computer and use it in GitHub Desktop.

Select an option

Save fazzledev/4dc677f7bd6d441306e02740bf369aaf to your computer and use it in GitHub Desktop.
omo-models: Simple bash profile switcher for Oh My OpenCode (Go / Claude / Hybrid)
# OpenCode model family switcher
omo-models() {
local config_dir="$HOME/.config/opencode"
local current=""
# Detect current config
if grep -q "opencode-go" "$config_dir/oh-my-opencode.json" 2>/dev/null && grep -q "anthropic/claude" "$config_dir/oh-my-opencode.json" 2>/dev/null; then
current="hybrid"
elif grep -q "opencode-go" "$config_dir/oh-my-opencode.json" 2>/dev/null; then
current="go"
elif grep -q "anthropic/claude" "$config_dir/oh-my-opencode.json" 2>/dev/null; then
current="claude"
fi
case "${1:-}" in
go)
cp "$config_dir/oh-my-opencode.go.json" "$config_dir/oh-my-opencode.json"
echo "Switched to OpenCode Go models (Kimi/MiniMax/GLM)"
;;
claude)
cp "$config_dir/oh-my-opencode.claude.json" "$config_dir/oh-my-opencode.json"
echo "Switched to Claude models (Opus/Sonnet/Haiku)"
;;
hybrid)
cp "$config_dir/oh-my-opencode.hybrid.json" "$config_dir/oh-my-opencode.json"
echo "Switched to Hybrid models (Claude for thinking, Go for doing)"
;;
*)
echo "Current: ${current:-unknown}"
echo "Usage: omo-models [go|claude|hybrid]"
echo ""
echo "Available profiles:"
echo " go - OpenCode Go (Kimi K2.5, MiniMax M2.5, GLM-5)"
echo " claude - Anthropic Claude (Opus 4.6, Sonnet 4.6, Haiku 4.5)"
echo " hybrid - Claude for thinking agents, Go for doing agents"
return 1
;;
esac
}
# Alias for quick switching
alias omo-go='omo-models go'
alias omo-claude='omo-models claude'
alias omo-hybrid='omo-models hybrid'
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/dev/assets/oh-my-opencode.schema.json",
"agents": {
"sisyphus": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"oracle": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"librarian": { "model": "anthropic/claude-sonnet-4-6" },
"explore": { "model": "anthropic/claude-haiku-4-5" },
"multimodal-looker": { "model": "anthropic/claude-haiku-4-5" },
"prometheus": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"metis": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"momus": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"atlas": { "model": "anthropic/claude-sonnet-4-6" },
"sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" }
},
"categories": {
"visual-engineering": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"ultrabrain": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"quick": { "model": "anthropic/claude-haiku-4-5" },
"unspecified-low": { "model": "anthropic/claude-sonnet-4-6" },
"unspecified-high": { "model": "anthropic/claude-sonnet-4-6" },
"writing": { "model": "anthropic/claude-sonnet-4-6" }
}
}
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/dev/assets/oh-my-opencode.schema.json",
"agents": {
"sisyphus": { "model": "opencode-go/kimi-k2.5" },
"oracle": { "model": "opencode-go/kimi-k2.5" },
"librarian": { "model": "opencode-go/minimax-m2.5" },
"explore": { "model": "opencode-go/glm-5" },
"multimodal-looker": { "model": "opencode-go/glm-5" },
"prometheus": { "model": "opencode-go/kimi-k2.5" },
"metis": { "model": "opencode-go/kimi-k2.5" },
"momus": { "model": "opencode-go/kimi-k2.5" },
"atlas": { "model": "opencode-go/minimax-m2.5" },
"sisyphus-junior": { "model": "opencode-go/minimax-m2.5" }
},
"categories": {
"visual-engineering": { "model": "opencode-go/kimi-k2.5" },
"ultrabrain": { "model": "opencode-go/kimi-k2.5" },
"quick": { "model": "opencode-go/glm-5" },
"unspecified-low": { "model": "opencode-go/glm-5" },
"unspecified-high": { "model": "opencode-go/minimax-m2.5" },
"writing": { "model": "opencode-go/minimax-m2.5" }
}
}
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/dev/assets/oh-my-opencode.schema.json",
"agents": {
"sisyphus": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"oracle": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"metis": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"momus": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"prometheus": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"librarian": {
"model": "opencode-go/kimi-k2.5"
},
"atlas": {
"model": "opencode-go/kimi-k2.5"
},
"explore": {
"model": "opencode-go/glm-5"
},
"multimodal-looker": {
"model": "opencode-go/glm-5"
},
"sisyphus-junior": {
"model": "opencode-go/minimax-m2.5"
}
},
"categories": {
"visual-engineering": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"ultrabrain": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"writing": {
"model": "opencode-go/kimi-k2.5"
},
"quick": {
"model": "opencode-go/glm-5"
},
"unspecified-low": {
"model": "opencode-go/glm-5"
},
"unspecified-high": {
"model": "opencode-go/minimax-m2.5"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment