setup

setup is a command for Claude Code from AdrianV101/obsidian-pkm-plugin. It costs 18 tokens per session (1,012 once invoked), scanned B, original, MIT.

A setup command for connecting the Vault PKM plugin to an Obsidian vault, which is a folder containing Markdown notes. It configures the vault location, optionally enables semantic search, and checks the connection.

In plain words
What is it for?
Use it when installing or repairing Vault PKM, setting the vault path, enabling semantic search, and verifying that the connection works.
Why use it?
It avoids manual configuration mistakes and keeps sensitive API keys out of the chat history.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Part of the vault-pkm plugin — 6 skills, 2 commands, 3 agents, 2 hooks shipped together

Good fit Use it when installing or repairing Vault PKM, setting the vault path, enabling semantic search, and verifying that the connection works.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/adrianv101/obsidian-pkm-plugin/setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/AdrianV101/obsidian-pkm-plugin

Made for: Claude Code.

Or install vault-pkm, the plugin that ships this one along with the rest of its 6 skills, 2 commands, 3 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/adrianv101/obsidian-pkm-plugin/setup/github.svg)](https://agentmods.dev/commands/adrianv101/obsidian-pkm-plugin/setup)
Your own site
<a href="https://agentmods.dev/commands/adrianv101/obsidian-pkm-plugin/setup"><img src="https://agentmods.dev/badge/commands/adrianv101/obsidian-pkm-plugin/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/adrianv101/obsidian-pkm-plugin/setup"><img src="https://agentmods.dev/badge/commands/adrianv101/obsidian-pkm-plugin/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,012 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01012
Opus 5.5 $0.00007 $0.00405
Sonnet 5.5 $0.00004 $0.00202
Haiku 4.5 $0.00002 $0.00101

Measured 1mo ago against content hash eb57e76f64e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

If the path is valid, add it to `~/.claude/settings.json` under the `env` block:
commands/setup.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vault PKM Setup

You are configuring the Vault PKM plugin. Walk the user through these steps:

Step 1: Vault Path

Ask the user for their Obsidian vault path. Validate that:

  • The path exists and is a directory
  • It contains at least one .md file
  • Suggest ~/Documents/PKM as a default

If the path is valid, add it to ~/.claude/settings.json under the env block:

{
  "env": {
    "VAULT_PATH": "/absolute/path/to/vault"
  }
}

Read the file first, merge with existing env vars (don't overwrite other settings), and write back. Verify the MCP server can connect after setting it.

Step 2: OpenAI API Key (Optional)

Ask if they want semantic search features (vault_semantic_search, vault_suggest_links). If yes:

  • NEVER ask the user to type their API key in the chat — it would be stored in conversation history
  • Tell them to open ~/.claude/settings.json in their text editor (outside of Claude Code) and add VAULT_PKM_OPENAI_KEY to the env block:
    {
      "env": {
        "VAULT_PATH": "/path/to/vault",
        "VAULT_PKM_OPENAI_KEY": "sk-your-key-here"
      }
    }
    
  • Explain the variable is named VAULT_PKM_OPENAI_KEY (not OPENAI_API_KEY) to avoid conflicts with project-scoped OpenAI keys. Users upgrading from earlier releases can keep OBSIDIAN_PKM_OPENAI_KEY — it still works as a deprecated fallback — but should rename it at their convenience.
  • Explain they can get a key from https://platform.openai.com/api-keys
  • Explain this enables 2 additional tools (semantic search + link suggestions) but is completely optional
  • Tell them to restart Claude Code after saving the file

Step 3: Tool Permissions

Ask the user if they want to auto-approve all PKM vault tools (so they don't get prompted for each tool call). If yes, add this to the permissions.allow array in ~/.claude/settings.json:

mcp__plugin_vault-pkm_vault-pkm__*

Read the file first, merge with existing permissions (don't overwrite), and write back. This allows all vault_read, vault_write, vault_search, etc. tools to run without per-call confirmation.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 91 lines · 18 tokens per session scan B eb57e76f64e4

Subscribe to this mod's changes

setup is a command published in the GitHub repository AdrianV101/obsidian-pkm-plugin (14 stars, last pushed 7d ago), licensed MIT. It adds 18 tokens to every session and 1,012 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

sol

Run a one-shot task on the routed Codex model (gpt-5.6-sol by default) and relay its answer.

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 26 tokens

pdf-to-wiki

A workflow for sending a large PDF from Google Drive to NotebookLM, Google's document-analysis tool, and saving the resulting notes as Obsidian markdown files. It passes the file link rather than reading the PDF directly.

capitalparser/notebooklm-wiki-pipeline · 0 tokens

query

Query the wiki under one of three postures — research, contradictor, synthesis. Trigger FR — interroger le wiki, consulter le wiki, rechercher dans le wiki, contredire une thèse, synthétiser ce qu'on sait.

evb87-tech/corpus · 0 tokens

ingest-02-edge-contradiction

Deux sources déjà ingérées traitent du même concept (la valeur du feedback utilisateur en sprint review) mais arrivent à des conclusions opposées. Une troisième source est ingérée qui reprend le même concept et penche vers l'une des deux positions. Le comportement attendu est que la page wiki existante conserve la…

evb87-tech/corpus · 0 tokens

query-synthesis-01-happy

Le wiki contient plusieurs pages cohérentes sur la notion de dette technique vue d'un angle produit. L'utilisateur demande une synthèse. Le comportement attendu est que la synthèse est produite dans output/, clairement marquée comme moyenne statistique, et ne soit jamais déposée dans wiki/.

evb87-tech/corpus · 0 tokens

pm-review-strategy-01-happy

Un PRD est disponible dans output/. Le wiki contient des pages decision- et feature- pertinentes. Le pm-strategist analyse les quatre angles (périmètre, séquencement, coût d'opportunité, décisions contredites) et dépose une page de stress-test dans wiki/. Le comportement attendu : chaque affirmation du stress-test…

evb87-tech/corpus · 0 tokens