# copencode **Repository Path**: zhushizhang/copencode ## Basic Information - **Project Name**: copencode - **Description**: 机器简易版模型工具,内置免费大模型 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-10 - **Last Updated**: 2026-03-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # copencode A tiny cross-platform TUI coding shell for Qianfan model. ## Features - Minimal dependency footprint (Node.js built-ins only) - macOS / Linux / Windows support (Node.js 18+) - Startup asks for API Key directly - OpenAI-compatible request format for Qianfan coding model ## Quick start ```bash cd copencode node copencode.js ``` ## One-line install (curl style) ```bash curl -fsSL https://gitee.com/zhushizhang/copencode/raw/master/install.sh | bash ``` Or with `wget`: ```bash wget -qO- https://gitee.com/zhushizhang/copencode/raw/master/install.sh | bash ``` Or install as command: ```bash cd copencode npm link copencode ``` ## Runtime usage Start app and enter your API Key when prompted: ```bash node copencode.js ``` If installed by script: ```bash copencode ``` You can also pass it by environment variable: ```bash COPENCODE_API_KEY='your-real-api-key' node copencode.js ``` ## Commands - `/help` - `/setkey [apikey]` set or replace API key (`/setkey` will prompt hidden input) - `/clear` - `/pwd` - `/cd ` - `/history` - `/exit` ## Notes - Session log file: `~/.copencode/history.log` - Provider endpoint: `https://qianfan.baidubce.com/v2/coding/chat/completions` - Primary model: `qianfan-code-latest`