Complete custom enhancement stack for OpenCode CLI. Clone this repo, run install, and your OpenCode CLI is fully upgraded.
git clone https://github.com/OpenSIN-Code/Infra-SIN-OpenCode-Stack.git
cd Infra-SIN-OpenCode-Stack
./install.sh# Check macOS version
sw_vers -productVersion
# ✅ Must be 13.0 or higher
# ❌ Upgrade macOS if needednode --version
# ✅ Must show "v20.x.x" or higher
# ❌ "command not found" → brew install nodewhich opencode
# ✅ Must show path (e.g., "/usr/local/bin/opencode")
# ❌ "not found" → npm install -g @opencode/cligit --version
# ✅ Must show "git version 2.x.x"
gh auth status
# ✅ Must show "Logged in to github.com"
# ❌ "not logged in" → gh auth loginnpm --version
# ✅ Must show "10.x.x" or higher
pnpm --version
# ✅ Optional but recommendedcd ~/dev
git clone https://github.com/OpenSIN-Code/Infra-SIN-OpenCode-Stack.git
cd Infra-SIN-OpenCode-Stack
# ✅ Repository cloned successfully
# ❌ "fatal: could not create work tree" → mkdir -p ~/dev first./install.sh
# ✅ Installer runs without errors
# ❌ "Permission denied" → chmod +x install.shThe installer will:
- Install 29 skills to
~/.config/opencode/skills/ - Install 4 plugins to
~/.config/opencode/plugins/ - Install 21 agents to
~/.config/opencode/agents/ - Install 13 commands to
~/.config/opencode/commands/ - Install 12 scripts to
~/.config/opencode/scripts/ - Set up git hooks
- Configure templates and instructions
- Install SIN-Pool-Router (Fireworks AI proxy with auto-failover)
# Check skills
ls ~/.config/opencode/skills/ | wc -l
# ✅ Should show 29+ entries
# Check plugins
ls ~/.config/opencode/plugins/ | wc -l
# ✅ Should show 4+ entries
# Check agents
ls ~/.config/opencode/agents/ | wc -l
# ✅ Should show 21+ entries
# Check commands
ls ~/.config/opencode/commands/ | wc -l
# ✅ Should show 13+ entries| Category | Count | Description |
|---|---|---|
| Skills | 30 | Custom workflows for A2A creation, deployment, debugging, browser automation, image generation, and thumbnail A/B testing |
| Plugins | 4 | Auth plugins for Antigravity, Qwen, OpenRouter |
| Agents | 22 | Custom agents including SIN-Zeus, OMOC swarm, SIN-Image-Generator, and multimodal tools |
| Commands | 13 | Custom CLI commands for swarm orchestration, terminal management, Zeus control |
| Scripts | 12 | Utility scripts for sync, rotation, PR watching, GitHub management |
| CLI Tools | 12 | sin-* CLI tools for docs, n8n, telegram, health, metrics |
| Templates | 5 | JSON schemas for work items, PR watchers, governance |
| Hooks | 1 | Pre-commit hook for auto-sync |
| Instructions | 4 | Orchestrator, planner, worker guidelines |
| Rules | 1 | Model preservation rules |
| Pool Router | 1 | SIN-Pool-Router (Fireworks AI proxy with auto-failover) |
| Vercel Pool | 1 | SINator-Vercel (Vercel AI Gateway proxy with Key-Pool, 28+ active Vercel keys) |
Der Stack enthält einen dedizierten Bild-Generator-Agent auf Basis von Gemini 3.1 Flash Image (Nano Banana 2) über den Vercel AI Gateway Pool.
# 1. SINator-Vercel Pool clonen + starten (Port 8001)
git clone https://github.com/SIN-Rotator/SINator-Vercel.git ~/dev/SINator-Vercel
cd ~/dev/SINator-Vercel
python3 -m venv .venv
.venv/bin/pip install fastapi httpx uvicorn
nohup ./.venv/bin/python3 -m uvicorn main:app --host 0.0.0.0 --port 8001 \
> /tmp/sinator-vercel-pool.log 2>&1 < /dev/null &
# 2. Vercel API Keys hinzufügen
.venv/bin/python3 add_keys.py --add vck_DEIN_KEY_1
.venv/bin/python3 add_keys.py --add vck_DEIN_KEY_2
# ODER bulk:
.venv/bin/python3 add_keys.py --file keys.txt
# 3. Status prüfen
curl -s http://localhost:17341/pool/status | python3 -m json.tool# Agent
opencode run "Generate a minimalist logo for SIN-Lab, blue gradient, vector style" \
--agent SIN-Image-Generator
# Direktes Model
opencode run "Erstelle ein Architektur-Diagramm für unseren Pool-Proxy" \
--model vercel-pool/nano-banana-2- Text→Image, Image→Image, Multi-Turn-Edit
- 512, 1K, 2K, 4K Auflösungen
- 15 Aspect Ratios (1:1 bis 21:9)
- Bis zu 14 Reference-Images pro Prompt
- SynthID Watermark automatisch
| Resolution | Cost/Image |
|---|---|
| 512 (0.5K) | $0.045 |
| 1K (default) | $0.067 |
| 2K | $0.101 |
| 4K | $0.151 |
Infra-SIN-OpenCode-Stack/
├── install.sh # Main installer
├── opencode.json # OpenCode configuration (sanitized)
├── AGENTS.md # Global agent rules
├── skills/ # 29 custom skills
├── plugins/ # Custom auth plugins
│ └── local-plugins/ # Local plugin source
├── commands/ # 13 custom commands
├── scripts/ # 12 utility scripts
├── hooks/ # Git hooks
├── templates/ # JSON schemas
├── instructions/ # Agent instructions
├── rules/ # Model rules
├── tools/ # Utility tools
├── platforms/ # Platform evidence
├── bin/ # CLI tool stubs
└── docs/ # Documentation
# Copy example env file
cp .env.example .env
# Edit .env with your credentials
nano .envThe installer automatically sets up the SIN-Pool-Router. Verify:
# Check pool router (public endpoint)
curl -s https://sinatorpool-router.delqhi.com/inference/v1/models | head -20
# ✅ Should show Fireworks models list
# Check local router
pgrep -f pool-router.py
# ✅ Should show PIDIf you only need the OpenCode Fireworks config without the full stack:
curl -fsSL https://raw.githubusercontent.com/SIN-Hermes-Bundles/SIN-Hermes-Provider-Bundle/main/opencode-config-install.sh | bashMit API Key:
curl -fsSL https://raw.githubusercontent.com/SIN-Hermes-Bundles/SIN-Hermes-Provider-Bundle/main/opencode-config-install.sh | bash -s -- --api-key fw_xxxInstalliert:
provider.fireworks-aiin~/.config/opencode/opencode.json- 5 Reasoning-Modelle (deepseek-v4-pro, glm-5p1, kimi-k2p6, qwen3p6-plus, minimax-m2p7)
- Varianten:
off/low/medium/high/max - Base URL:
https://sinatorpool-router.delqhi.com/inference/v1
# Configure Antigravity plugin
opencode plugin config antigravity
# Configure Qwen plugin
opencode plugin config qwen
# Configure OpenRouter plugin
opencode plugin config openrouter# Sync to other machines
sin-sync
# ✅ All files synced successfully# Check OpenCode version
opencode --version
# ✅ Must show version number
# Test a skill
opencode skill run test-skill
# ✅ Skill runs successfully# Reinstall skills
./install.sh --force
# Or manually:
rsync -av skills/ ~/.config/opencode/skills/# Check plugin dependencies
npm install -g @opencode/plugin-antigravity
npm install -g @opencode/plugin-qwen
npm install -g @opencode/plugin-openrouter# Add to PATH
export PATH="$HOME/.config/opencode/commands:$PATH"
# Or add to ~/.zshrc or ~/.bashrc# Check git hooks
ls -la .git/hooks/
# Should show pre-commit symlink
# If not:
ln -s hooks/pre-commit .git/hooks/pre-commitSee CONFIGURATION.md for detailed configuration options.
Last updated: 2026-05-30 Version: 2025.1