OCS (OpenCode Config Suites) quick installer for Multi Agents workflow, AI coding profile setup, and cross-platform OpenCode onboarding (Windows, Linux, macOS).
Use this branch for beta rollout and validation before main release.
This branch currently includes installer hardening for WSL/macOS/Windows edge cases:
- automatic dependency install/retry when runtime prerequisites are missing
- clearer staged runtime messages, retries, and health checks for long-running install/build steps
- stronger
opencode auth loginstability via plugin integrity checks + rebuild fallback - safer command resolution for
ocsandopencodewithout semantic alias regressions - helper scripts for environment reset (
uninstall.sh) and state safety (backup.sh/restore.sh)
curl -fsSL https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/beta/install.sh | bashInstall specific version:
curl -fsSL https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/beta/install.sh | bash -s -- --version 2.1.6WSL note: run the command inside WSL terminal (bash/zsh), not from Windows PowerShell.
pwsh -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/beta/install.ps1 | iex"Install specific version:
pwsh -NoProfile -ExecutionPolicy Bypass -Command '$env:OCS_VERSION = "2.1.6"; irm https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/beta/install.ps1 | iex'Windows note: run via pwsh (PowerShell 7), not powershell.exe (Windows PowerShell 5.1), to avoid parser errors like Unexpected token '??'.
curl -fsSL https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/main/install.sh | bashpwsh -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/main/install.ps1 | iex"Run installer from your normal user shell. Do not wrap installer command in sudo, or profile/config writes may target the wrong home directory.
If you want deterministic behavior while this beta branch is still collecting edge-case reports, use pinned version + branch:
curl -fsSL https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/beta/install.sh | bash -s -- --version 2.1.6 --branch betapwsh -NoProfile -ExecutionPolicy Bypass -Command '$env:OCS_VERSION = "2.1.6"; $env:OCS_RELEASE_BRANCH = "beta"; irm https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/beta/install.ps1 | iex'Post-install smoke checks:
opencode --help
opencode auth login --help
opencode web --help
ocs setup:profile --helpcodex-5.3-token-saver- Primary model:
openai/gpt-5.3-codex - Token-efficient worker lane:
openai/gpt-5.1-codex-mini - Recommended default for most users: strongest balance for planning -> execution flow, efficient token usage, and stable precision once your workflow is already tidy.
- Best for: daily coding sessions where you want high throughput without sacrificing decision quality.
- Primary model:
codex-5.4-best-perform- Primary model:
openai/gpt-5.4 - Fast lane:
openai/gpt-5.3-codex - Best for: maximum-depth architecture reviews and the toughest debugging cases.
- Primary model:
codex-5.4-token-saver- Primary model:
openai/gpt-5.4 - Token-efficient worker lane:
openai/gpt-5.1-codex-mini - Best for: teams that want GPT-5.4 orchestration with tighter token control.
- Primary model:
Notes:
- These three setups are selectable from
ocs setup:profile. - Model availability still follows your runtime account entitlements (
opencode models openai).
- Diagnose PATH/shim issues:
ocs doctor
- If
ocsoropencodeis not detected on macOS/Linux:export PATH="$HOME/.opencode/bin:$HOME/.local/bin:$HOME/.bun/bin:$PATH" hash -r ocs doctor
- If
ocsoropencodeis not detected on Windows PowerShell:Get-Command ocs Get-Command opencode ocs doctor
Kalau mau reset total environment sebelum retest, jalankan script uninstall.sh dari root repo:
bash ./uninstall.sh --yesCatatan penting:
- Default auto backup aktif sebelum data dihapus.
- Untuk matikan backup:
./uninstall.sh --yes --no-backup - Untuk set lokasi backup:
./uninstall.sh --yes --backup-dir /path/backup - Untuk simulasi aman tanpa perubahan:
./uninstall.sh --dry-run --yes --no-backup
Kalau mau simpan lalu pulihkan state sebelum/selesai retest:
bash ./backup.sh --yes
bash ./restore.sh --yesOpsional aman:
- Preview backup tanpa menulis apa pun:
bash ./backup.sh --dry-run - Preview restore tanpa ekstrak:
bash ./restore.sh --dry-run - Pilih archive tertentu saat restore:
bash ./restore.sh --archive /path/file.tar.gz --yes
Kalau di macOS login malah minta API key (padahal harusnya keluar OAuth Antigravity), jalankan langkah ini dari Terminal biasa:
- Pastikan binary yang kepanggil urutannya benar:
which -a opencode
PATH="$HOME/.opencode/bin:$HOME/.local/bin:$HOME/.bun/bin:$PATH" opencode --version- Pastikan plugin OAuth Antigravity terpasang (cek salah satu entry valid):
ls -la ~/.config/opencode/plugins/opencode-multi-auth/dist/src/plugin.js
ls -la ~/.config/opencode/plugins/opencode-multi-auth/dist/index.js
grep -n "OAuth with Google (Antigravity)" ~/.config/opencode/plugins/opencode-multi-auth/dist/src/plugin.js || grep -n "OAuth with Google (Antigravity)" ~/.config/opencode/plugins/opencode-multi-auth/dist/index.js
grep -n "opencode-multi-auth" ~/.config/opencode/opencode.jsonJika dist/src/plugin.js dan dist/index.js sama-sama belum ada, jalankan repair cepat ini:
cd ~/.config/opencode/plugins/opencode-multi-auth || exit 1
bun install --frozen-lockfile || bun install
PATH="$HOME/.opencode/bin:$HOME/.local/bin:$HOME/.bun/bin:$PATH" bun run build || npm run build
OCS_SETUP_INSTALLER_MODE=1 bun scripts/setup.js --headless --profile codex-5.3-token-saver --mode low
ls -la ~/.config/opencode/plugins/opencode-multi-auth/dist/src/plugin.js ~/.config/opencode/plugins/opencode-multi-auth/dist/index.jsKalau folder plugin belum ada sama sekali, rerun installer:
curl -fsSL https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/beta/install.sh | bash -s -- --version 2.1.6- Paksa login via provider Antigravity dengan PATH prioritas:
PATH="$HOME/.opencode/bin:$HOME/.local/bin:$HOME/.bun/bin:$PATH" opencode auth login --provider antigravity- Kalau masih fallback ke API key, jalankan debug:
OPENCODE_LOG_LEVEL=debug PATH="$HOME/.opencode/bin:$HOME/.local/bin:$HOME/.bun/bin:$PATH" opencode auth login --provider antigravityCatatan: jalankan perintah di shell Terminal normal (bukan embedded TUI) supaya picker OAuth tidak bentrok.
- Verify PowerShell 7:
pwsh --version pwsh -NoProfile -Command "$PSVersionTable.PSVersion"
- Install PowerShell 7 on Windows:
winget install --id Microsoft.PowerShell --source winget- Microsoft Store: search PowerShell (Publisher: Microsoft)
- MSI installer: https://github.com/PowerShell/PowerShell/releases/latest
- If terminal still opens 5.1, force full path:
& "$env:ProgramFiles\PowerShell\7\pwsh.exe" -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/andyvandaric/opencode-suites-installer/main/install.ps1 | iex"
Kalau kamu sudah lama ngikutin OpenCode tapi masih bingung setup agent, atau baru mulai dan belum kebayang harus start dari mana, OCS disiapkan buat jalur cepat.
- Tinggal install, add akun, pilih profile, dan pakai.
- Tidak perlu trial and error config dari nol.
- Siap untuk workflow multi-agent harian dengan setup yang lebih rapi.
Kalau kamu ngoding pakai AI setiap hari, biasanya yang bikin seret itu kuota cepat habis, workflow single-agent lama, dan pindah tool bikin fokus buyar. OCS dirancang untuk ngatasin problem itu dari awal.
- Multi-agent teamwork dengan 14 agent role-specific (debug, riset docs, review, security audit, eksekusi).
- 11 profile siap pilih (termasuk jalur GPT-5.4 quality-first, GPT-5.4 token-saver, dan Codex 5.3 token-saver).
- Multi-account workflow untuk jalur penggunaan harian.
- LSP + MCP aktif untuk docs lookup dan GitHub code search real-time.
- Hardening installer Linux/WSL/Windows, termasuk stabilisasi
ocsshim dan deteksi commandopencode. - Jalur login Antigravity OAuth dipulihkan dan tervalidasi di
opencode auth login.
Install OCS sekarang:
- Buyer beta source repo:
andyvandaric/andyvand-opencode-config - Default source branch:
beta - Bundle source path:
assets/opencode-config-suites-v*.tar.gz
- If your GitHub account has beta access, installer pulls bundle from buyer beta channel.
- If access is missing, installer redirects to WhatsApp purchase CTA.