DEV Community

Andy Stewart
Andy Stewart

Posted on

DeepSeek V4 + Claude Code: Building a "Surgical" Development Workflow with China's Strongest Open-Source Model

The "Vibe Coding" era has evolved. With the release of DeepSeek V4, we finally have an open-source reasoning engine from China that can truly compete with closed-source giants like GPT-4o and Claude 3.5.

As a system architect (founder of deepin and Lazy Cat), I have always pursued determinism and architectural sovereignty. By combining DeepSeek’s logical reasoning with Claude Code’s CLI automation, we can build an AI-native development loop that is extremely low-cost and offers high control.

In just 5 minutes, you can configure this "Terminal Arsenal."

1. The Engine: Installing Claude Code
Claude Code is more than just a chat box; it is an agent running in your terminal that can directly manipulate local files, run tests, and manage Git workflows. It is a true engineering tool.

Microsoft Windows 10:

(1)Press Win+R, type cmd, and open the Command Prompt.

(2)Paste the following code and hit Enter (Note: It must be CMD; PowerShell will not work):
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

(3)After installation, verify it by running:

claude --version

If the version number appears correctly as shown in the screenshots, the installation is successful.

installation

Note: Pay attention to the small grey text regarding adding environment variables.

Unix (macOS and Linux):

(1)Open your terminal emulator. (macOS users: Search for "Terminal" in Spotlight. Linux users: You know the drill.)
(2)Paste and execute the following code (ensure your network can access global services):
curl -fsSL https://claude.ai/install.sh | bash

(3)Verify the installation:
claude --version

claude code

2. The Soul: DeepSeek V4 API

DeepSeek is currently the "smartest brain" with the highest cost-performance ratio globally.

(1) Visit the DeepSeek Open Platform to register.
(2)I recommend an initial top-up (using the flash model is incredibly cheap and perfect for high-frequency iterations).
(3)Generate your API Key.
Safety Tip: I personally store my keys in Bitwarden on my local LCMD private cloud; I refuse to let my data sovereignty go "streaking" on the public cloud.

deepseekn

3. Launch Command: Driving Claude Code with DeepSeek

(1)Using the Anthropic-compatible interface provided by DeepSeek, we can seamlessly swap the underlying model.

(2)Enter the following code in your terminal (replace with your actual Key):

ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic ANTHROPIC_AUTH_TOKEN=sk-你的访问密码 ANTHROPIC_MODEL=deepseek-v4-flash claude

Note: There are spaces in the command—do not miss them. Even a single wrong character will cause it to fail. It is best to copy this into a text editor first, edit it, and then paste it.

4. Real-World Demo: Building a High-Tech Product Page
Once launched, try giving the Agent instructions (using my LC03 project as an example):

"Create an introduction page for LC03. Requirements: White theme, minimalist high-tech aesthetic (Surgical Logic style), optimized for desktop experience. Once written, automatically open the HTML in my browser."

The Workflow: Claude Code will automatically plan the file structure, write the code, and handle permissions. You are only responsible for high-level architectural decisions.

coding

demo

5. Why is this the ultimate solution for the "One-Person Company" (OPC)?
During the development of LightOS (the AI Development All-in-One), I realized that leadership is essentially the quality of the nervous system under pressure. The same applies to tools.

By using Chinese open-source models like DeepSeek, we not only reduce costs but, more importantly, reduce dependency on "external black boxes," keeping the core business logic pure and controlled.

Join the Community
The OPC is no longer a myth. We are deploying AI-generated software directly onto decentralized private hardware, reclaiming digital sovereignty.

Are you ready to move from "writing prompts" to "building systems"? Let's discuss the future of AI infrastructure together.

Top comments (0)