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

deepcode-v4

v1.3.2

Published

DeepSeek V4 proxy for Claude Code. Anthropic-format streaming, tool-calling, prompt-caching, and live token/cost statusline.

Downloads

870

Readme

DeepCode V4

🇪🇸 Leer en Español

DeepCode V4 in action

DeepSeek V4 Pro + Claude Code + Local Vision. A single command. The ultimate proxy that makes DeepSeek work seamlessly as if it were Claude — with native tool-calling, 1M context tokens, and image support via local LLMs. All for a fraction of the cost.

✨ Why DeepCode?

  • 👁️ Vision for DeepSeek — DeepSeek doesn't support images. DeepCode does. It auto-detects Ollama or LM Studio and gives DeepSeek eyes using a local vision model. Zero configuration required.
  • 🧠 Native Thinking Mode Support — Renders DeepSeek's reasoning (R1) directly into Claude Code's collapsible ∴ Thinking… block. Supports chained tool-calls without losing context.
  • 🎛️ Native Effort Control — Use the /effort low or /effort max commands in the console; the proxy translates Anthropic's tokens to DeepSeek's engine in real-time.
  • 🔧 100% compatible with Claude Code — Same flags, same tools, same environment. Use deepcode exactly as you would use claude.
  • 💰 95% cheaper — DeepSeek V4 Pro costs ~$0.04 for every $0.90 you would spend on Claude Sonnet.
  • 🔄 Continue Claude sessions — Ran out of tokens? Run deepcode --resume and pick up right where you left off.
  • 📊 Real-time Statusline — Track tokens consumed and direct costs right in the bottom bar of Claude Code.

📦 Prerequisites

Before installing DeepCode, make sure you have:

  1. Claude Code installed and working on your system. You can install it following the official Anthropic guide.
  2. DeepSeek V4 API Key — Get your key at platform.deepseek.com. DeepCode uses this API key to route requests to DeepSeek V4 Pro.

[!IMPORTANT] Without Claude Code installed, deepcode will not run. Without a valid DeepSeek API key, requests cannot be processed.

🚀 Installation

npm install -g deepcode-v4

On the first launch, if no DEEPSEEK_API_KEY is found, DeepCode prompts for it in the console (masked input), validates the format (sk-...), and saves it globally to ~/.deepcode-v4/.env. You only do this once — works across all projects, no per-project .env required.

deepcode            # First run → prompts for API key, then starts
deepcode --setup    # Reconfigure / replace the saved API key

Get your key at platform.deepseek.com/api_keys.

📋 Usage

deepcode                              # New session
deepcode "create an Express REST API" # Direct prompt
deepcode --setup                      # Configure or replace global DEEPSEEK_API_KEY
deepcode --no-vision                  # DeepCode specific: Disable auto-detected vision

# --- Native Claude Code Flags ---
# DeepCode acts as a transparent wrapper, so all native Claude flags work flawlessly:
deepcode --resume                     # Open interactive picker to resume a previous session
deepcode --resume <session-id>        # Continue a specific previous session directly
deepcode --dangerously-skip-permissions  # Autonomous mode (auto-approve all tool uses)

Any other claude flag works perfectly with deepcode.

Native in-console commands:

  • /effort low or /effort max: Control DeepSeek's thinking depth and time on the fly.
  • /model sonnet: Instantly switch to the ultra-fast deepseek-v4-flash version.

⚙️ Configuration

The interactive setup at first launch covers the common case. For advanced setups, DEEPSEEK_API_KEY is resolved in this precedence order:

  1. Shell environment variable (export DEEPSEEK_API_KEY=sk-...)
  2. .env file walking up from the current working directory (per-project override)
  3. ~/.deepcode-v4/.env (global, written by deepcode --setup)

Run deepcode --setup anytime to replace the saved global key. Check .env.example for all optional vars (model overrides, retry, timeouts, telemetry).

⚠️ Security: Your API key stays on your local machine. The global file ~/.deepcode-v4/.env is created with 0600 permissions on POSIX. If you put a .env inside a project, remember to add .env to your .gitignore.

👁️ Local Vision (Auto-detected)

DeepSeek cannot see images. DeepCode gives it eyes.

When you run deepcode, the proxy automatically detects if you have a local vision LLM running. If it finds one, it intercepts images, converts them into highly detailed textual descriptions, and passes them to DeepSeek so it can reason about them. If no local LLM is found, it falls back to normal text mode.

Enable vision (3 steps):

  1. Install Ollama
  2. Run ollama pull qwen2-vl:7b
  3. Run deepcode — vision is automatically activated!

Recommended Models: | Model | VRAM | Quality | |--------|------|---------| | qwen2-vl:7b | ~5 GB | Very Good | | qwen3-vl:8b | ~6 GB | Excellent | | llava:7b | ~5 GB | Good | | moondream | ~2 GB | Lightweight |

It also supports LM Studio (localhost:1234).

📜 License

MIT