Universal cross-platform installation scripts for oh-my-opencode with automatic Node.js/Bun detection and setup wizard.
curl -fsSL https://raw.githubusercontent.com/enkinvsh/opencode-/main/install.sh | bashirm https://raw.githubusercontent.com/enkinvsh/opencode-/main/install.ps1 | iexbunx oh-my-opencode install
# or
npx oh-my-opencode installThe installer scripts automatically:
- ✅ Detect your platform (Linux/macOS/Windows)
- ✅ Check for Node.js 18+ or Bun
- ✅ Show installation instructions if runtime not found
- ✅ Run the oh-my-opencode setup wizard
- ✅ Verify auth plugin configuration
- ✅ Display next steps for getting started
| Component | Minimum Version | Check Command |
|---|---|---|
| Node.js | 18+ | node --version |
| or Bun | any | bun --version |
| OpenCode | latest | opencode --version |
macOS (Homebrew):
brew install nodeLinux (nvm - recommended):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.bashrc # or ~/.zshrc
nvm install --ltsWindows (winget):
winget install OpenJS.NodeJS.LTSUnix (Linux/macOS):
curl -fsSL https://bun.sh/install | bashWindows (PowerShell):
powershell -c "irm bun.sh/install.ps1 | iex"- 🔒 Security: Script wrapped in
{ }to prevent partial execution (follows NVM best practices) - 🎯 Smart detection: Automatically finds npm, bun, pnpm, or yarn
- 🚨 Error handling: Uses
set -euo pipefailfor proper error propagation - 🎨 Colored output: Clear info/warn/error messages
- 🔄 Fallback support: Works with curl or wget
- ✅ Windows version check: Ensures Windows 10 1809+ (build 17763)
- 🎯 Package manager detection: Supports npm, bun, pnpm, yarn
- 📦 PowerShell 5.1+ compatible: Works with both Windows PowerShell and PowerShell 7+
- 🎨 Colored output: Uses PowerShell native colors
- ⚙️ Parameter support:
--SkipAuthCheck,--NoColor
After installation, oh-my-opencode creates three config files:
| File | Purpose |
|---|---|
~/.config/opencode/opencode.json |
Plugins and model providers |
~/.config/opencode/oh-my-opencode.json |
Agents and task categories |
~/.config/opencode/config.json |
Tools and MCP integrations |
See setup-opencode.md for detailed configuration examples.
After installation, authenticate with Antigravity:
opencode auth loginSelect Google when prompted. This will open your browser for OAuth authentication.
Check your installation:
# Check plugins
opencode plugin list
# Check auth status
opencode auth status
# Start OpenCode
opencode
# Check quota (inside opencode)
/antigravity-quota- setup-opencode.md - Detailed setup guide with configuration examples
- ideal-workflow-design-refactoring.md - Workflow guide for design refactoring (Russian)
- instructions.md - Windows environment preferences
For complex multi-step tasks:
# 1. Start planning session
@plan Refactor authentication to use NextAuth
# 2. Answer Prometheus questions (interactive interview)
# 3. Finalize plan
"Make it a plan"
# 4. Execute plan
/start-workFor complex tasks where you don't want to explain context:
ulw Refactor the Button component to use CSS modules with dark mode supportFor simple one-off tasks:
# Just ask naturally
"Fix the TypeScript error in auth.ts"Solution: Ensure model is defined in both:
opencode.json(provider models)oh-my-opencode.json(agent assignments)
Format: google/antigravity-claude-opus-4-5-thinking (not anthropic/...)
Solution:
opencode auth logout
opencode auth loginSolution:
- Add plugin to
pluginarray inopencode.json - Restart opencode completely
- Verify with
opencode plugin list
# Check version
oh-my-opencode get-local-version
# Update
npm update -g oh-my-opencode
# or
bun update -g oh-my-opencode
# Run diagnostics
oh-my-opencode doctor# Clone repository
git clone https://github.com/enkinvsh/opencode-.git
cd opencode-
# Test installer locally
./install.sh # Unix
.\install.ps1 # Windows- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
These installers follow security best practices:
- ✅ Scripts wrapped to prevent partial execution
- ✅ HTTPS-only downloads
- ✅ No arbitrary code execution without user confirmation
- ✅ Clear error messages with remediation steps
- ✅ Respects existing installations
Based on research from:
- oh-my-opencode: code-yeongyu/oh-my-opencode
- OpenCode: Base AI coding assistant framework
- Antigravity: Multi-account quota management system
MIT License - see LICENSE for details
- GitHub: https://github.com/enkinvsh/opencode-
- Issues: https://github.com/enkinvsh/opencode-/issues
- oh-my-opencode repo: https://github.com/code-yeongyu/oh-my-opencode