@bash0816/opencode-termux 2.0.18 → 2.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# @bash0816/opencode-termux
|
|
2
|
+
|
|
3
|
+
[OpenCode](https://opencode.ai/) CLI for Termux on Android ARM64.
|
|
4
|
+
|
|
5
|
+
Termux 向け OpenCode CLI wrapper package です。
|
|
6
|
+
|
|
7
|
+
> **This project is not affiliated with, endorsed by, or sponsored by SST / the OpenCode project.**
|
|
8
|
+
> このプロジェクトは OpenCode プロジェクト(SST)と無関係です。公式から承認・提携・保証されたものではありません。
|
|
9
|
+
|
|
10
|
+
OpenCode is released under the [MIT License](https://github.com/anomalyco/opencode/blob/main/LICENSE).
|
|
11
|
+
This wrapper simply downloads the official upstream binary and adjusts it to run on Termux/Android; it does not modify OpenCode's own functionality.
|
|
12
|
+
|
|
13
|
+
OpenCode 本体は [MIT ライセンス](https://github.com/anomalyco/opencode/blob/main/LICENSE) で公開されています。
|
|
14
|
+
本ラッパーは公式 upstream バイナリをダウンロードし、Termux/Android 上で動作するよう調整するのみで、OpenCode 自体の機能を変更するものではありません。
|
|
15
|
+
|
|
16
|
+
## What this does / 仕組み
|
|
17
|
+
|
|
18
|
+
This package downloads the official OpenCode CLI binary from npm
|
|
19
|
+
([`@opencode/cli-linux-arm64`](https://www.npmjs.com/package/@opencode/cli-linux-arm64))
|
|
20
|
+
at the user's explicit request, then rewrites the binary's ELF interpreter (using
|
|
21
|
+
[`patchelf`](https://github.com/NixOS/patchelf)) so it can be executed directly on
|
|
22
|
+
Termux/Android using a glibc runtime, instead of Android's default bionic libc.
|
|
23
|
+
|
|
24
|
+
このパッケージはユーザーの明示的な操作により、npm から OpenCode CLI の公式バイナリ
|
|
25
|
+
([`@opencode/cli-linux-arm64`](https://www.npmjs.com/package/@opencode/cli-linux-arm64))
|
|
26
|
+
をダウンロードし、[`patchelf`](https://github.com/NixOS/patchelf) を使って ELF
|
|
27
|
+
インタープリタを書き換えることで、Android 標準の bionic libc ではなく glibc ランタイム上で
|
|
28
|
+
直接実行できるようにします。
|
|
29
|
+
|
|
30
|
+
- **No OpenCode binaries or modified binaries are distributed by this package.**
|
|
31
|
+
- **このパッケージは OpenCode バイナリや改変済みバイナリを配布しません。**
|
|
32
|
+
- The rewrite is intended solely for Termux/Android runtime interoperability.
|
|
33
|
+
It does not bypass authentication, licensing, payment, access controls, or usage restrictions.
|
|
34
|
+
- 書き換えの目的は Termux/Android 実行環境への互換性確保のみです。
|
|
35
|
+
認証・ライセンス・課金・アクセス制御・利用制限の回避を意図するものではありません。
|
|
36
|
+
|
|
37
|
+
## Prerequisites / 前提条件
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
pkg install glibc-repo && pkg install glibc
|
|
41
|
+
pkg install patchelf
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Install / インストール
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
npm install -g @bash0816/opencode-termux
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
On first run, the official OpenCode binary will be downloaded from npm and patched
|
|
51
|
+
for this device. Subsequent runs reuse the cached, verified installation.
|
|
52
|
+
|
|
53
|
+
初回起動時に npm から公式 OpenCode バイナリがダウンロードされ、このデバイス向けに
|
|
54
|
+
パッチが適用されます。以降の起動ではキャッシュ済みの検証済みインストールを再利用します。
|
|
55
|
+
|
|
56
|
+
**Tested with OpenCode 2.0.18 on Termux/Android ARM64.**
|
|
57
|
+
|
|
58
|
+
**OpenCode 2.0.18・Termux/Android ARM64 で動作確認済み。**
|
|
59
|
+
|
|
60
|
+
## Update / 更新
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
npm update -g @bash0816/opencode-termux
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
This package downloads the specific verified upstream version pinned in
|
|
67
|
+
`config/opencode-verified-versions.json`.
|
|
68
|
+
|
|
69
|
+
このパッケージは `config/opencode-verified-versions.json` に固定された検証済み
|
|
70
|
+
upstream バージョンをダウンロードします。
|
|
71
|
+
|
|
72
|
+
## Authentication / 認証
|
|
73
|
+
|
|
74
|
+
Before using OpenCode, log in to a provider (e.g. the free OpenCode Console account,
|
|
75
|
+
which unlocks a set of free models):
|
|
76
|
+
|
|
77
|
+
OpenCode を使う前に、プロバイダへログインしてください(例: 無料モデル群が使える
|
|
78
|
+
OpenCode Console アカウント):
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
opencode auth login opencode
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
This starts a device-code flow: it prints a one-time code and a URL
|
|
85
|
+
(`https://opencode.ai/console/device?user_code=...`). Open the URL in any browser
|
|
86
|
+
(on this device or another), enter the code if prompted, and complete the login.
|
|
87
|
+
Once connected, run `opencode auth list` to see saved credentials.
|
|
88
|
+
|
|
89
|
+
これはデバイスコード方式の認証フローです。ワンタイムコードと URL
|
|
90
|
+
(`https://opencode.ai/console/device?user_code=...`) が表示されるので、
|
|
91
|
+
任意の端末のブラウザで URL を開き、必要であればコードを入力してログインを
|
|
92
|
+
完了してください。接続後は `opencode auth list` で保存済みの認証情報を確認できます。
|
|
93
|
+
|
|
94
|
+
To use a different provider (Anthropic, OpenAI, etc.), see
|
|
95
|
+
`opencode auth login --help` and the
|
|
96
|
+
[OpenCode provider documentation](https://opencode.ai/docs/providers/).
|
|
97
|
+
|
|
98
|
+
他のプロバイダ(Anthropic・OpenAI 等)を使う場合は `opencode auth login --help` と
|
|
99
|
+
[OpenCode プロバイダ ドキュメント](https://opencode.ai/docs/providers/) を参照してください。
|
|
100
|
+
|
|
101
|
+
## Usage / 使い方
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
opencode [command] [options]
|
|
105
|
+
opencode run "your prompt here"
|
|
106
|
+
opencode run --model opencode/<model-id> "your prompt here"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Run `opencode models` to list available models (includes several free models via
|
|
110
|
+
OpenCode Console, subject to change).
|
|
111
|
+
|
|
112
|
+
利用可能なモデル一覧は `opencode models` で確認できます(OpenCode Console 経由の
|
|
113
|
+
無料モデルも複数含まれますが、提供内容は変更される可能性があります)。
|
|
114
|
+
|
|
115
|
+
For available commands, see the [OpenCode documentation](https://opencode.ai/docs/).
|
|
116
|
+
|
|
117
|
+
利用可能なコマンドは [OpenCode ドキュメント](https://opencode.ai/docs/) を参照してください。
|
|
118
|
+
|
|
119
|
+
## License / ライセンス
|
|
120
|
+
|
|
121
|
+
This package (`opencode-termux`) is licensed under [GPL-3.0-only](./LICENSE).
|
|
122
|
+
|
|
123
|
+
このパッケージ (`opencode-termux`) は [GPL-3.0-only](./LICENSE) ライセンスです。
|
|
124
|
+
|
|
125
|
+
**The GPL does not apply to the OpenCode binary itself.** The OpenCode binary
|
|
126
|
+
downloaded at runtime is released by its authors under the MIT License and is
|
|
127
|
+
subject to OpenCode's own terms.
|
|
128
|
+
|
|
129
|
+
**GPL は OpenCode バイナリ自体には適用されません。** 実行時にダウンロードされる
|
|
130
|
+
OpenCode バイナリは、その作者により MIT ライセンスで公開されており、OpenCode
|
|
131
|
+
自体の利用条件に従います。
|
|
132
|
+
|
|
133
|
+
## Disclaimer / 免責事項
|
|
134
|
+
|
|
135
|
+
Users are responsible for ensuring that their use of OpenCode complies with
|
|
136
|
+
OpenCode's [Terms of Service](https://opencode.ai/legal/terms-of-service) and
|
|
137
|
+
applicable laws.
|
|
138
|
+
|
|
139
|
+
OpenCode の利用条件・適用法令への適合性はユーザー自身が確認してください。
|
|
140
|
+
[OpenCode 利用規約](https://opencode.ai/legal/terms-of-service) を参照してください。
|
|
141
|
+
|
|
142
|
+
If a rights holder or platform operator raises a substantiated concern regarding
|
|
143
|
+
this package, we will promptly review it and may remove or disable the affected
|
|
144
|
+
functionality.
|
|
145
|
+
|
|
146
|
+
権利者またはプラットフォーム運営者から具体的な懸念が示された場合、
|
|
147
|
+
内容を確認し、必要に応じて公開停止・機能停止・修正を行います。
|
|
148
|
+
|
|
149
|
+
## Compatibility / 動作環境
|
|
150
|
+
|
|
151
|
+
- **Platform / プラットフォーム**: Android (Termux)
|
|
152
|
+
- **Architecture / アーキテクチャ**: ARM64 (aarch64)
|
|
153
|
+
- **Monitored upstream package / 監視対象パッケージ**: `@opencode/cli-linux-arm64`
|
|
154
|
+
(v2 series). Not to be confused with the separate `opencode-ai` npm package (v1 series).
|
|
155
|
+
`opencode-ai`(v1系列)という別系統のnpmパッケージとは異なりますのでご注意ください。
|
|
156
|
+
|
|
157
|
+
## Known limitations / 既知の制限
|
|
158
|
+
|
|
159
|
+
- Upstream OpenCode updates may require a compatibility update to this package.
|
|
160
|
+
上流 OpenCode のアップデートにより本パッケージの更新が必要になる場合があります。
|
|
161
|
+
- If the downloaded binary fails verification, the tool will exit safely.
|
|
162
|
+
ダウンロードしたバイナリが検証に失敗した場合、安全に終了します。
|
|
163
|
+
- This package does not currently provide an automatic cleanup command for old
|
|
164
|
+
cached installs under `~/.opencode-termux/installs/`; old versions may need to
|
|
165
|
+
be removed manually to reclaim disk space.
|
|
166
|
+
`~/.opencode-termux/installs/` 配下の古いキャッシュ済みインストールを自動削除する
|
|
167
|
+
コマンドは現時点で提供していません。ディスク容量が必要な場合は手動で削除してください
|
|
168
|
+
(他の OpenCode セッションが実行中でないことを確認の上で)。
|
|
169
|
+
|
|
170
|
+
## Rollback / ロールバック手順
|
|
171
|
+
|
|
172
|
+
If a critical issue is discovered after promoting a new version to `latest`, you can
|
|
173
|
+
immediately roll back to the previous version using the following command:
|
|
174
|
+
|
|
175
|
+
新バージョン昇格後に重大な問題が発見された場合、以下のコマンドで前バージョンに
|
|
176
|
+
ロールバックできます:
|
|
177
|
+
|
|
178
|
+
```sh
|
|
179
|
+
npm dist-tag add @bash0816/opencode-termux@<previous known-good version> latest
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
This reverts the `latest` tag to a previous known-good version and will restore the
|
|
183
|
+
previous stable release for all new installations and updates.
|
|
184
|
+
|
|
185
|
+
これにより `latest` タグを前のステーブル版に戻し、新規インストール・更新時に前の
|
|
186
|
+
ステーブル版を配布します。
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
3
|
-
"download_url": "https://registry.npmjs.org/@opencode/cli-linux-arm64/-/cli-linux-arm64-2.0.
|
|
4
|
-
"sha256_tar": "
|
|
5
|
-
"integrity": "sha512-
|
|
2
|
+
"version": "2.0.19",
|
|
3
|
+
"download_url": "https://registry.npmjs.org/@opencode/cli-linux-arm64/-/cli-linux-arm64-2.0.19.tgz",
|
|
4
|
+
"sha256_tar": "fd2866cd854dc15058ed0fe6c31a6653dd12efeb9664003a9a2739f3fcf3fd21",
|
|
5
|
+
"integrity": "sha512-i0HOHovWgm8QK6MzEos6V5rDj3dHOOafUdP3cNH4Mc4djULWMAQwfNoygp6QXmlWXatVgUzQt65XHkdCF7VAPA==",
|
|
6
6
|
"patchelf_verified": true,
|
|
7
7
|
"source_repo": "anomalyco/opencode",
|
|
8
8
|
"upstream_package": "@opencode/cli-linux-arm64",
|
|
9
|
-
"detected_date": "2026-09-
|
|
9
|
+
"detected_date": "2026-09-29",
|
|
10
10
|
"status": "pending_device_verification"
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
3
|
-
"download_url": "https://registry.npmjs.org/@opencode/cli-linux-arm64/-/cli-linux-arm64-2.0.
|
|
4
|
-
"sha256_tar": "
|
|
5
|
-
"integrity": "sha512-
|
|
2
|
+
"version": "2.0.19",
|
|
3
|
+
"download_url": "https://registry.npmjs.org/@opencode/cli-linux-arm64/-/cli-linux-arm64-2.0.19.tgz",
|
|
4
|
+
"sha256_tar": "fd2866cd854dc15058ed0fe6c31a6653dd12efeb9664003a9a2739f3fcf3fd21",
|
|
5
|
+
"integrity": "sha512-i0HOHovWgm8QK6MzEos6V5rDj3dHOOafUdP3cNH4Mc4djULWMAQwfNoygp6QXmlWXatVgUzQt65XHkdCF7VAPA==",
|
|
6
6
|
"patchelf_verified": true,
|
|
7
7
|
"source_repo": "anomalyco/opencode",
|
|
8
8
|
"upstream_package": "@opencode/cli-linux-arm64",
|
|
9
|
-
"verified_date": "2026-09-
|
|
9
|
+
"verified_date": "2026-09-30",
|
|
10
10
|
"release_state": "stable",
|
|
11
|
-
"notes": "Promoted via promote-opencode-candidate.js --confirm-device-verified on 2026-09-
|
|
11
|
+
"notes": "Promoted via promote-opencode-candidate.js --confirm-device-verified on 2026-09-30. Patchelf interpreter static check recorded as verified. Device/functional verification confirmed by the operator invoking this script with --confirm-device-verified."
|
|
12
12
|
}
|