xhydros42 downloadsAI Codex ChatBot sidebar with vault context, references, PDF text, local CLI fallback, sessions, and backups.
Cortex Chat is an unofficial desktop-only Obsidian plugin that adds an AI chat sidebar with vault context, note references, PDF text extraction, session history, shared _cortex memory, and backups for assistant-assisted edits.
This plugin is not affiliated with Obsidian, OpenAI, or Codex.
@ references, shared memory, and recent sessions._cortex/index/vault-keywords.json and is bounded by settings.Planner / Copilot for read-only analysis and Execute / Unrestricted for action-oriented work._cortex/.1.8.0 or newer.After approval in the Obsidian community directory, install Cortex Chat from Obsidian:
Settings -> Community plugins -> Browse -> Cortex Chat -> Install -> Enable
The plugin creates its own local data.json on first run.
For beta testing, install with BRAT from this repository or copy the release files into:
.obsidian/plugins/cortex-chat/
Required release files:
main.js
manifest.json
styles.css
Cortex Chat does not include client-side telemetry, ads, or analytics.
The plugin may access:
@ references, folder selection, drag-and-drop context, and the optional local related-note index._cortex/ inside the vault for shared memory, sessions, candidates, outbox files, and backups._cortex/index/vault-keywords.json for the optional local RAG keyword index.~/.cortex-chat for local runtime state that should not sync through Obsidian Sync.~/.codex/config.toml only if the user explicitly enables Codex vault trust.Do not commit or publish:
data.json_cortex/.obsidian/Technical folders such as node_modules, .git, .obsidian, _cortex, dist, build, .cache, .vite, and coverage are ignored as context sources.
Use Context exclusions in settings for vault-specific private paths or patterns that should never be attached to a prompt or indexed for related-note retrieval.
Planner / Copilot: read, analyze, summarize, and propose without modifying vault files unless the user clearly asks.Execute / Unrestricted: can produce action-oriented output. User-visible note insertions still use the approval preview by default and create backups plus _cortex/outbox/approved-changes logs before applying.Settings include prompt profiles for Researcher, Editor, Planner, and Safe executor. The composer also supports quick commands:
/summarize
/rewrite
/extract-actions
/build-context
lib/ contains the maintainable CommonJS source modules. Obsidian loads main.js, so main.js is generated as a self-contained runtime.
If you keep the source repository inside a synced vault, _cortex-chat/ is a convenient local folder name because it sits next to _cortex/. This is only a development convention. The installed plugin folder must remain:
.obsidian/plugins/cortex-chat/
After changing files in lib/, run:
node scripts/bundle-main.js
Before publishing a release:
node scripts/bundle-main.js
node --check main.js
node scripts/prepare-release.js
Attach main.js, manifest.json, and styles.css to the GitHub release whose tag matches manifest.version.