Tutorial Hub / Finance AI Assistant / Setup Guide
O

Module 01 · Finance AI Assistant

Setup Guide — Windows & macOS

Step-by-step installation of VS Code + Claude Code + DeepSeek for finance team members. Written for non-developers — follow the section for your machine, in order.

What you are building

Claude Code is an AI assistant that runs inside VS Code's terminal. You type requests in plain English (for example: "summarise this P&L and flag anything unusual"). Claude Code reads and writes files on your machine, and talks to the DeepSeek model over the internet.

Your Laptop you type requests in plain English VS Code editor + terminal runs on your laptop Claude Code the AI assistant, runs in the terminal DeepSeek API the AI model, cloud-based in plain English reads & writes your files over the internet

All your files stay on your laptop — only the text you send travels to DeepSeek over the internet.

TIPTime and what you need: total time is about 30 minutes. You need: your laptop, admin rights to install software, and a company-issued DeepSeek API key (ask the Finance lead / IT if you don't have one).

The 5-step plan at a glance

Both platforms follow the same five steps: install VS Code and Node.js, install Claude Code, connect DeepSeek, then test your first run.

INSTALL Steps 1-3 CONFIGURE — Step 4 VERIFY — Step 5 1 Install VS Code 2 Install Node.js (required for Claude Code) 3 Install Claude Code 4 Connect DeepSeek — 3 settings 5 First run & test

Install (steps 1-3) → configure DeepSeek (step 4) → verify (step 5).

Part 1 — Windows 11

1

Install VS Code

  1. Go to https://code.visualstudio.com in your browser.
  2. Click the big blue Download for Windows button.
  3. Open the downloaded file (VSCodeUserSetup-*.exe) and click through the installer.
    • Accept the licence agreement.
    • On the "Select Additional Tasks" screen, tick "Add to PATH" (important).
  4. Click Finish. VS Code opens.
2

Install Node.js (required for Claude Code)

  1. Go to https://nodejs.org.
  2. Download the LTS version (the left button — "LTS", not "Current").
  3. Open the installer and click Next through all defaults.
  4. When done, open a new terminal and check it worked:
    • Press Win + R, type powershell, press Enter.
    • Type node --version and press Enter.
PROMPT — copy & paste
node --version

You should see something like v20.18.0. If you see an error, restart your laptop and try again (PATH needs a restart to take effect).

3

Install Claude Code

In the same PowerShell window, type:

PROMPT — copy & paste
npm install -g @anthropic-ai/claude-code

Wait for it to finish (1–3 minutes). Then check:

PROMPT — copy & paste
claude --version

You should see a version number. If it says "claude is not recognized", see Troubleshooting at the end of this guide.

4

Connect DeepSeek (3 environment settings)

Claude Code needs three settings so it talks to DeepSeek instead of the default service. The fastest way — in the same PowerShell window, run these three commands one by one (replace PASTE-YOUR-KEY-HERE with your actual API key from the next step):

PROMPT — copy & paste
setx ANTHROPIC_BASE_URL "https://api.deepseek.com/anthropic"
setx ANTHROPIC_MODEL "deepseek-v4-flash"
setx ANTHROPIC_AUTH_TOKEN "PASTE-YOUR-KEY-HERE"
WARNHow to get your API key: go to https://platform.deepseek.com → sign in with the team account credentials given to you → API KeysCreate new key → copy it. The key looks like sk-.... Store it somewhere safe (a password manager).
CRITICALNever share your key with anyone or paste it into a website.
WARNImportant: environment variables only apply to NEW windows. Close the PowerShell window and open a new one before testing.
5

First run

  1. Open VS Code.
  2. Open the folder where you want to work (menu: File → Open Folder — e.g. create C:\Finance\2026-08 consolidated FS\).
  3. Open the built-in terminal: menu Terminal → New Terminal.
  4. Type claude and press Enter.
  5. First time, Claude Code asks a couple of setup questions — accept the defaults (choose the "default" permission mode when asked).
  6. Test it with:
PROMPT — copy & paste
Which files are in this folder?

You should get a list of files. You're done — your AI assistant is live.

Part 2 — MacBook (macOS)

1

Install VS Code

  1. Go to https://code.visualstudio.comDownload for macOS (Apple Silicon or Intel, whichever your Mac is).
  2. Open the downloaded .zip; drag Visual Studio Code.app into the Applications folder.
  3. Open VS Code once. Then enable the code command:
    • Press Cmd + Shift + P → type shell command → select "Shell Command: Install 'code' command in PATH".
  4. (First time you open it, macOS may ask about the developer tool — follow the prompt to install Command Line Developer Tools if requested.)
2

Install Node.js

Option A (recommended for non-developers):

  1. Go to https://nodejs.org → download the LTS version (.pkg for macOS).
  2. Open the .pkg and click through the installer.

Option B (if you use Homebrew): open Terminal and run brew install node.

Check it worked — open Terminal (press Cmd + Space, type Terminal):

PROMPT — copy & paste
node --version

You should see something like v20.18.0.

3

Install Claude Code

In Terminal:

PROMPT — copy & paste
sudo npm install -g @anthropic-ai/claude-code
TIPType your Mac password when asked — this is normal.

Then check:

PROMPT — copy & paste
claude --version
4

Connect DeepSeek (3 environment settings)

Open your shell profile so the settings survive restarts:

PROMPT — copy & paste
nano ~/.zshrc

(If nano shows an empty file, that's fine.) Add these three lines at the end — replace PASTE-YOUR-KEY-HERE with your API key (see the key instructions in the Windows section — same DeepSeek platform, same process):

PROMPT — copy & paste
export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
export ANTHROPIC_MODEL="deepseek-v4-flash"
export ANTHROPIC_AUTH_TOKEN="PASTE-YOUR-KEY-HERE"

Save and exit: press Ctrl + X, then Y, then Enter.

Apply the changes to the current window:

PROMPT — copy & paste
source ~/.zshrc
5

First run

  1. Open VS Code → File → Open Folder (e.g. ~/Finance/2026-08 consolidated FS/).
  2. Terminal → New Terminal → type claude → Enter.
  3. Accept the default settings on first launch.
  4. Test with:
PROMPT — copy & paste
Which files are in this folder?

Part 3 — How to work with it (both platforms)

Basic habits

  • One folder per task. Create a folder for each task (e.g. 2026-08 consolidated FS), copy the relevant files into it, then start claude from that folder. Claude Code can only see files inside (and below) the folder it was started in.
  • Plain English is fine. Write requests as you would to a colleague:
PROMPT — copy & paste
Read subsidiary-A.xlsx and summarise total assets, liabilities and equity in a table.
  • Let it do the boring work. Copying numbers into a template, re-formatting a table, drafting a standard note, finding differences between two files — all faster than manual.
  • Always review before publishing. The AI drafts; you approve. Check every figure against the source file before anything goes into an official statement.
  • Iterate. If the first answer is not quite right, say so:
PROMPT — copy & paste
Use figures in thousands
add a column for last year
explain in simpler words

Useful file formats

  • Claude Code reads text files best: .txt, .csv, .md, .json.
  • For Excel files (.xlsx), let Claude do the reading — ask it to write a Python script:
PROMPT — copy & paste
Write a Python script to read this workbook and print every sheet as a table, then run it.

It will install the needed helper library (openpyxl) itself and you just approve. (Python needs to be installed — if it isn't, see Troubleshooting.)

  • PDF statements: you can open the PDF and read it, or export the PDF pages as text/CSV. Simplest is often to copy the PDF into the folder and ask Claude to summarise it — it will read the PDF directly.

Cost & privacy

TIPDeepSeek bills per token (prepaid credits). Normal finance use costs cents per session.
WARNOnly use the company-issued API key.
CRITICALNever paste financial data into free public AI websites. With Claude Code, files stay on your machine; only the text you send is transmitted to the DeepSeek API.

Troubleshooting

If something goes wrong, find your problem below — the fix is usually quick. The strip gives you the at-a-glance version; the table has the full detail.

claude is not recognized (Windows) Restart the terminal / laptop, or re-run the Node installer and tick "Add to PATH". claude: command not found (Mac) Re-run: sudo npm install -g @anthropic-ai/claude-code, then restart Terminal. Error 401 / authentication failed Recreate the key on platform.deepseek.com, set it again, open a NEW terminal. Error 'model not found' / 404 Check ANTHROPIC_MODEL is exactly deepseek-v4-flash (and the URL is not missing). Requests hang / time out Check internet connection; DeepSeek service status at status.deepseek.com; retry. Claude can't open a .xlsx Ask it to write a Python script to read the workbook; if Python is missing, install from python.org (tick "Add to PATH"). Asks permission on every action Accept "yes" for that file/folder, or switch to a more permissive mode: type /permissions inside Claude Code.

Problem → fix, at a glance. Full details in the table below.

Problem Fix
claude is not recognized (Windows) Node.js PATH not picked up — restart the terminal / laptop. Or re-run the Node installer and tick "Add to PATH".
claude: command not found (Mac) You skipped sudo in Step 3, or PATH. Re-run sudo npm install -g @anthropic-ai/claude-code, restart Terminal.
Error 401 / authentication failed The API key in ANTHROPIC_AUTH_TOKEN is wrong or expired. Recreate the key on platform.deepseek.com, set it again, open a NEW terminal.
Error model not found / 404 ANTHROPIC_MODEL is not exactly deepseek-v4-flash (or the URL is missing). Re-check the two setx/export lines.
Requests hang / time out Check internet connection; DeepSeek service status at status.deepseek.com; retry.
Claude can't open a .xlsx Ask it to write a Python script to read the workbook (see Part 3). If Python is not installed, install from python.org (tick "Add to PATH").
Claude asks for permission on every action Accept "yes" for that file/folder, or switch to a more permissive permission mode (type /permissions inside Claude Code).

Quick reference card

Keep these handy once you're up and running:

PROMPT — copy & paste
START:      VS Code → Terminal → claude
NEW TASK:   create folder → copy files → start claude there
READ FILE:  "Read <filename> and ..."
COMPARE:    "Compare <file A> with <file B> and list differences"
WRITE OUT:  "Save the result as <filename>"
ITERATE:    "Change the table to ...", "Use thousands", "Add last year column"
QUIT:       Ctrl+C (or type exit)