I.
Domestic large models are booming, with new models emerging constantly. Have you been using them?
Many people are accustomed to existing models and are reluctant to try new ones, which is really a pity.
My approach is to try every new model and experience the latest training results. Moreover, during promotional periods, there are often discounts, so why not take advantage of them?
Today, I'll share how I integrated domestic large models into Claude Code.

As you know, Claude Code is currently the most popular and widely recognized AI terminal with the strongest functionality, but it has restrictions for Chinese users. Therefore, we need to replace its underlying model.
Using my method, it only takes a few minutes to easily and quickly integrate various domestic large models, providing a smooth experience.

Recently, DouBao, owned by ByteDance, has just released its latest programming model Doubao-Seed-Code。
I'll use it to demonstrate and also test this model.
II.
The method I want to share doesn't affect Claude Code itself; it can still be used normally.
That is to say, executing claude command still calls the original Claude Sonnet 4.5 model.
$ claude
I will add a new claude-doubao command, and after executing it, the underlying model will switch.
$ claude-doubao
At this point, Claude Code still has all its functions, but the model used has become Doubao-Seed-Code.
The two commands mentioned above can be used simultaneously without interfering with each other. You can also continue to add other models, each with its own call command, making it the most convenient to test new models.
III.
Before we begin, let me briefly introduceDoubao-Seed-CodeGreat domestic models deserve good promotion.
It belongs to the Doubao Large Model series, and is part of that series.The first model specifically designed for programming reasoningThat is to say, this is ByteDance's first release of a programming model.

According toSWE-bench evaluationIt, combined with Trae, another smart IDE product under ByteDance, ranks first on the SWE-Bench-Verified leaderboard.

I am very interested in this model, mainly for three reasons.
(1) It is the main model promoted by major companies, with guaranteed quality, performance, and response speed.
(2) It natively compatible with Anthropic API, canSeamlessly access Claude Code without any adjustmentsIt's a great alternative to foreign models.
(3) It's cheap, and there is one nowCoding PlanActivities can be paid monthly via API. For general usage, the first month only costs 9.9 yuan (40 yuan/month renewal), and the official promotion is "the lowest price in the country."

Everyone canVolcano ArkTurn on this modelAPI Key, to be used later.

, four,
, let's demonstrate how to quickly integrate Doubao-Seed-Code with Claude Code.
, if you have already installed Claude Code, the following method will not affect your normal usage.
, if you haven't installed Claude Code but want to try its Claude Sonnet 4.5 model, you can follow the official documentation to install it, which doesn't conflict with the following method.
, changing the underlying model only requires three steps and can be done in minutes.
, first step, create a new project directory claude-model and install a separate Claude Code inside.
$ mkdir ~/claude-model $ cd ~/claude-model $ npm init -y $ npm install @anthropic-ai/claude-code
Then, create a subdirectory .claude-doubao to store the Doubao configuration files and cache.
$ mkdir .claude-doubao
Next step, create a subdirectory bin to store executable scripts.
$ mkdir ~/claude-model/bin
Then, add this bin directory to the PATH variable so the system can find the commands inside.
PATH For setting the __JHSNS_SEG_efa7c0ee_58__ variable, on macOS, you can modify the ~/.bash_profile file, and on Linux, you can modify the ~/.bashrc file, roughly like this.
export PATH="$HOME/claude-model/bin:$PATH"
After making the changes, don't forget to restart the terminal.
Third step, in the bin directory created in the previous step, create a directory namedclaude-doubaoThe script used to call the Doubao model.
$ touch ~/claude-model/bin/claude-doubao
In thisclaude-doubaoIn the script, input the following content.
#!/usr/bin/env bash # Wrapper for Claude Code CLI using Doubao API CLAUDE_BIN="$HOME/claude-model/node_modules/.bin/claude" # Inject API credentials export ANTHROPIC_AUTH_TOKEN="YOUR_DOUBAO_API_KEY" export ANTHROPIC_BASE_URL="https://ark.cn-beijing.volces.com/api/compatible" export ANTHROPIC_MODEL="doubao-seed-code-preview-latest" export API_TIMEOUT_MS=3000000 # Keep a separate config dir (optional) export CLAUDE_CONFIG_DIR="$HOME/claude-model/.claude-doubao" exec "$CLAUDE_BIN" "$@"
Note that the API Key in the script above should be filled in with your own obtained Key. Also, the model name and URL may change, so it's best to check the latest official documentation.
Then, make it an executable script.
$ chmod +x ~/claude-model/bin/claude-doubao
That completes all the steps, and you can start using it.
Let's test it first to see if Claude Code is working properly.
$ claude-doubao --version

From now on, when calling the Doubao-Seed-Code model, useclaude-doubaoCommand; invoke the original Claude Code, useclaudeCommand.
# 调用 Doubao-Seed-Code $ claude-doubao # 调用原始模型 $ claude
The method above is general and other models can also be added this way.
V.
Next, we will use Claude Code to call the Doubao-Seed-Code model and test its performance.
Back in the day, there was a famous game called "Space Invaders," which most of us have played. It's where you shoot bullets from a fighter jet to take down an alien fleet.

I let Doubao-Seed-Code generate this game.
First, create a new project directoryspace-invaders, Start Claude Code in this directory (usingclaude-doubaoCommand).
$ mkdir space-invaders $ cd space-invaders $ claude-doubao
Then, enter the prompt, "Implement Space Invaders on a webpage using HTML and JavaScript."
Write an HTML and JavaScript page implementing space invaders

The model's thought steps will continuously scroll on the screen, taking about two or three minutes, and all files will be generated in the space-invaders directory.

Above is the screenshot of the browser's webpage. I made no modifications, and the first generation was immediately playable without any errors. All operations were normal, which is satisfactory.
You can see the generated HTML source code hereand you can copy it over, open it in a browser to play around with it.The complete dialogue of the model can be found here..
Next, I also tested having it generate an SVG image of a "pelican riding a bicycle." Everyone can see the effect for themselves.


VI.
In summary, after integrating Claude Code with Doubao-Seed-Code, it performs very smoothly with fast response times, and the experience is indistinguishable from the native model.
As for the Doubao-Seed-Code programming model itself, it is generally satisfying: step-by-step reasoning is very clear, with short thinking time, high completion degree of generated code, and easy to read , often running successfully on the first try.
Considering it now has Coding Plan activity , with a monthly API package for just 9.9 yuan, the value for money is very high. If you need a programming model, it is recommended to subscribe.
(End)













