npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@minimaxcode/cli

v1.0.37

Published

DeepSeekCode TypeScript CLI

Readme

@deepseekcode/cli

npm version License: Proprietary Node version

DeepSeekCode CLI — a TypeScript-first AI coding agent with an interactive terminal UI, a built-in web UI, and a local HTTP/WS runtime. It starts a full agent core in-process, opens an Ink (React-for-terminal) interface in your terminal, and serves a companion web UI you can use for configuration and remote access.

  • TUI — interactive, keyboard-first coding agent in your terminal
  • Local runtime — spins up an in-process server (HTTP + WebSocket), no separate install needed
  • Web UI — configuration & model management at http://localhost:8080
  • Non-interactive modesexec, codeview, test-fix for scripts & CI
  • Multi-theme — dark / light / nord / dracula / monokai / one-dark / tokyo-night

Requires Node.js >= 18.


Install

npm install -g @deepseekcode/cli

Or with your favorite package manager:

# pnpm
pnpm add -g @deepseekcode/cli

# yarn
yarn global add @deepseekcode/cli

# bun
bun add -g @deepseekcode/cli

This installs two commands: dscode (short) and deepseekcode (full name).

Quick Start

dscode

That's it. The CLI starts the local agent runtime and opens the interactive terminal. On first run (no provider configured) it prints a link to the web UI where you can set up your LLM provider and model:

# model/provider setup page (also served by the CLI)
# → http://localhost:8080/#models

If your terminal's stdin isn't a TTY (e.g. a script or CI pipeline), the CLI skips the TUI and runs headless — the web UI stays available at the printed URL.

Connect to an existing backend instead of starting a local one:

dscode run --backend http://localhost:8080

Resume your last session (or a specific one):

dscode --resume          # last session
dscode --resume <id>     # specific session

CLI Commands

| Command | Description | |---------|-------------| | dscode / dscode start | Start local runtime + interactive TUI (also serves Web UI + API) | | dscode start --auto | Start with auto-approval mode enabled | | dscode run --backend URL | Connect to an existing backend instead of starting one | | dscode exec <command> | Execute a command non-interactively (JSONL output) | | dscode exec --file <path> | Read the command from a file | | dscode codeview | AI code review — bugs + unwired features (JSON output) | | dscode review | Review current code changes (legacy) | | dscode test-fix | Run the auto-fix test loop | | dscode --resume [id] | Resume the last session, or a specific one | | dscode version | Print version |

Run dscode --help (or -h) for the full list.

Non-interactive examples

# Execute a command, get JSONL results
dscode exec "fix the failing test in src/utils"

# Plain text output, command from file
dscode exec --file ./task.txt --text

# AI code review focused on security, write report to file
dscode codeview --focus security --output review.json

# Auto-fix test loop (max 5 retries, analyze only)
dscode test-fix --packages packages/cli --retries 5 --dry-run

Interactive Commands

Inside the TUI, use /help for the full list (most commands have Chinese aliases). Highlights:

| Command | Action | |---------|--------| | /help | Show all commands | | /model [name] | Open model picker or switch model directly | | /theme [name] | Show or change terminal theme | | /plan | Toggle plan mode (review before executing) | | /auto | Toggle auto-approval mode | | /mode <mode> | Cycle/set mode: act · auto-act · plan · auto-plan · goal · auto-goal | | /goal | Set goal-directed mode | | /thinking | Toggle think mode on/off | | /context | Show current conversation state | | /sessions [id] / /resume [id] | List history / switch session | | /tasks | Toggle sub-task output panel | | /undo [list] | Undo the most recent file change | | /clear | Start a new session (current session is saved, resumable via /sessions) | | /mcp <action> | Manage MCP servers | | /skills | Insert a skill | | /trace <traceId> | Query a trace by id | | /stop /pause /continue | Control AI generation | | /exit | Exit |

Options

