Open-Source AI Coding Agent · Pure Node.js Edition · Old-Hardware Friendly
OpenCode-CN-NodeJS is a deeply customized China-region fork of OpenCode, with these key differentiators:
| Feature | Description |
|---|---|
| 🟢 Pure Node.js Runtime | No Bun required — just npm install + npx tsx to start |
| 💻 Old Hardware Compatible | Low memory footprint, no AVX/AVX2 instruction set requirement, runs on vintage CPUs |
| 🇨🇳 Fully Chinese Localized | 100% Chinese UI, AI conversations, error messages, and status info |
| ⌨️ Chinese CLI | All terminal output, interactive prompts, and help docs in Simplified Chinese |
| 🔌 Plug & Play | No special system dependencies — consistent on Linux/Windows/macOS |
- Node.js 18.0.0 or higher (22.x LTS recommended)
- npm 9+ or pnpm 8+
- No Bun! No Docker! No special CPU instructions!
git clone https://github.com/xusu-ai/opencode-cn-nodejs.git
cd opencode-cn-nodejs
npm install
npx tsx --conditions=node --tsconfig tsconfig.json packages/opencode/src/index.ts serve --port 3000[Unit]
Description=OpenCode-CN-NodeJS Server
After=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/path/to/opencode-cn-nodejs/packages/opencode
ExecStart=/path/to/opencode-cn-nodejs/node_modules/.bin/tsx --conditions=node --tsconfig tsconfig.json ./src/index.ts serve --port 8099 --hostname 0.0.0.0
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.targetDual-runtime dispatch via package.json imports:
#hono → adapter.node.ts (Node.js — default) ✅
#db → db.node.ts (Node.js — default) ✅
#pty → pty.node.ts (Node.js — default) ✅
tsconfig.json sets "customConditions": ["node"] to always prefer Node.js adapters.
| Aspect | Upstream | OpenCode-CN-NodeJS |
|---|---|---|
| Runtime | Bun (required) | Node.js + tsx |
| Language | English | 100% Chinese |
| Server | Bun.serve | Node HTTP |
| Install | curl script | git clone + npm |
Works on any machine with Node.js 18+:
- Intel Core 2 Duo / pre-4th-gen ✅
- AMD Phenom / Bulldozer ✅
- 1C1G cloud VPS / Raspberry Pi ✅
- OpenVZ / LXC containers ✅
No AVX/AVX2 required — no native addon dependency chains.
Same as upstream OpenCode. See LICENSE.