Timeline

2026-05-24

init


ClaudeCode

To download Claude Code, you need Node.js:

1
2
3
4
5
6
7
8
# It's recommended to switch the registry first
npm config set registry http://registry.npmmirror.com
npm install -g @anthropic-ai/claude-code

claude --version

# Resume a session in the current directory
claude -c

DeepSeek

DeepSeek is chosen here because its tokens are relatively cheap and it doesn’t require an external network connection. Click the link below to apply for an API key:

Editor Integration

VSCode

Install the extension: Claude Code for VS Code by Anthropic. Then in settings, find @ext:Anthropic.claude-codeClaudeCode: Environment Variables → click Edit in settings.json.

Refer to the official documentation to set environment variables:

As follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"claudeCode.environmentVariables": [
{
"name": "ANTHROPIC_BASE_URL",
"value": "https://api.deepseek.com/anthropic"
},
{
"name": "ANTHROPIC_AUTH_TOKEN",
"value": "<your DeepSeek API Key>"
},
{
"name": "ANTHROPIC_MODEL",
"value": "deepseek-v4-pro[1m]"
},
{
"name": "ANTHROPIC_DEFAULT_OPUS_MODEL",
"value": "deepseek-v4-pro[1m]"
},
{
"name": "ANTHROPIC_DEFAULT_SONNET_MODEL",
"value": "deepseek-v4-pro[1m]"
},
{
"name": "ANTHROPIC_DEFAULT_HAIKU_MODEL",
"value": "deepseek-v4-flash"
},
{
"name": "CLAUDE_CODE_SUBAGENT_MODEL",
"value": "deepseek-v4-flash"
},
{
"name": "CLAUDE_CODE_EFFORT_LEVEL",
"value": "max"
}
],

Then you can open the Claude Code extension in VSCode and start using it.

You can also set environment variables in Windows PowerShell. First open PowerShell as administrator, then:

1
code $PROFILE

Then write the environment variables from the official documentation into it, so they’re loaded every time you open PowerShell:

1
2
3
4
5
6
7
8
$env:ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
$env:ANTHROPIC_AUTH_TOKEN="<your DeepSeek API Key>"
$env:ANTHROPIC_MODEL="deepseek-v4-pro[1m]"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4-pro[1m]"
$env:ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4-pro[1m]"
$env:ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4-flash"
$env:CLAUDE_CODE_SUBAGENT_MODEL="deepseek-v4-flash"
$env:CLAUDE_CODE_EFFORT_LEVEL="max"

Emacs

Emacs is generally used in Linux environments. Windows Emacs has too many bugs, so the configuration below is all for Linux environments. First, install Claude Code, then set environment variables in $HOME/.bashrc or $HOME/.zshrc:

1
2
3
4
5
6
7
8
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=<your DeepSeek API Key>
export ANTHROPIC_MODEL=deepseek-v4-pro[1m]
export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4-pro[1m]
export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-pro[1m]
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flash
export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flash
export CLAUDE_CODE_EFFORT_LEVEL=max

Then enable the environment variables:

1
2
3
4
# bash
source ~/.bashrc
# zsh
source ~/.zshrc

The main package used is claude-code.el:

Configuration:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;; claude code
;; install required inheritenv dependency:
(use-package inheritenv
:vc (:url "https://github.com/purcell/inheritenv" :rev :newest))

(use-package monet
:vc (:url "https://github.com/stevemolitor/monet" :rev :newest))

;; for vterm terminal backend:
(use-package vterm :ensure t)

;; install claude-code.el
(use-package claude-code :ensure t
:vc (:url "https://github.com/stevemolitor/claude-code.el" :rev :newest)
:config
;; optional IDE integration with Monet
(add-hook 'claude-code-process-environment-functions #'monet-start-server-function)
(monet-mode 1)
(setq claude-code-terminal-backend 'vterm)
(claude-code-mode)
:bind-keymap ("C-c c" . claude-code-command-map)
;; Optionally define a repeat map so that "M" will cycle thru Claude auto-accept/plan/confirm modes after invoking claude-code-cycle-mode / C-c M.
:bind
(:repeat-map my-claude-code-map ("M" . claude-code-cycle-mode)))

Press C-c c c to launch the Claude Code window. Other commands can be viewed via claude-code-transient (C-c c m).

Skills

Skills are an extension mechanism for Claude Code launched by Anthropic in October 2025. Think of them as skill packages for Claude Code — essentially a Markdown file SKILL.md containing the skill’s purpose, prompts, rules, and workflow. They are stored in:

  • Project-level directory, i.e. ${workspaceFolder}/.claude/skills/ in your project root. Skills placed here only take effect in the current project, suitable for project-specific skills like code conventions, deployment processes, etc.
  • User-level directory, i.e. $HOME/.claude/skills/ in your home directory. Skills placed here work across all projects, suitable for general skills like making presentations, writing documents, formatting articles, etc.

There’s also the concept of MCP (Model Context Protocol). MCP is a standard protocol that allows AI assistants to safely interact with the external world — things like reading local files, operating GitHub repositories, querying databases, sending Slack messages, controlling browsers, etc.

Installing Skills:

  1. Manually copy SKILL.md to the project-level or user-level directory.
  2. Install plugins.

Reference:

The official Anthropic Marketplace (claude-plugins-official) is automatically available when starting Claude Code. Run /plugin and go to the Discover tab to browse available content, or view the catalog at claude.com/plugins.

1
2
3
/plugin install github@claude-plugins-official

# You can then manage plugins via /plugin

A recommended Skill to install:

References