OpenCode omoa Toggle
Toggle the oh-my-openagent plugin for OpenCode.
Purpose
oh-my-openagent adds multi-model orchestration, LSP tools, and other advanced features to OpenCode. However, it can interfere with normal operation. This tool provides a simple way to enable/disable it without modifying the config file.
How It Works
The solution uses:
- State file (
~/.config/opencode/omoa-enabled) — determines if omoa should be active OPENCODE_CONFIG_CONTENTenvironment variable — injects the plugin at runtime (higher precedence than config file)- Post-upgrade script — removes plugin entry from
opencode.jsonafter running upstream installer
This approach:
- Keeps
opencode.jsonclean (no plugin entry) - Is compatible with upstream install script
- No file mutation, no backups, no restore
Files
omoa— CLI command to toggle omoa on/offopencode-start.sh— Wrapper script that starts OpenCode with/without omoaomoa-post-upgrade.sh— Removes omoa plugin fromopencode.jsonafter upstream installomoa.mjs— Unified OpenCode skill for all omoa operations (toggle, status, post-upgrade)git-ops.mjs— OpenCode skill for git operations with Hibbhome Gitea serveropencode-setup.mjs— OpenCode skill documenting the full system architectureREADME.md— This file
Installation
- Copy files to
~/.config/opencode/ - Make scripts executable:
chmod +x ~/.config/opencode/omoa chmod +x ~/.config/opencode/opencode-start.sh chmod +x ~/.config/opencode/omoa-post-upgrade.sh - Symlink to PATH:
ln -sf ~/.config/opencode/omoa ~/.local/bin/omoa ln -sf ~/.config/opencode/opencode-start.sh ~/.local/bin/opencode-start ln -sf ~/.config/opencode/omoa-post-upgrade.sh ~/.local/bin/omoa-post-upgrade - Update systemd service to use wrapper:
[Service] ExecStart=/home/kenny/.config/opencode/opencode-start.sh - Add skill to
opencode.json:"skills": { "omoa": { "description": "Manage oh-my-openagent (toggle, status, post-upgrade)", "path": "/home/kenny/.config/opencode/skills/omoa.mjs" } } - Restart services
Usage
CLI Command (simplest)
omoa # Toggle on/off
omoa on # Enable
omoa off # Disable
omoa status # Check status
Shell (start server directly)
# Start without omoa (vanilla)
opencode-start
# Start with omoa enabled
opencode-start --omoa
# After running upstream install script
omoa-post-upgrade
Telegram Bot
Use /commands → omoa:
omoa_status— Check if omoa is enabledomoa_enable— Enable omoaomoa_disable— Disable omoaomoa_toggle— Toggle omoa on/offomoa_post_upgrade— Clean opencode.json after upstream install
After Upstream Updates
When you run the upstream install script:
npx oh-my-openagent@latest install
omoa-post-upgrade # Clean the plugin entry from opencode.json
Author
Kenny Hibbhome
Created
2026-05-03
Description
Languages
JavaScript
60%
Shell
40%