Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCode-CN-NodeJS logo

Open-Source AI Coding Agent · Pure Node.js Edition · Old-Hardware Friendly

Release Runtime Compatibility i18n IME

English | 简体中文


🎯 Project Overview

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

🚀 Quick Start

Requirements

  • Node.js 18.0.0 or higher (22.x LTS recommended)
  • npm 9+ or pnpm 8+
  • No Bun! No Docker! No special CPU instructions!

Installation

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

Systemd Service (Production)

[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.target

🏗️ Architecture

Dual-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.

Differences from Upstream

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

🔧 Old Hardware Compatibility

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.


📜 License

Same as upstream OpenCode. See LICENSE.


GitHub Repository

About

OpenCode-CN-NodeJS — Pure Node.js runtime, old-hardware compatible, fully Chinese-localized CLI

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages