codewhale
v0.8.44
Published
Install and run CodeWhale, the agentic terminal for open-source and open-weight coding models, from GitHub release artifacts.
Maintainers
Readme
codewhale
Install and run CodeWhale, the agentic terminal for open-source and open-weight coding models, from GitHub release artifacts.
Previously published as
deepseek-tui. Seedocs/REBRAND.mdin the upstream repository for the migration notes; the legacydeepseek-tuinpm package remains a deprecation shim through the v0.8.x transition.
Install
npm install -g codewhale
# or
pnpm add -g codewhaleFor project-local usage:
npm install codewhale
npx codewhale --helppostinstall tries to download platform binaries into bin/downloads/ and
exposes codewhale and codewhale-tui commands. If GitHub release assets are
temporarily unreachable, install continues and the wrapper retries the download
on first run.
First run
codewhale login --api-key "YOUR_DEEPSEEK_API_KEY"
codewhale doctor
codewhaleThe codewhale facade and codewhale-tui binary share ~/.deepseek/config.toml
for DeepSeek auth and default model settings. Common TUI commands are available
directly through the facade, including codewhale doctor, codewhale models,
codewhale sessions, and codewhale resume --last.
The app talks to DeepSeek's documented OpenAI-compatible Chat Completions API.
Set DEEPSEEK_BASE_URL only if you need the China endpoint or DeepSeek beta
features such as strict tool mode, chat prefix completion, or FIM completion.
NVIDIA NIM-hosted DeepSeek V4 Pro is also supported:
codewhale auth set --provider nvidia-nim --api-key "YOUR_NVIDIA_API_KEY"
codewhale --provider nvidia-nimFor a single process, set DEEPSEEK_PROVIDER=nvidia-nim and NVIDIA_API_KEY
or NVIDIA_NIM_API_KEY (with DEEPSEEK_API_KEY as a compatibility fallback).
The NIM default model is deepseek-ai/deepseek-v4-pro and the default base URL
is https://integrate.api.nvidia.com/v1. With --provider nvidia-nim,
--model deepseek-v4-flash maps to deepseek-ai/deepseek-v4-flash.
Supported platforms
Prebuilt binaries for the GitHub release are downloaded automatically:
- Linux x64
- Linux arm64 (v0.8.8+)
- macOS x64 / arm64
- Windows x64
Other platform/architecture combinations (musl, riscv64, FreeBSD, …) aren't
shipped as prebuilts. Unsupported platforms, checksum failures, and glibc
compatibility problems still fail with a clear error pointing you at
cargo install codewhale-cli codewhale-tui --locked and the full
docs/INSTALL.md
build-from-source guide.
Configuration
- Default binary version comes from
codewhaleBinaryVersioninpackage.json(withdeepseekBinaryVersionas a backward-compat fallback). - Set
DEEPSEEK_TUI_VERSIONorDEEPSEEK_VERSIONto override the release version. - Set
DEEPSEEK_TUI_GITHUB_REPOorDEEPSEEK_GITHUB_REPOto override the source repo (defaults toHmbown/CodeWhale). - Set
DEEPSEEK_TUI_RELEASE_BASE_URLto use an internal or mirrored release-asset directory when GitHub Releases is unavailable. The directory must containcodewhale-artifacts-sha256.txtand the platform binaries. - Set
DEEPSEEK_TUI_FORCE_DOWNLOAD=1to force download even when the cached binary is already present. - Set
DEEPSEEK_TUI_DISABLE_INSTALL=1to skip install-time download. - Set
DEEPSEEK_TUI_OPTIONAL_INSTALL=1to make install-time retryable download failures warn and exit0instead of failingnpm install.
Release integrity
npm publishruns a release-asset check to ensure all required binary assets exist for the target GitHub release before publishing.- Install-time downloads are verified against the release checksum manifest before the wrapper marks them executable.
