---
title: "Route Claude Code to Your Obsidian Context Files"
description: "Build a root CLAUDE.md, domain records, links, and a routing table. Test a fresh-session request and confirm which files your task reads."
canonical: "https://scalewithsearch.com/articles/obsidian-ai-vault-setup-guide"
date: "2026-01-28"
modified: "2026-11-10"
---
## Site navigation

- [Scale With Search](https://scalewithsearch.com/)
- Services
  - Local
    - [All services](https://scalewithsearch.com/services)
    - [AI visibility tracking](https://scalewithsearch.com/services/ai-visibility-tracking)
    - [Google Maps rank tracking](https://scalewithsearch.com/services/google-maps-rank-tracking)
    - [Local SEO](https://scalewithsearch.com/services/local-seo)
    - [Google Business Profile management](https://scalewithsearch.com/services/google-business-profile)
  - Website and search
    - [SEO solutions](https://scalewithsearch.com/seo)
    - [Technical SEO](https://scalewithsearch.com/seo/technical-seo)
    - [On-page and content SEO](https://scalewithsearch.com/seo/on-page-and-content-seo)
    - [Semantic SEO and topical authority](https://scalewithsearch.com/seo/semantic-seo-and-topical-authority)
    - [Custom SEO tools](https://scalewithsearch.com/seo/custom-seo-tools)
    - [Site build](https://scalewithsearch.com/work#site-build)
    - [Whole website fix](https://scalewithsearch.com/work#whole-website-fix)
  - AI functions
    - [AI operations](https://scalewithsearch.com/ai-systems)
  - First step
    - [Working session](https://scalewithsearch.com/audit)
  - Start here
    - [Send your brief](https://scalewithsearch.com/work#send-your-brief)
    - [Example scope](https://scalewithsearch.com/work#review-the-example-scope)
    - [Prices and terms](https://scalewithsearch.com/work#prices-and-terms)
- Industries
  - Agencies
    - [SEO agencies and consultants](https://scalewithsearch.com/for/seo-agencies-and-consultants)
    - [Marketing agencies and freelancers](https://scalewithsearch.com/for/marketing-agencies-and-freelancers)
    - [AI visibility check for SEO agencies](https://scalewithsearch.com/check/seo-agencies-and-consultants)
    - [Marketing and SEO agencies](https://scalewithsearch.com/for/#group-agencies)
  - Browse by business
    - [Trades and field service](https://scalewithsearch.com/for/#group-trades)
    - [Real estate agents and teams](https://scalewithsearch.com/for/real-estate)
    - [Health, wellness, and animal care](https://scalewithsearch.com/for/#group-practices)
    - [Chiropractic and wellness practices](https://scalewithsearch.com/for/chiropractic-and-wellness-practices)
    - [Law, finance, and IT](https://scalewithsearch.com/for/#group-professional)
    - [Machine shops and manufacturers](https://scalewithsearch.com/for/#group-manufacturing)
    - [Restaurants, shops, studios, and nonprofits](https://scalewithsearch.com/for/#group-local-services)
  - [All industries](https://scalewithsearch.com/for/)
- Resources
  - Free tools
    - [AI visibility check](https://scalewithsearch.com/check)
    - [All free tools](https://scalewithsearch.com/tools/)
    - [Free starter kit (.zip)](https://scalewithsearch.com/kit/business-memory-starter-kit.zip)
  - Guides
    - [AI-native library](https://scalewithsearch.com/ai-native)
    - [Industry intelligence](https://scalewithsearch.com/intelligence)
    - [Office job guides](https://scalewithsearch.com/guides/)
    - [Business memory](https://scalewithsearch.com/articles/business-memory-for-ai-agents-guide)
    - [Agent governance](https://scalewithsearch.com/articles/ai-agent-governance-guide-small-business)
    - [Ownership and migration](https://scalewithsearch.com/articles/leaving-vendor-ai-memory-guide)
  - Articles
    - [All articles](https://scalewithsearch.com/articles/)
- About
  - Evidence
    - [Proof](https://scalewithsearch.com/proof)
  - Scale With Search
    - [About](https://scalewithsearch.com/about)
    - [How it works](https://scalewithsearch.com/how-it-works)

# Set Up an Obsidian Vault That Routes Claude Code to the Right Context.

Built from 10 notes in Victor's vault. Drafted with Claude Opus 5.5 and Claude Fable 5.1, rewritten against Victor's notes with Claude Opus 5.5. Reviewed by Victor on 2026.11.11.

Claude Code reads Markdown files. Obsidian organizes Markdown files. Together they give you an assistant that starts each session with your business context, not a blank page.

This guide builds the routing inside the vault. When you finish, a request such as "draft the weekly ClientA update" points to the right files without a manual file selection. If you have not installed either tool, start with [your first Obsidian and Claude Code connection](/articles/how-to-set-up-ai-vault). For an existing pile of notes, use [the vault reorganization guide](/articles/#cluster-ai-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvaG93LXRvLW9yZ2FuaXplLWFpLWtub3dsZWRnZS12YXVsdCk= -->.

My own vault runs on this pattern. One root file routes. One context file per domain says what that domain is for. The model reads the root first and pulls the rest only when the request needs it.

## Know why Obsidian fits AI context

A new Claude chat does not know your business, so you explain it again in each chat. An Obsidian vault holds the explanation in files that every session can read.

Obsidian helps in three ways.

**Local files.** The context files stay on your disk, under your control. The content of a file still goes to the model's API when a session reads it, and retention and training terms depend on your plan. The model's context window still limits how much one session can use.

**Plain text.** Markdown is readable by people and by models. It has no proprietary format, so you can change editors or AI tools and keep the files.

**Links.** Obsidian's links connect a client file to a project file to a template. Claude Code does not follow links on its own. It opens a linked file when a context file or your request tells it to. A link still tells the agent that a related file exists.

With the vault in place, a request for client emails reads the client folder, and a project question reads the project file. The model pulls the one folder the moment needs, not the whole vault.

## Check the tool prerequisites

You need Obsidian to edit local `.md` files and Claude Code to read them during a task. Claude Code needs a supported paid Claude plan or an Anthropic Console account. Start it in the folder that holds this vault. Anthropic documents the instruction-file load in [How Claude remembers your project](https://code.claude.com/docs/en/memory).

Keep private notes outside the folders this workflow may read. Local storage does not mean local processing: text read by the session goes to the model provider.

## Build three layers: Obsidian vault context routing for Claude Code

The vault has three layers.

### Layer 1: root CLAUDE.md

This file sits at the vault root. It is the master instruction set, and Claude Code reads it at the start of every session.

Put five kinds of content in it:

- who you are: name, roles, and working hours;
- your domains: business areas, clients, and projects;
- routing: keywords that point to specific context files;
- voice and output rules;
- critical warnings: actions the assistant must never take.

The file answers one question: who does the assistant work for, and what does that person want to do? It routes. It does not hold the detail.

### Layer 2: domain folders

Each major area of work gets a folder. A consultant can use one folder per client. Separate businesses get separate folders, always.

Number the folder names so that they sort in a fixed order:

```
01 - Client Work/
02 - Business Operations/
03 - Content Production/
04 - Personal/
```

Each folder gets a `_context.md` file. It states what is different about that area of work: what the folder is for, what it tracks, how to use it, and when to go to another folder. The underscore sorts it to the top of the folder.

### Layer 3: project files

Inside each domain folder, keep the working files: client details, project specifications, past decisions, style guides, templates, logs, and data.

The route runs from the top down: root `CLAUDE.md`, then the domain `_context.md`, then the project files.

## Set up the vault in seven steps

### Step 1: create the root CLAUDE.md

In Obsidian, create a file named `CLAUDE.md` at the vault root. Start with this structure:

```
# [Your Name]'s Vault

## WHO
[Your name, roles, schedule]

## WHAT (Domains)
| Domain | Context File | Load when prompt mentions... |
|--------|--------------|------------------------------|
| [Domain Name] | [path to _context.md] | [keywords] |

## VOICE
[How you want AI to write]

## RULES
1. Read before edit
2. Ask if unclear
3. [Your specific rules]

## KEY FILES
[Important files AI should know about]
```

This is the map. Claude Code reads it first, matches the request to a domain, and opens that domain's files. My own root file uses this same domain table, with the same column header. For a complete business version of this file, see the [CLAUDE.md template for business context](/articles/claude-md-template-business-context).

### Step 2: build the domain structure

Create a folder for each major work area. Put a `_context.md` file in each folder.

```
/CLAUDE.md
/01 - Client Work/
  /_context.md
  /ClientA.md
  /ClientB.md
/02 - Content/
  /_context.md
  /Style-Guide.md
  /Templates.md
/03 - Personal/
  /_context.md
  /Tasks.md
```

### Step 3: write the domain context files

Each `_context.md` file answers one question: what is different about work in this domain?

For a client work folder:

```
# Client Work Context

## Current Clients
- ClientA: [one-line description]
- ClientB: [one-line description]

## Deliverables
[What you produce for clients]

## Process
[Your workflow steps]

## Templates
[Links to template files]

## Active Projects
[What's in progress right now]
```

For a content production folder:

```
# Content Context

## Voice Rules
[How you write]

## Platforms
[Where you publish]

## Topics
[What you write about]

## Templates
[Article structures, post formats]

## Publication Schedule
[When things go out]
```

Keep each context file under 500 words. If it grows past that, split the detail into linked files. A file that loads on every turn does not get read on every turn, so length works against you. These fictional records show the difference between standing client context and a dated project:

```markdown
# Clients/Birch/_context.md
Client: Birch Street Dental
Location: Columbus, OH
Services: family dentistry, cleanings, implants
Voice: professional, approachable, calm
Content schedule: 2 articles a month

# Projects/WebsiteRedesign/_context.md
Project: website redesign
Client: Oakline Metalworks
Deadline: 2026-02-15
Tech stack: static HTML, hosted on Netlify
Brand colors: #1a1a1a, #ff6b00
```

Add `Birch` and `dental` routes to the client file. Add `Oakline` and `metalwork` routes to its client file, and `website redesign` to the project file. Do not treat the example deadline as current. Put the live date in your own project record. Choose task inputs using [what context an agent should read](/articles/#cluster-owned-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvd2hhdC1jb250ZXh0LXNob3VsZC1hbi1hZ2VudC1yZWFkKQ== -->.

### Step 4: set naming conventions

Consistent names help the assistant find files. Choose one convention for each file type and keep it.

- People: `FirstLast.md` or `Company - Contact.md`.
- Projects: `YYYY-MM-DD - Project Name.md` or `ClientName - Project.md`.
- Templates: `TEMPLATE - Use Case.md`.
- Logs: `_log.md`, with the underscore to keep it at the top of the folder.

Keep the log apart from the context. In my vault, `_context.md` states what is true now, and `_log.md` holds the receipts of what ran. The context stays short because the history lives next door.

### Step 5: link related files

Links tell the assistant where related context lives. Use three kinds.

**Upward links.** A project file links to its client file.

**Related links.** A client file links to another client in the same industry. The assistant can find a relevant precedent.

**Template links.** A context file links to its templates. When you ask for a deliverable, the assistant knows where the format lives.

Use `[[wiki-style]]` links. Add a "Related" section at the end of important files:

```
## Related
- [[Client Context]]
- [[Project Template]]
- [[Past Work Examples]]
```

Links are paths. Move a file from outside Obsidian and its links can break. Move files inside Obsidian, and tell the assistant to ask before it moves anything.

### Step 6: build the routing table

Return to the root `CLAUDE.md` and fill in the routing table. It maps keywords to context files:

```
## WHAT (Domains)

| Domain | Context File | Load when prompt mentions... |
|--------|--------------|------------------------------|
| **Client Work** | `01 - Client Work/_context.md` | client, project, deliverable, ClientA, ClientB |
| **Content** | `02 - Content/_context.md` | article, post, write, publish, blog |
| **Personal** | `03 - Personal/_context.md` | task, reminder, schedule, personal |
```

When you write "write the ClientA report," the word "ClientA" points to the Client Work context. The table is an instruction that the model follows. It is not an access control. Client data that must not mix needs a hard boundary. The method is in Obsidian as business memory for AI agents.

### Step 7: add voice and rules

The VOICE section states how the assistant writes for you. The RULES section states what it must never do.

A voice example:

```
## VOICE

Write direct. Use contractions. Short sentences when they hit harder. Longer ones when the idea needs room to breathe.

No corporate speak. No buzzwords. No "solutions" or "leverage" or "synergy."

If it sounds like a press release, rewrite it.
```

A rules example:

```
## RULES

1. Read files before editing them
2. Ask before deleting anything
3. Use YYYY-MM-DD date format
4. Keep responses dense, no fluff
5. Never move files without confirmation (breaks Obsidian sync)
```

These rules guide the model. Check each output; instructions are not enforced access controls. Without voice rules, default output runs long and general.

## Trace one request: Obsidian vault context routing for Claude Code

You type: "Draft the weekly ClientA update."

1. Claude Code has already read `CLAUDE.md` at session start.
2. The word "ClientA" matches the Client Work row of the routing table.
3. Claude Code opens `01 - Client Work/_context.md`.
4. It opens `ClientA.md` for the client details.
5. It follows the template link in the context file.
6. It writes the update in your voice, with the current project details.

Test this in a fresh session before you rely on it. Ask "Which clients do I work with?" Compare every name with the root and domain records. Then ask a routed question, such as "What is Birch's content schedule?" Check the answer and the file-read evidence.

If a route fails, check the working folder, the exact `CLAUDE.md` filename, every routing path, and the field format. A missing file that you can see in Obsidian usually means the folder where Claude Code started is not the vault path. Compare the files Claude Code says it read with the tool log. A self-reported list alone does not prove a file opened. Repeat after changing one harmless fact, so an old answer cannot pass the test. A prompt hook can supply matched context deterministically; it still does not enforce output behavior.

With the vault in place, the assistant has these facts at the start of each task:

- who your clients are and what they need;
- how you write;
- which projects are active and what happened before;
- where templates live and when to use them;
- which rules you follow and which mistakes to avoid.

## Keep the vault current

The vault needs a small, regular amount of upkeep.

**Weekly.** Update project status in the context files. Date each current-state line, so you can see at once when a line went stale.

**Monthly.** Move finished projects and completed client work to an Archive folder. Keep active context short.

**Quarterly.** Review the routing table. Add keywords for new work, and remove domains that you no longer use.

Its value depends on how current the files are. As models get better, the files should get more precise, not longer.

## Avoid five common mistakes: Obsidian vault context routing for Claude Code

**Too many folders.** Start with three to five domains. Split later when a real need appears.

**No routing table.** Without a table, the assistant guesses which context applies. A guess costs you a correction.

**Everything in CLAUDE.md.** Keep the root file under 1,000 words. Put detail in the context files.

**No links.** An isolated file is hard for the assistant to find. Link each file to at least one other file.

**Notes written for a machine.** The vault is yours first. Write notes the way you think. Rigid formats written "for the algorithm" often read worse.

## Compare owned files with product instructions

Custom-instruction limits depend on the product and plan. As checked on 2026.09.19, ChatGPT allowed 1,500 characters for Free and Go accounts and 5,000 for paid plans. [The dated field-limit comparison](/articles/chatgpt-custom-vs-project-instructions-limits) records each field's scope. ChatGPT Projects also hold instructions and files for their chats.

That memory is real, and it lives inside one vendor's product. You cannot choose its shape, read all of it, or carry it out whole. Your root file, domain records, and routes remain on storage you control. Owned files persist across tools that can load them. The model becomes a replaceable worker. The memory stays yours.

## Plan the first three hours

The infrastructure is small. The content takes the time.

1. Write the root `CLAUDE.md`, about 30 minutes.
2. Create the domain folders and context files, about one hour.
3. Move existing files into the structure, about one hour.
4. Add links between related files, about 30 minutes.
5. Run the request trace above for each domain.

You need no technical background. Obsidian is a note app for plain text files. Claude Code runs in a terminal, and Anthropic's setup documentation lists the install command. If a step asks for a command you do not know, ask Claude for it.

You can keep Notion or Google Docs for project management and use the vault only for AI work where context must persist. For a scoped connection between Claude and the vault, read how to connect Claude to Obsidian for business memory.

The setup works when Claude Code reads the right files without you naming them.


## More reading on Obsidian vault context routing for Claude Code

- [Plan the 25 to 50 hours a hand-built Claude Code memory system takes](/articles/#cluster-ai-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvY2xhdWRlLWNvZGUtaW5pdC12cy1wcm9mZXNzaW9uYWwtc2V0dXAp -->
- [Give Clawdbot the business context it loses between sessions](/articles/#cluster-ai-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvY2xhd2Rib3QtYWktbWVtb3J5LXNldHVwKQ== -->
- [Plan AI memory that keeps working as context windows and memory features change](/articles/#cluster-ai-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvZnV0dXJlLW9mLWFpLW1lbW9yeSk= -->

----

```text
                  .|########||.                                       .|########||.                                       .|########||.
               |##||.      .||##|.                                 |##||.      .||##|.                                 |##||.      .||##|.
             |#|.              .|#|.                             |#|.              .|#|.                             |#|.              .|#|.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
        .#.                          .#|                    .#.                          .#|                    .#.                          .#|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
      |#             ......             #|                |#             ......             #|                |#             ......             #|
     .#           ||#########|           #|              .#           ||#########|           #|              .#           ||#########|           #|
    .#.         |######||######|.        .#.            .#.         |######||######|.        .#.            .#.         |######||######|.        .#.
    #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#
   ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||
   #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #
 ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||
 #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#
 #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.
.|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||
||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||
#.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#
#    .||####|###########################|.     #    #    .||####|###########################|.     #    #    .||####|###########################|.     #
#      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #
#      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #
#      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #
#      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #
#   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #
#. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#
|| |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||
|| ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||
.# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.
 #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#
 ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||
  #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.
   ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||
    #.        .######|#|#########|        .#            #.        .######|#|#########|        .#            #.        .######|#|#########|        .#
    .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.
     |#           ||########||           #.              |#           ||########||           #.              |#           ||########||           #.
      |#             ......             #|                |#             ......             #|                |#             ......             #|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
        |#.                          .#.                    |#.                          .#.                    |#.                          .#.
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
            .|#|.              .|#|.                            .|#|.              .|#|.                            .|#|.              .|#|.
               |##||.      .||##|                                  |##||.      .||##|                                  |##||.      .||##|
                 .||########||.                                      .||########||.                                      .||########||.

Scale With Search  2026  [scalewithsearch.com](https://scalewithsearch.com)
```