| Option | Description | |--------|-------------| | -p, --port <port> | HTTP port (default: first available from 8080) | | --ws-port <port> | WebSocket port (default: HTTP port + 1) | | -w, --workspace <dir> | Workspace directory (default: current directory) | | -F, --force | Kill an existing process on the target port before starting | | -b, --backend <url> | Backend URL for run mode | | --ws <url> | Override WebSocket URL | | --provider <name> | Provider to use (exec/review) | | --model <name> | Model to use (exec/review) | | --theme <name\|path> | Theme name or JSON theme file path | | --prompt-version <ver> | Prompt template version | | --timeout <ms> | Per-attempt LLM timeout (default: 300000 = 5 min) | | --stall-threshold <ms> | Stream stall detection threshold (default: 240000 = 4 min) | | --no-update-check | Disable the startup new-version notice | | --no-auto-update | Disable background auto-update (notice still shown) |

Configuration

The CLI reads ~/.agent/config.yaml:

backend_url: http://localhost:8080
ws_url: ws://localhost:8081/ws
workspace_dir: /path/to/workspace

Provider / model settings are managed through the web UI at http://localhost:8080/#models.

Themes

Set the theme at startup via the DEEPSEEKCODE_THEME env var (or --theme):

| Theme | Env Value | Style | |-------|-----------|-------| | Dark (default) | dark | ANSI named colors, broad compat | | Light | light | Light terminal variant | | Nord | nord | Arctic blue-grey palette | | Dracula | dracula | Dark purple-vibrant | | Monokai | monokai | Classic code editor | | One Dark | one-dark | Atom's iconic dark | | Tokyo Night | tokyo-night | Deep navy + vibrant accents |

DEEPSEEKCODE_THEME=nord dscode
DEEPSEEKCODE_THEME=/path/to/my-theme.json dscode

# Partial overrides on the current theme (JSON)
DEEPSEEKCODE_THEME_COLORS='{"primary":"#ff0000"}' dscode

Switch themes at runtime with /theme [name].

Auto-Update

On startup, dscode checks npm for the latest version asynchronously (non-blocking). When a newer version is found, the CLI automatically reinstalls the global package in the background (npm install -g @deepseekcode/cli@latest); the new version takes effect on the next launch.

  • Only affects global npm installs — source builds and npx/bunx caches are never touched.
  • Disable auto-install (keep the version notice): DEEPSEEKCODE_NO_AUTO_UPDATE=1 or --no-auto-update
  • Disable the check entirely: DEEPSEEKCODE_NO_UPDATE_CHECK=1 or --no-update-check

Environment Variables

| Variable | Description | |----------|-------------| | DEEPSEEKCODE_THEME | Theme name or JSON theme file | | DEEPSEEKCODE_THEME_COLORS | JSON partial color overrides | | DEEPSEEKCODE_HTTP_PORT / DEEPSEEKCODE_WS_PORT | Default HTTP / WebSocket ports | | DEEPSEEKCODE_QUIET=1 | Suppress non-fatal startup warnings | | DEEPSEEKCODE_NO_AUTO_UPDATE=1 | Disable background auto-update | | DEEPSEEKCODE_NO_UPDATE_CHECK=1 | Disable the version check | | DEEPSEEKCODE_FORCE_UTF8=0 | Skip forcing the Windows console to UTF-8 | | DSC_HEAP_LIMIT_MB | Node heap limit hint for large sessions (default: 8192) |

Terminal Verdict Figures

The terminal_figure tool and the Web UI's terminal-verdict button replay captured ANSI bytes through xterm.js and Playwright, then compose a PNG with Python Pillow.

The published package includes the replay/composition scripts and declares its Node dependencies. The host still needs:

  • a Python interpreter with Pillow installed;
  • a Playwright Chromium browser (npx playwright install chromium or the equivalent for your package manager).

If either prerequisite is unavailable, the feature returns an actionable setup error and does not silently write outside the workspace. Capture remains a separate CLI/TUI step because it depends on the specific interface under test.

License

Proprietary — © 2026 DeepSeekCode. All rights reserved.

This software is proprietary and closed source; it is not open source. Copying, modifying, distributing, sublicensing, or selling it requires the prior written permission of the copyright holder.

See LICENSE.md for the full terms.