doubao-tui
v0.8.17
Published
Install and run doubao and doubao-tui binaries from GitHub release artifacts.
Maintainers
Readme
doubao-tui
Install and run the doubao and doubao-tui binaries from GitHub release artifacts.
Install
npm install -g doubao-tui
# or
pnpm add -g doubao-tuiFor project-local usage:
npm install doubao-tui
npx doubao-tui --helppostinstall downloads platform binaries into bin/downloads/ and exposes
doubao and doubao-tui commands.
First run
doubao login --api-key "YOUR_ARK_API_KEY"
doubao doctor
doubaoThe doubao facade and doubao-tui binary share ~/.doubao/config.toml
for Doubao auth and default model settings. Common TUI commands are available
directly through the facade, including doubao doctor, doubao models,
doubao sessions, and doubao resume --last.
The app talks to Volcengine Ark's OpenAI-compatible Chat Completions API.
Set DOUBAO_BASE_URL only if you need to point at a compatible gateway.
NVIDIA NIM-hosted Doubao Seed Pro is also supported:
doubao auth set --provider nvidia-nim --api-key "YOUR_NVIDIA_API_KEY"
doubao --provider nvidia-nimFor a single process, set DOUBAO_PROVIDER=nvidia-nim and NVIDIA_API_KEY
or NVIDIA_NIM_API_KEY (with DOUBAO_API_KEY as a compatibility fallback).
The NIM default model is doubao-ai/doubao-seed-2-0-pro-260215 and the default base URL
is https://integrate.api.nvidia.com/v1. With --provider nvidia-nim,
--model doubao-seed-2-0-lite-260428 maps to doubao-ai/doubao-seed-2-0-lite-260428.
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. The postinstall will exit with a clear error pointing
you at cargo install doubao-tui-cli doubao-tui --locked and the full
docs/INSTALL.md
build-from-source guide.
Configuration
- Default binary version comes from
doubaoBinaryVersioninpackage.json. - Set
DOUBAO_TUI_VERSIONorDOUBAO_VERSIONto override the release version. - Set
DOUBAO_TUI_GITHUB_REPOorDOUBAO_GITHUB_REPOto override the source repo (defaults tofreestylefly/Doubao-TUI). - Set
DOUBAO_TUI_FORCE_DOWNLOAD=1to force download even when the cached binary is already present. - Set
DOUBAO_TUI_DISABLE_INSTALL=1to skip install-time download. - Set
DOUBAO_TUI_OPTIONAL_INSTALL=1to make thepostinstallstep warn and exit0on download/extract errors instead of failingnpm install(useful in CI matrices).
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.
- Set
DOUBAO_TUI_RELEASE_BASE_URLto point the installer at a local or staged release-asset directory for smoke tests.
