Codexdian
unlistedby Yishen Tu
Vault-aware Codex chat for Obsidian with tabs, file edits, reference notes, and YOLO mode.
Codexdian
Vault-aware Codex for Obsidian: chat with your notes, edit files, keep a current reference note, and run multi-step workflows without leaving your vault.
Who This Is For
Codexdian is for Obsidian desktop users who already want Codex to work inside their vault instead of in a separate terminal window.
It is not a standalone AI plugin. Codexdian is the Obsidian interface. It still depends on a working local codex CLI installation.
What You Can Do
- open Codex in an Obsidian side pane
- chat with the current vault as the working directory
- keep multiple conversations in tabs
- attach the current note as a per-conversation reference document
- remove that reference note before the first message if you want a clean conversation
- switch model and thinking level from the composer
- use the
YOLOtoggle to clearly switch between safer and more autonomous approval behavior - watch streamed replies, tool calls, file changes, and errors in one place
Before You Install
You need:
- Obsidian desktop
- a working Codex CLI on the same machine
- valid Codex / OpenAI authentication for that CLI
If codex works in your terminal, Codexdian can usually use it too. If codex is not on your default PATH, set a custom binary path in plugin settings.
Important: Obsidian Users Do Not Need To Build The Plugin
Regular users do not need npm install or npm run build just to use Codexdian.
Those commands are only for contributors who want to modify the source code.
Install For Obsidian Users
Preferred: Download the packaged ZIP from Releases.
- Download the latest packaged release ZIP.
- Create this folder inside your vault:
.obsidian/plugins/codexdian - Extract the
codexdianfolder from the ZIP into that location, or copy these files into that folder:manifest.json,main.js,styles.css - Open Obsidian.
- Turn off Safe Mode if needed, then enable
CodexdianinSettings -> Community plugins.
Fallback:
If you downloaded the whole repository ZIP instead of a release, move the built files above into .obsidian/plugins/codexdian.
First-Time Codex CLI Setup
Codexdian needs the CLI to already be installed and authenticated.
OpenAI's official Codex CLI docs currently show this npm install flow:
npm i -g @openai/codex
codex
On first run, the CLI will prompt you to sign in with ChatGPT or an API key.
Official docs:
Windows note:
OpenAI currently documents Windows support for Codex CLI as experimental. In practice, Codexdian works best when the codex command already runs successfully in the same environment Obsidian uses.
Quick Start
- Open any note you want to work from.
- Open
Codexdianfrom the ribbon or Command Palette. - Check the composer row at the bottom.
- Confirm the reference note chip if you want the current note included.
- Click the
xon that chip if this conversation should not reference a note. - Choose your model, thinking level, and
YOLOstate. - Type your request and press
Enter.
Reference Document Behavior
Codexdian keeps the current note as an optional per-conversation reference document.
- Before the first message, the active note can be attached automatically.
- Clicking the close button on the chip removes that note from the current conversation.
- If the conversation has not started yet, selecting another note can attach the new note again.
- After the conversation starts, the reference stays stable until you start a new session.
Permission Modes And The YOLO Toggle
Codexdian exposes the plugin's approval behavior in a way that is easy to see while chatting.
Suggest: read-focused and saferAuto Edit: file edits can be auto-approvedFull Auto: all actions auto-approvedYOLO: the composer shortcut for quickly toggling into or out ofFull Auto
If you want a safer default, change the permission mode in plugin settings.
Commands
Open chat viewNew tabNew session (in current tab)
Composer Shortcuts
Entersends the messageShift+Enterinserts a newlineCtrl+Caborts the current response
Settings
Current settings include:
- custom Codex CLI path
- default model
- thinking level
- permission mode
- maximum tabs
- system prompt
- response locale
- environment variables
- auto scroll
Troubleshooting
If messages do not send, check these first:
- Run
codexin a normal terminal outside Obsidian. - Make sure the CLI can start and is already authenticated.
- If needed, set the full Codex binary path in plugin settings.
- Confirm the plugin folder contains
manifest.json,main.js, andstyles.css. - On Windows, verify that Obsidian can access the same Codex installation you tested in the terminal.
More help: SUPPORT.md
For Developers
Only contributors need this section.
npm install
npm run check
npm run build
Useful scripts:
npm run devfor rebuilds while iteratingnpm run checkfor TypeScript validationnpm run buildfor production output
See CONTRIBUTING.md.
Roadmap
- clearer in-plugin onboarding
- screenshots and short demo media
- packaged releases for easier installs
- better startup and authentication troubleshooting
- richer context controls beyond a single reference note
Contributing
Issues and pull requests are welcome, especially for:
- onboarding and installation clarity
- UI polish
- Codex CLI startup reliability
- reference-note and context workflow improvements
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.