Were you using Hermes? This plugin was briefly published as Hermes at v1.0.0 and renamed to Gryphon to avoid confusion with the gaining-mindshare Hermes agentic system. Same project, same security model, same code lineage. Migration: install Gryphon via BRAT (
polleoai/gryphon), then copy.obsidian/plugins/hermes/data.json→.obsidian/plugins/gryphon/data.jsonto keep your API key and settings. The plugin auto-renames theHermes/vault folder toGryphon/on first launch. The historical Hermes repo is archived at polleoai/hermes.
AI chat for Obsidian. Talk to Claude, GPT, or Gemini from inside your vault — read and edit files, run tools, all without leaving Obsidian.
Gryphon is a lightweight, reactive chat surface that connects your Obsidian vault to one of six LLM providers: Anthropic's Claude API, OpenAI's API, or Google's Gemini API directly, or any of their locally-installed CLI subprocesses (claude, codex, gemini). It runs on your local machine and reads/writes your vault files through a standard tool-use loop. Pick whichever provider you already have credentials for — there's no preference baked in.
Gryphon is not affiliated with Anthropic, OpenAI, or Google. References to the Anthropic API, OpenAI API, Google API, or any of their CLIs describe what the plugin can talk to; they do not imply endorsement. When using a CLI-subprocess mode, confirm your intended usage complies with that product's terms.
![]() |
![]() |
Chat panel with streaming response — note Gryphon/MANUAL.md in the file tree, seeded on first install |
First-run welcome panel adapts to what's detected (API key, local CLI, or neither) |
![]() |
![]() |
| Edit permission modal with diff preview | Settings tab — provider chooser, API key fields, defaults |
![]() |
|
/help modal — slash commands, keyboard shortcuts, link to the in-vault manual |
.obsidian/, .git/, .claude/, .env, ...) and commands (rm -rf, Remove-Item -Recurse, curl | bash, format C:, sudo, registry mutation, ...) always surface an approval modal even in YOLO mode. Other Claude-for-Obsidian plugins defer entirely to Claude Code's permission modes — Gryphon adds a dedicated guardrail so a one-word "yes" in YOLO can't wipe your vault. See Built-in security below for the full model./compact first if you'd rather control the summary yourself. Claude Code mode delegates to Claude Code's own auto-compaction..md files in Gryphon/Skills/ become slash commands; five skills ship pre-populated/clear, /compact, /context, /cost, /effort, /export, /model, /perm, /quote, /settings, /stop, /usageVia Obsidian's Community Plugins directory — search for "Gryphon" in Obsidian → Settings → Community plugins → Browse, or open obsidian://show-plugin?id=gryphon directly. This is the recommended path for most users.
Via BRAT (for early access to release candidates) — the Beta Reviewers Auto-update Tool is a community plugin that installs plugins directly from GitHub releases and keeps them up to date.
polleoai/gryphon and click "Add Plugin". BRAT pulls the latest release.From source (for contributors):
.obsidian/plugins/gryphon/ (relative to your vault root)npm install and npm run buildYou need at least one of the following — Gryphon picks up whichever provider you have credentials for:
claude, codex, or gemini. Gryphon detects whichever is on your PATH.Paste the API key for your chosen provider into Settings → Gryphon → API key, or set the corresponding env var (ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY). The plugin reads from settings first, env var as fallback.
Each provider mode is independent — you can switch between them per-conversation via /model or globally in Settings. Before using any CLI-subprocess mode, confirm your intended usage complies with that product's terms.
Six providers shipping today, plus an Auto-detect mode:
| Mode | How it works |
|---|---|
| Anthropic API | Direct HTTP calls to api.anthropic.com via @anthropic-ai/sdk. Pay-per-token. |
| OpenAI API | Direct HTTP calls to api.openai.com via the official openai SDK. Pay-per-token. |
| Google API | Direct HTTP calls to generativelanguage.googleapis.com via @google/genai (Gemini Developer API; Vertex AI also supported when credentials present). Free tier available. |
| Claude Code | Spawns a locally-installed claude binary as a subprocess and streams JSON over stdin/stdout. Requires Anthropic's CLI installed locally. |
| Codex CLI | Same pattern for OpenAI's codex CLI. |
| Gemini CLI | Same pattern for Google's gemini CLI. |
| Auto | Prefers any detected CLI (claude > codex > gemini priority), else falls back to whichever API key is configured. Opt-in; not the default. |
For CLI modes, confirm your intended usage complies with that product's Commercial Terms and Acceptable Use Policy. API modes require credits in the corresponding vendor's workspace.
Claude's ability to edit your files and run shell commands is gated by the Permission setting:
| Mode | Read tools | Normal edits | Normal shell | Protected path / command |
|---|---|---|---|---|
| Prompt (default) | Always allowed | Modal per file | Modal per command | Modal (always) |
| Safe | Always allowed | Auto-accept | Modal per command | Modal (always) |
| YOLO | Always allowed | Auto-accept | Auto-accept | Modal (always) |
| Plan | Always allowed | Refused | Refused | Refused |
Prompts include a preview: Edit shows old/new diff, Write shows the first 30 lines of content, Bash shows the full command with its working directory. You can tick "Remember for this session" to skip future prompts for the same file until plugin reload. Bash decisions are never cached — every command is asked individually.
All file operations are vault-scoped: paths like ../etc/passwd are rejected before the tool runs, even in YOLO mode. Security boundary is src/providers/anthropic-api/tools/path-utils.js.
Most Claude-for-Obsidian integrations rely entirely on the user's vigilance at each approval prompt plus Claude Code's own permission modes. Gryphon adds a curated layer on top: a pre-populated list of known-dangerous file-path patterns (writes into .obsidian/, .git/, .claude/, .env) and command patterns (rm -rf, Remove-Item -Recurse, curl | bash, iwr | iex, sudo, format C:, registry mutation, recursive chmod, etc.) that always surface an approval modal before running — including in YOLO mode.
The design choice: convenience modes (Safe, YOLO) silence prompts for routine operations so Claude can iterate quickly; a separate rule set guards the dangerous ones so you can't accidentally YOLO away your vault, your git history, or your shell. The two axes are independent.
Users stay in full control of the rule set:
/ = folder prefix); custom commands accept JavaScript regexEvery default pattern is listed with a user-readable "why this matters" tooltip so non-developers can decide whether to keep or uncheck it.
Gryphon is local-first. The short version:
.obsidian/plugins/gryphon/data.json (inside your vault) alongside other Obsidian plugin data. It is sent only as an x-api-key header to api.anthropic.com when Anthropic API mode is active. Never logged, never exported, never sent anywhere else.claude subprocess (Claude Code mode) only when Claude invokes a Read/Grep/Glob/Write/Edit/Bash tool on your behalf during an active conversation. Outside an active turn, nothing leaves your machine.chat-history.json in the plugin directory. In Claude Code mode, LLM turns also live in Claude Code's own session files under ~/.claude/projects/ (owned by Claude Code, not Gryphon — delete the relevant session file to rotate the Claude Code session).What leaves your machine:
| Action | Destination | When |
|---|---|---|
| Chat message (Anthropic API mode) | api.anthropic.com |
Per turn |
| Chat message (OpenAI API mode) | api.openai.com |
Per turn |
| Chat message (Google API mode) | generativelanguage.googleapis.com (Gemini API) or aiplatform.googleapis.com (Vertex AI) |
Per turn |
| Chat message (CLI mode) | Local claude / codex / gemini subprocess on your machine |
Per turn |
| Vault file read by Claude | Same as above, embedded in the turn | Only when Claude invokes a Read tool |
| WebFetch URL | The URL's origin (direct HTTP fetch) | Only when Claude invokes WebFetch |
| WebSearch query | api.search.brave.com (SDK with key) or the provider's built-in search (CLI) |
Only when Claude invokes WebSearch |
| Everything else | Nowhere | Ever |
The provider mode you select determines which endpoint the plugin reaches. Unused providers contact nothing. No analytics, crash reporting, or telemetry endpoint exists in Gryphon — there is no "phone home" path.
Gryphon bundles the official SDKs from the providers it supports (@anthropic-ai/sdk, openai, @google/genai, undici). The Obsidian Community Plugins scorecard reports all endpoint strings present in the bundle, including endpoints that are only reached in specific auth flows — for example, Google's @google/genai SDK probes Google Cloud metadata endpoints (169.254.169.254, metadata.google.internal, iamcredentials.googleapis.com, cloudresourcemanager.googleapis.com, oauth2.googleapis.com, accounts.google.com) when running inside a Google Cloud VM with Application Default Credentials. None of those are reached during normal Obsidian use on a desktop machine; they remain in the bundle because the SDK ships them.
The complete list of domains that could be contacted, by mode:
api.anthropic.comapi.openai.com, auth.openai.com (only during OAuth flows if used)generativelanguage.googleapis.com, aiplatform.googleapis.com, and (only inside Google Cloud) the metadata + auth endpoints listed aboveapi.search.brave.comGryphon's CLI-detection logic reads a small amount of system information:
os.hostname() and os.userInfo() — used in cross-platform path normalization for hook scriptsPATH, HOME, ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, GRYPHON_VAULT, npm_config_*, plus platform-standard locations Claude Code / Codex / Gemini CLIs are typically installed underNone of this is transmitted off the device.
Gryphon uses Obsidian's standard vault API: vault.read, vault.cachedRead, vault.modify, vault.create, vault.delete, vault.rename. All operations are vault-scoped — paths like ../etc/passwd are rejected before the tool runs, regardless of permission mode.
For vulnerability reports and the full data-handling breakdown, see SECURITY.md.
A skill is a .md file in the Gryphon/Skills/ folder of your vault, with YAML frontmatter:
---
name: tag-suggest
description: Propose tags for the active note
argument-hint: optional extra context
---
Read the active note and propose 3-5 tags that capture its core topics.
Tags should be lowercase-with-hyphens, avoid over-general terms, and
reference existing tags in the vault when possible.
{{args}}
Once saved, type /tag-suggest in Gryphon chat to invoke it. {{args}} expands to anything typed after the skill name.
Pre-populated skills include /tag-suggest, /backlinks, /forward-links, /summarize, /lint-note. Delete them from Gryphon/Skills/ if you don't want them; they won't be re-created.
| Setting | Purpose |
|---|---|
| Provider | Auto / Anthropic API / OpenAI API / Google API / Claude Code / Codex CLI / Gemini CLI (see Provider modes above) |
| Anthropic API key | For Anthropic API mode. Stored in data.json. Blank = check ANTHROPIC_API_KEY env var. |
| OpenAI API key | For OpenAI API mode. Stored in data.json. Blank = check OPENAI_API_KEY env var. |
| Google API key | For Google API mode. Stored in data.json. Blank = check GOOGLE_API_KEY env var. |
| Claude Code path | Path to claude binary. Leave blank for auto-detect. Used in Claude Code mode only. |
| Codex CLI path | Path to codex binary. Leave blank for auto-detect. Used in Codex CLI mode only. |
| Gemini CLI path | Path to gemini binary. Leave blank for auto-detect. Used in Gemini CLI mode only. |
| Brave Search API key | Enables WebSearch in any API mode. Free tier at brave.com/search/api. CLI modes use the provider's built-in search and ignore this. |
| Default model | Provider-dependent dropdown (e.g., Claude Haiku/Sonnet/Opus, GPT-4o/o1, Gemini Flash/Pro). |
| Default effort | Low / Medium / High (where the provider's API exposes a reasoning-effort parameter). |
| Permissions | Prompt / Safe / YOLO / Plan (see Permission modes above) |
| Open in main tab | Opens chat in main editor area instead of sidebar |
| Key | Action |
|---|---|
| Enter | Send message |
| Shift+Enter | Newline |
| ↑ (cursor not at start) | Jump cursor to start of prompt |
| ↑ (cursor at start) | Walk back through prompt history |
| ↓ (cursor not at end) | Jump cursor to end of prompt |
| ↓ (cursor at end, in history) | Walk forward through prompt history |
| Tab / Enter in autocomplete | Complete selected command |
| Esc in autocomplete | Close dropdown |
Gryphon is structured around a pluggable provider interface:
src/
├── plugin.js — Obsidian plugin entry + settings UI
├── chat-view.js — streaming chat UI
├── constants.js — slash commands, models, permission modes
├── skills.js — skill file loader + dynamic slash commands
├── bundled-skills.js — pre-populated skill content
├── utils.js — shared helpers
└── providers/
├── provider-interface.js — contract doc (JSDoc-only)
├── factory.js — selects CLI or SDK based on settings
├── cli/
│ └── claude-code-cli.js — subprocess wrapper for the local `claude` CLI
└── sdk/
├── anthropic-sdk.js — direct API client (streaming, history-aware)
├── tool-loop.js — multi-turn tool-use driver
└── tools/
├── path-utils.js — vault-scoped path validation
├── tool-registry.js — schemas + dispatcher
├── read.js
├── glob.js
├── grep.js
├── write.js
├── edit.js
├── web-fetch.js
├── web-search.js
├── bash.js
└── permission-gate.js
The provider-interface documents the contract every backend implements — one send(prompt) method, streaming callbacks, and read-only properties (resolvedModel, contextTokens, sessionId). Adding a new provider (OpenAI-compatible, Gemini, Ollama, etc.) means implementing that interface and adding a branch in factory.js.
npm install # install SDK + esbuild
npm run build # bundle plugin → main.js at repo root
npm run dev # watch mode (rebuilds on every save)
Set GRYPHON_VAULT to your vault root (comma-separate multiple vaults) and every build pushes main.js, manifest.json, styles.css into the vault's .obsidian/plugins/gryphon/ folder automatically:
GRYPHON_VAULT=/path/to/my-vault npm run dev
Enable Gryphon once in Obsidian so the plugin folder exists, then reload Obsidian (Cmd+R / Ctrl+R) after each edit to pick up fresh bytes. If GRYPHON_VAULT is unset, builds go only to the repo root and you copy manually.
If you run two Obsidian windows pointing at the same vault (a rare but possible setup — e.g. launching Obsidian with open -n -a Obsidian on macOS), each window has its own Gryphon plugin instance:
| Shared across instances | Isolated per instance |
|---|---|
provenance.json, chat-history.json, data.json in the plugin dir |
IPC socket — per-instance sock file named gryphon-PID-HEX.sock where PID is the running process id and HEX is random — plus session flags and the Claude Code subprocess itself |
What works correctly:
Known limitation — provenance tag race:
provenance.json can clobber each other. Gryphon mitigates by reloading the disk state at the start of every mutation, shrinking the race window to microseconds, but doesn't eliminate it.Known limitation — chat history:
chat-history.json is a single shared file and each instance saves its own view. One instance's save can overwrite the other's recent messages. Fix is outside Gryphon's current scope.For most users running a single Obsidian window, none of this matters. If you do run multiple windows on the same vault, prefer opening separate chat sessions in separate windows rather than interleaving messages across windows.
MIT © POLLEO.AI.
Contributions welcome. Open an issue or pull request at polleoai/gryphon.
For questions, feedback, or support: [email protected].
For security vulnerability reports, see SECURITY.md — the same address is monitored for private disclosures.