diff --git a/AGENTS_INSTALL.md b/AGENTS_INSTALL.md index c4a80069fd7..0bab328853d 100644 --- a/AGENTS_INSTALL.md +++ b/AGENTS_INSTALL.md @@ -92,7 +92,7 @@ A host that has both a Task Scheduler entry and a WinSW service is in a conflict ### The CLI -`npm install -g @bitkyc08/opencodex` puts `ocx` on the PATH from npm's global prefix, and the +`npm install -g --allow-scripts=bun @bitkyc08/opencodex` puts `ocx` on the PATH from npm's global prefix, and the Bun runtime it needs is bundled inside that package. There is no separate runtime to install and no WSL layer on Windows. diff --git a/README.md b/README.md index db98afcaf0a..263079fb129 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ and connect OpenCode, Pi, Qoder, WorkBuddy, Kilo, Cline, T3 Code and more throug
```bash -npm install -g @bitkyc08/opencodex +npm install -g --allow-scripts=bun @bitkyc08/opencodex ocx start ``` @@ -94,7 +94,7 @@ providers with Codex, Claude Code, Claude Desktop, Grok Build and the tools list ### Personal install (CLI) ```bash -npm install -g @bitkyc08/opencodex # Node 18+; the Bun runtime is bundled automatically +npm install -g --allow-scripts=bun @bitkyc08/opencodex # Node 18+; the Bun runtime is bundled automatically ocx start # proxy + dashboard on localhost:10100 ``` @@ -253,7 +253,7 @@ they reach the npm package.
{t('Prefer the terminal?', '터미널이 더 편하다면', '更喜欢终端?', 'Предпочитаете терминал?', 'ターミナル派ですか?', '偏好終端機?', 'Terminali mi tercih edersiniz?')}
- npm install -g @bitkyc08/opencodex
+ npm install -g --allow-scripts=bun @bitkyc08/opencodex
{t('Installation guide', '설치 가이드', '安装指南', 'Руководство по установке', 'インストールガイド', '安裝指南', 'Kurulum kılavuzu')}
{t('All releases and checksums', '전체 릴리스와 체크섬', '所有版本与校验和', 'Все релизы и контрольные суммы', 'すべてのリリースとチェックサム', '所有版本與校驗碼', 'Tüm sürümler ve sağlama toplamları')}
{t('Desktop app guide', '데스크톱 앱 가이드', '桌面应用指南', 'Руководство по приложению', 'デスクトップアプリガイド', '桌面應用程式指南', 'Masaüstü uygulaması kılavuzu')}
diff --git a/docs-site/src/content/docs/fr/getting-started/for-agents.md b/docs-site/src/content/docs/fr/getting-started/for-agents.md
index 3e962903062..671d1d01e02 100644
--- a/docs-site/src/content/docs/fr/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/fr/getting-started/for-agents.md
@@ -13,7 +13,7 @@ disponible pour une configuration interactive ; consultez le [tableau de bord w
Installez le package publié et confirmez que `ocx` est sur `PATH` :
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/fr/getting-started/installation.md b/docs-site/src/content/docs/fr/getting-started/installation.md
index 65fb3d91133..456907e4e9e 100644
--- a/docs-site/src/content/docs/fr/getting-started/installation.md
+++ b/docs-site/src/content/docs/fr/getting-started/installation.md
@@ -19,7 +19,7 @@ ChatGPT lorsqu’un modèle routé en a besoin.
## Installer
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
:::note[npm a-t-il bloqué le script postinstall de bun ?]
@@ -52,7 +52,7 @@ les entrées du catalogue n’accordent aucun accès par elles-mêmes. N’utili
tester des versions opencodex non encore publiées :
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/fr/troubleshooting/windows-memory.md b/docs-site/src/content/docs/fr/troubleshooting/windows-memory.md
index cae4dce2521..b0d3f4476db 100644
--- a/docs-site/src/content/docs/fr/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/fr/troubleshooting/windows-memory.md
@@ -44,4 +44,4 @@ Si vous essayez l’une de ces solutions avec une charge Windows réelle, veuill
L’installation et la réparation du service Windows ainsi que l’installation et l’actualisation du shim Codex vérifient que l’exécutable sélectionné peut créer puis supprimer un répertoire dans la racine de configuration OpenCodex. Ce contrôle de politique d’écriture ne corrige pas la mémoire. Un échec refuse l’opération avant tout arrêt, téléchargement, préparation ou écriture de jeton ou de lanceur. La réparation automatique du shim est différée avec des instructions et le démarrage continue. Les shims sains ou désactivés ne sont pas testés. Aucun autre runtime n’est recherché. Une première installation du planificateur enregistre sa tâche et revendique la racine de configuration avant ce contrôle ; en cas de refus, cet enregistrement est annulé et la racine revendiquée est conservée pour une nouvelle tentative.
-> Le runtime Bun sélectionné ne peut pas créer puis supprimer un répertoire de configuration. La politique d’application Windows peut interdire les écritures depuis cet emplacement. Avant de lancer `ocx`, définissez `OPENCODEX_BUN_PATH` vers un exécutable Bun de confiance autorisé par votre politique, ou réinstallez avec `npm install -g @bitkyc08/opencodex`, puis réessayez. Aucun autre runtime n’a été sélectionné.
+> Le runtime Bun sélectionné ne peut pas créer puis supprimer un répertoire de configuration. La politique d’application Windows peut interdire les écritures depuis cet emplacement. Avant de lancer `ocx`, définissez `OPENCODEX_BUN_PATH` vers un exécutable Bun de confiance autorisé par votre politique, ou réinstallez avec `npm install -g --allow-scripts=bun @bitkyc08/opencodex`, puis réessayez. Aucun autre runtime n’a été sélectionné.
diff --git a/docs-site/src/content/docs/getting-started/for-agents.md b/docs-site/src/content/docs/getting-started/for-agents.md
index b02c39812a5..9bba3f1bfc1 100644
--- a/docs-site/src/content/docs/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/getting-started/for-agents.md
@@ -13,7 +13,7 @@ available for interactive configuration; see [Web Dashboard](/guides/web-dashboa
Install the published package and confirm that `ocx` is on `PATH`:
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/getting-started/installation.md b/docs-site/src/content/docs/getting-started/installation.md
index 7eab3cd9117..a2660d4c128 100644
--- a/docs-site/src/content/docs/getting-started/installation.md
+++ b/docs-site/src/content/docs/getting-started/installation.md
@@ -30,7 +30,7 @@ for one package invocation. That bypass does not repair the Desktop record, shim
## Install
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
With pnpm 10.4 or later:
@@ -70,6 +70,12 @@ npm install -g --allow-scripts=bun @bitkyc08/opencodex
# if the original install used sudo, keep using sudo:
sudo npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
+
+On Windows a running proxy keeps `node_modules\bun\bin` open, so a manual
+`npm install -g` fails with `EBUSY`. `ocx update` stops the proxy and restarts the service itself;
+for a manual reinstall, stop it first (`ocx stop`), install, then restart through the owning service
+(`ocx service restart`) or `ocx start` when unmanaged. `ocx doctor` prints this sequence when it finds
+a package install whose bundled runtime never unpacked.
:::
Verify both command aliases are on your `PATH`:
@@ -116,7 +122,7 @@ the catalog entries do not grant access by themselves. Use the preview channel o
unreleased opencodex builds:
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/ja/getting-started/for-agents.md b/docs-site/src/content/docs/ja/getting-started/for-agents.md
index 9eb2aa29574..db3261538f7 100644
--- a/docs-site/src/content/docs/ja/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/ja/getting-started/for-agents.md
@@ -10,7 +10,7 @@ description: ユーザー同意の境界を越えずに、エージェント主
公開されたパッケージをインストールし、`ocx` が `PATH` 上にあることを確認します。
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/ja/getting-started/installation.md b/docs-site/src/content/docs/ja/getting-started/installation.md
index 49b50f7d37d..3ac4677d744 100644
--- a/docs-site/src/content/docs/ja/getting-started/installation.md
+++ b/docs-site/src/content/docs/ja/getting-started/installation.md
@@ -18,7 +18,7 @@ opencodex をインストールすると同じ実行ファイルを指す `ocx`
## インストール
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
:::note[npm が bun の postinstall をブロックした?]
@@ -63,7 +63,7 @@ GPT-5.6 Sol/Terra/Luna カタログ情報がすでに含まれています。た
ありません。まだ正式配布されていない opencodex ビルドを試す場合のみ preview チャネルを使ってください:
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/ja/troubleshooting/windows-memory.md b/docs-site/src/content/docs/ja/troubleshooting/windows-memory.md
index 774933a39f3..3bdc80e3f68 100644
--- a/docs-site/src/content/docs/ja/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/ja/troubleshooting/windows-memory.md
@@ -50,4 +50,4 @@ Windows では、#32111 クラッシュを回避するために、opencodex は
Windows のサービスのインストール・修復と Codex shim のインストール・更新は、選択した実行ファイルが OpenCodex 設定ルート内でディレクトリを作成・削除できるか確認します。これはメモリ修正ではなく書き込みポリシーの確認です。失敗するとサービス停止、ダウンロード、ステージング、トークンやランチャーの書き込み前に拒否します。shim の自動修復は案内付きで延期され、起動は続行します。正常または無効な shim は検査しません。別のランタイムを自動探索しません。 初回のスケジューラーインストールでは、この確認の前にタスクを登録し設定ルートを確保します。拒否された場合は新しい登録を取り消し、確保したルートは再試行用に残します。
-> 選択した Bun ランタイムが設定ディレクトリ内でディレクトリを作成・削除できませんでした。Windows のアプリケーションポリシーがこの実行ファイルの位置からの書き込みを拒否している可能性があります。`ocx` 起動前にポリシーが許可する信頼できる Bun のパスを `OPENCODEX_BUN_PATH` に設定するか、`npm install -g @bitkyc08/opencodex` で再インストールして再試行してください。別のランタイムは選択していません。
+> 選択した Bun ランタイムが設定ディレクトリ内でディレクトリを作成・削除できませんでした。Windows のアプリケーションポリシーがこの実行ファイルの位置からの書き込みを拒否している可能性があります。`ocx` 起動前にポリシーが許可する信頼できる Bun のパスを `OPENCODEX_BUN_PATH` に設定するか、`npm install -g --allow-scripts=bun @bitkyc08/opencodex` で再インストールして再試行してください。別のランタイムは選択していません。
diff --git a/docs-site/src/content/docs/ko/getting-started/for-agents.md b/docs-site/src/content/docs/ko/getting-started/for-agents.md
index 4b6a07ded65..b79ffdd7f06 100644
--- a/docs-site/src/content/docs/ko/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/ko/getting-started/for-agents.md
@@ -10,7 +10,7 @@ description: 사용자의 동의 경계를 넘지 않으면서 에이전트가
배포된 패키지를 설치하고 `ocx`가 `PATH`에 들어 있는지 확인합니다:
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/ko/getting-started/installation.md b/docs-site/src/content/docs/ko/getting-started/installation.md
index 4e2ec7dbdbe..909eb049228 100644
--- a/docs-site/src/content/docs/ko/getting-started/installation.md
+++ b/docs-site/src/content/docs/ko/getting-started/installation.md
@@ -18,7 +18,7 @@ opencodex를 설치하면 같은 실행 파일을 가리키는 `ocx`와 `opencod
## 설치
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
:::note[npm이 bun postinstall을 차단했다면?]
@@ -86,7 +86,7 @@ GPT-5.6 Sol/Terra/Luna 카탈로그 정보가 이미 들어 있습니다. 다만
아닙니다. 아직 정식 배포되지 않은 opencodex 빌드를 시험할 때만 preview 채널을 사용하세요:
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/ko/troubleshooting/windows-memory.md b/docs-site/src/content/docs/ko/troubleshooting/windows-memory.md
index 1534ef83f4d..2e0396dff32 100644
--- a/docs-site/src/content/docs/ko/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/ko/troubleshooting/windows-memory.md
@@ -44,4 +44,4 @@ Windows에서는 opencodex가 #32111 충돌을 피하기 위해 스트리밍 응
Windows 서비스 설치·복구와 Codex shim 설치·갱신은 선택한 실행 파일이 OpenCodex 설정 루트 안에 디렉터리를 만들고 제거할 수 있는지 검사합니다. 메모리 수정이 아닌 쓰기 정책 검사입니다. 실패하면 서비스 중지, 다운로드, 스테이징, 토큰·실행 파일 쓰기 전에 거부합니다. shim 자동 복구는 안내와 함께 지연되며 시작은 계속됩니다. 정상 상태 또는 비활성화된 shim은 검사하지 않습니다. 다른 런타임을 자동으로 찾지 않습니다. 처음 하는 스케줄러 설치는 이 검사 전에 작업을 등록하고 설정 루트를 확보합니다. 거부되면 새 등록은 되돌리고, 확보한 루트는 재시도를 위해 남겨 둡니다.
-> 선택한 Bun 런타임이 OpenCodex 설정 디렉터리 안에 디렉터리를 만들고 제거하지 못했습니다. Windows 애플리케이션 정책이 이 실행 파일 위치의 쓰기를 차단할 수 있습니다. `ocx` 실행 전에 정책이 허용하는 신뢰할 수 있는 Bun 실행 파일로 `OPENCODEX_BUN_PATH`를 설정하거나, `npm install -g @bitkyc08/opencodex`로 다시 설치한 뒤 재시도하세요. 다른 런타임은 선택하지 않았습니다.
+> 선택한 Bun 런타임이 OpenCodex 설정 디렉터리 안에 디렉터리를 만들고 제거하지 못했습니다. Windows 애플리케이션 정책이 이 실행 파일 위치의 쓰기를 차단할 수 있습니다. `ocx` 실행 전에 정책이 허용하는 신뢰할 수 있는 Bun 실행 파일로 `OPENCODEX_BUN_PATH`를 설정하거나, `npm install -g --allow-scripts=bun @bitkyc08/opencodex`로 다시 설치한 뒤 재시도하세요. 다른 런타임은 선택하지 않았습니다.
diff --git a/docs-site/src/content/docs/ru/getting-started/for-agents.md b/docs-site/src/content/docs/ru/getting-started/for-agents.md
index 37917a311b3..c443d881925 100644
--- a/docs-site/src/content/docs/ru/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/ru/getting-started/for-agents.md
@@ -14,7 +14,7 @@ description: Установите и используйте opencodex из аг
Установите опубликованный пакет и убедитесь, что `ocx` доступен в `PATH`:
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/ru/getting-started/installation.md b/docs-site/src/content/docs/ru/getting-started/installation.md
index ca0fe20b3e4..b48185a1c0f 100644
--- a/docs-site/src/content/docs/ru/getting-started/installation.md
+++ b/docs-site/src/content/docs/ru/getting-started/installation.md
@@ -19,7 +19,7 @@ opencodex устанавливает два эквивалентных имен
## Установка
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
:::note[npm заблокировал postinstall-скрипт bun?]
@@ -66,7 +66,7 @@ ChatGPT, OpenAI по API-ключу, OpenRouter и эксперименталь
Используйте канал preview только для тестирования ещё не выпущенных сборок opencodex:
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/ru/troubleshooting/windows-memory.md b/docs-site/src/content/docs/ru/troubleshooting/windows-memory.md
index 67a7ea9c7c7..401ea3fd65e 100644
--- a/docs-site/src/content/docs/ru/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/ru/troubleshooting/windows-memory.md
@@ -91,4 +91,4 @@ opencodex поставляет рантайм Bun (сейчас это **1.3.14*
Установка и восстановление службы Windows, а также установка и обновление shim Codex проверяют, может ли выбранный исполняемый файл создать и удалить каталог внутри корня конфигурации OpenCodex. Это проверка политики записи, а не исправление памяти. При неудаче операция отклоняется до остановки службы, загрузки, подготовки или записи токена и запускающего файла. Автовосстановление shim откладывается с рекомендацией, запуск продолжается. Исправный или отключённый shim не проверяется. Поиск другой среды не выполняется. При первой установке через планировщик задача регистрируется и корень конфигурации закрепляется до этой проверки; при отказе новая регистрация откатывается, а закреплённый корень остаётся для повторной попытки.
-> Выбранная среда Bun не смогла создать и удалить каталог конфигурации. Политика приложений Windows может запрещать запись из этого расположения. До запуска `ocx` задайте `OPENCODEX_BUN_PATH` на доверенный исполняемый файл Bun, разрешённый политикой, либо переустановите через `npm install -g @bitkyc08/opencodex` и повторите попытку. Другая среда не выбиралась.
+> Выбранная среда Bun не смогла создать и удалить каталог конфигурации. Политика приложений Windows может запрещать запись из этого расположения. До запуска `ocx` задайте `OPENCODEX_BUN_PATH` на доверенный исполняемый файл Bun, разрешённый политикой, либо переустановите через `npm install -g --allow-scripts=bun @bitkyc08/opencodex` и повторите попытку. Другая среда не выбиралась.
diff --git a/docs-site/src/content/docs/tr/getting-started/for-agents.md b/docs-site/src/content/docs/tr/getting-started/for-agents.md
index 54e7023ccf2..7e4f295b692 100644
--- a/docs-site/src/content/docs/tr/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/tr/getting-started/for-agents.md
@@ -15,7 +15,7 @@ kalır; bkz. [Web Kontrol Paneli](/tr/guides/web-dashboard/).
Yayınlanan paketi kurun ve `ocx`'in `PATH` üzerinde olduğunu doğrulayın:
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/tr/getting-started/installation.md b/docs-site/src/content/docs/tr/getting-started/installation.md
index 14f26330d21..4d410758294 100644
--- a/docs-site/src/content/docs/tr/getting-started/installation.md
+++ b/docs-site/src/content/docs/tr/getting-started/installation.md
@@ -20,7 +20,7 @@ duyduğunda ChatGPT oturumunuzu da kullanabilir.
## Kurulum
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
:::note[npm bun postinstall betiğini engelledi mi?]
@@ -54,7 +54,7 @@ erişim sağlamaz. Önizleme kanalını yalnızca yayınlanmamış opencodex
derlemelerini test etmek için kullanın:
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/tr/troubleshooting/windows-memory.md b/docs-site/src/content/docs/tr/troubleshooting/windows-memory.md
index 260b35816b8..5f09debff7c 100644
--- a/docs-site/src/content/docs/tr/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/tr/troubleshooting/windows-memory.md
@@ -111,4 +111,4 @@ doğrulama tam olarak budur.
Windows hizmet kurulumu ve onarımı ile Codex shim kurulumu ve yenilemesi, seçilen yürütülebilir dosyanın OpenCodex yapılandırma kökünde bir dizin oluşturup kaldırabildiğini denetler. Bu bir yazma politikası denetimidir; bellek düzeltmesi değildir. Başarısızlık hizmet durdurma, indirme, hazırlama, belirteç veya başlatıcı yazma işlemlerinden önce reddedilir. Otomatik shim onarımı yönlendirmeyle ertelenir ve başlangıç devam eder. Sağlıklı veya devre dışı shim denetlenmez. Başka çalışma zamanı aranmaz. İlk zamanlayıcı kurulumu bu denetimden önce görevini kaydeder ve yapılandırma kökünü sahiplenir; ret durumunda yeni kayıt geri alınır ve sahiplenilen kök yeniden deneme için kalır.
-> Seçilen Bun çalışma zamanı yapılandırma dizininde bir dizin oluşturup kaldıramadı. Windows uygulama politikası bu yürütülebilir konumundan yazmayı engelleyebilir. `ocx` başlatılmadan önce `OPENCODEX_BUN_PATH` değerini politikanızın izin verdiği güvenilir Bun yürütülebilir dosyasına ayarlayın veya `npm install -g @bitkyc08/opencodex` ile yeniden kurup tekrar deneyin. Başka çalışma zamanı seçilmedi.
+> Seçilen Bun çalışma zamanı yapılandırma dizininde bir dizin oluşturup kaldıramadı. Windows uygulama politikası bu yürütülebilir konumundan yazmayı engelleyebilir. `ocx` başlatılmadan önce `OPENCODEX_BUN_PATH` değerini politikanızın izin verdiği güvenilir Bun yürütülebilir dosyasına ayarlayın veya `npm install -g --allow-scripts=bun @bitkyc08/opencodex` ile yeniden kurup tekrar deneyin. Başka çalışma zamanı seçilmedi.
diff --git a/docs-site/src/content/docs/troubleshooting/windows-memory.md b/docs-site/src/content/docs/troubleshooting/windows-memory.md
index 65ee95c07ab..50bb093fd21 100644
--- a/docs-site/src/content/docs/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/troubleshooting/windows-memory.md
@@ -146,4 +146,4 @@ the verification this mitigation is waiting on.
Windows service installation, repair and Codex shim installation/refresh check whether the selected executable can create and remove a directory inside the OpenCodex config root. This is a write-policy check, not a memory fix. Failure refuses before service stops, downloads, staging, token or launcher writes. Automatic shim repair is deferred with guidance and startup continues. Healthy or disabled shims do not probe. No alternate runtime is discovered. A first-time scheduler install registers its task and claims the config root before this check; on refusal that new registration is rolled back and the claimed root stays for a retry.
-> The selected Bun runtime could not create and remove a directory in the OpenCodex config directory. Windows application policy may deny writes from this executable location. Set OPENCODEX_BUN_PATH to a trusted Bun executable allowed by your policy before launching ocx, or reinstall opencodex with npm install -g @bitkyc08/opencodex, then retry. No alternate runtime was selected.
+> The selected Bun runtime could not create and remove a directory in the OpenCodex config directory. Windows application policy may deny writes from this executable location. Set OPENCODEX_BUN_PATH to a trusted Bun executable allowed by your policy before launching ocx, or reinstall opencodex with npm install -g --allow-scripts=bun @bitkyc08/opencodex, then retry. No alternate runtime was selected.
diff --git a/docs-site/src/content/docs/zh-cn/getting-started/for-agents.md b/docs-site/src/content/docs/zh-cn/getting-started/for-agents.md
index 80970e9601c..182b79a38ab 100644
--- a/docs-site/src/content/docs/zh-cn/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/zh-cn/getting-started/for-agents.md
@@ -10,7 +10,7 @@ description: 为受代理驱动或脚本控制的终端安装并操作 opencodex
安装已发布的包,并确认 `ocx` 已在 `PATH` 中:
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/zh-cn/getting-started/installation.md b/docs-site/src/content/docs/zh-cn/getting-started/installation.md
index 335debd845d..e4d017e72b3 100644
--- a/docs-site/src/content/docs/zh-cn/getting-started/installation.md
+++ b/docs-site/src/content/docs/zh-cn/getting-started/installation.md
@@ -18,7 +18,7 @@ vision 和网络搜索 sidecar 也可以使用你的 ChatGPT 登录凭据。
## 安装
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
:::note[npm 拦截了 bun postinstall?]
@@ -61,7 +61,7 @@ GPT-5.6 Sol/Terra/Luna 目录信息,但这些条目本身不会授予上游模
opencodex 构建时,才需要使用 preview 渠道:
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/zh-cn/troubleshooting/windows-memory.md b/docs-site/src/content/docs/zh-cn/troubleshooting/windows-memory.md
index b77e5f2d7c1..bde42e03b21 100644
--- a/docs-site/src/content/docs/zh-cn/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/zh-cn/troubleshooting/windows-memory.md
@@ -44,4 +44,4 @@ opencodex 打包了 Bun 运行时(当前为 **1.3.14**)。这类内存增长
Windows 服务安装、修复及 Codex shim 安装、刷新会检查所选可执行文件能否在 OpenCodex 配置根目录内创建并删除目录。这是写入策略检查,并非内存修复。失败时会在停止服务、下载、暂存以及写入令牌或启动器前拒绝操作。shim 自动修复会延后并显示指引,启动继续。正常或禁用的 shim 不会检查。不自动寻找其他运行时。 首次计划任务安装会在此检查前注册任务并认领配置根目录;被拒绝时会回滚新注册,已认领的根目录保留以便重试。
-> 所选 Bun 运行时无法在配置目录内创建并删除目录。Windows 应用策略可能禁止来自此可执行文件位置的写入。在启动 `ocx` 前,将 `OPENCODEX_BUN_PATH` 设置为策略允许的可信 Bun 可执行文件,或通过 `npm install -g @bitkyc08/opencodex` 重新安装后重试。未选择其他运行时。
+> 所选 Bun 运行时无法在配置目录内创建并删除目录。Windows 应用策略可能禁止来自此可执行文件位置的写入。在启动 `ocx` 前,将 `OPENCODEX_BUN_PATH` 设置为策略允许的可信 Bun 可执行文件,或通过 `npm install -g --allow-scripts=bun @bitkyc08/opencodex` 重新安装后重试。未选择其他运行时。
diff --git a/docs-site/src/content/docs/zh-tw/getting-started/for-agents.md b/docs-site/src/content/docs/zh-tw/getting-started/for-agents.md
index 174f4447fcc..1438fab0353 100644
--- a/docs-site/src/content/docs/zh-tw/getting-started/for-agents.md
+++ b/docs-site/src/content/docs/zh-tw/getting-started/for-agents.md
@@ -10,7 +10,7 @@ description: 從 agent 驅動或腳本化終端機安裝並操作 opencodex,
安裝已發布的套件,並確認 `ocx` 在 `PATH` 上:
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
ocx --version
```
diff --git a/docs-site/src/content/docs/zh-tw/getting-started/installation.md b/docs-site/src/content/docs/zh-tw/getting-started/installation.md
index f954cb7175a..1e2e1018e4b 100644
--- a/docs-site/src/content/docs/zh-tw/getting-started/installation.md
+++ b/docs-site/src/content/docs/zh-tw/getting-started/installation.md
@@ -18,7 +18,7 @@ vision 和網路搜尋 sidecar 也可以使用你的 ChatGPT 登入憑證。
## 安裝
```bash
-npm install -g @bitkyc08/opencodex
+npm install -g --allow-scripts=bun @bitkyc08/opencodex
```
:::note[npm 攔截了 bun postinstall?]
@@ -50,7 +50,7 @@ GPT-5.6 Sol/Terra/Luna 目錄資訊,但這些條目本身不會授予上游模
opencodex 建置時,才需要使用 preview 渠道:
```bash
-npm install -g @bitkyc08/opencodex@preview
+npm install -g --allow-scripts=bun @bitkyc08/opencodex@preview
ocx update --tag preview
```
diff --git a/docs-site/src/content/docs/zh-tw/troubleshooting/windows-memory.md b/docs-site/src/content/docs/zh-tw/troubleshooting/windows-memory.md
index 58f1d32c023..bc8cdf7e7e3 100644
--- a/docs-site/src/content/docs/zh-tw/troubleshooting/windows-memory.md
+++ b/docs-site/src/content/docs/zh-tw/troubleshooting/windows-memory.md
@@ -44,4 +44,4 @@ opencodex 內嵌 Bun runtime(目前為 **1.3.14**)。記憶體成長由已
Windows 服務安裝、修復及 Codex shim 安裝、更新會檢查所選執行檔能否在 OpenCodex 設定根目錄內建立並移除目錄。這是寫入政策檢查,而非記憶體修復。失敗時會在停止服務、下載、暫存以及寫入權杖或啟動器前拒絕操作。shim 自動修復會延後並顯示指引,啟動繼續。正常或停用的 shim 不會檢查。不自動尋找其他 runtime。 首次排程安裝會在此檢查前登錄工作並認領設定根目錄;被拒絕時會復原新登錄,已認領的根目錄保留以便重試。
-> 所選 Bun runtime 無法在設定目錄內建立並移除目錄。Windows 應用程式政策可能禁止來自此執行檔位置的寫入。在啟動 `ocx` 前,將 `OPENCODEX_BUN_PATH` 設為政策允許的可信 Bun 執行檔,或以 `npm install -g @bitkyc08/opencodex` 重新安裝後重試。未選擇其他 runtime。
+> 所選 Bun runtime 無法在設定目錄內建立並移除目錄。Windows 應用程式政策可能禁止來自此執行檔位置的寫入。在啟動 `ocx` 前,將 `OPENCODEX_BUN_PATH` 設為政策允許的可信 Bun 執行檔,或以 `npm install -g --allow-scripts=bun @bitkyc08/opencodex` 重新安裝後重試。未選擇其他 runtime。
diff --git a/readme/README.fr.md b/readme/README.fr.md
index 1a6820fbd91..fcb05695ccf 100644
--- a/readme/README.fr.md
+++ b/readme/README.fr.md
@@ -15,7 +15,7 @@