Configuration

Opinionated defaults, but fully adjustable. oh-my-opencode uses a cascading configuration system.

Config Locations

Configuration is loaded in the following order (last wins):

  1. ~/.config/opencode/oh-my-opencode.jsonc (User Global)
  2. .opencode/oh-my-opencode.jsonc (Project Specific)

Example Configuration

Here is a comprehensive example of what you can configure:

.opencode/oh-my-opencode.jsonc
{
  // Agent Configuration
  "agents": {
    "sisyphus": {
      "model": "claude-3-opus-20240229",
      "temperature": 0.7,
      "max_tokens": 4096
    },
    "hephaestus": {
      "model": "gpt-5.3-codex",
      "permissions": ["read", "write", "execute"]
    }
  },

  // Workflow Settings
  "workflow": {
    "auto_format": true,
    "todo_enforcer": true,
    "ralph_loop_limit": 10
  },

  // Plugin Management
  "plugins": [
    "@omo/git-hooks",
    "@omo/linter"
  ],

  // Disabled Hooks
  "disabled_hooks": [
    "pre-commit-check"
  ]
}

Hooks

oh-my-opencode comes with 25+ built-in hooks for various lifecycle events. You can disable specific hooks if they interfere with your workflow using the disabled_hooks array.