reallygood8317k downloadsRun OpenAI Codex CLI in your vault, generate PNG or SVG visuals from notes, and set up oh-my-codex.
Run OpenAI Codex CLI inside Obsidian, with note context, visual generation, Memory Map search, and one-click setup helpers.
Codex Lab is a desktop-only Obsidian plugin that wraps your authenticated Codex CLI session. It is built for users who want an ObsidianCode-like agent sidebar, but powered by Codex instead of Claude Code.
Core chat and visual generation are routed through Codex CLI. Codex Lab does not require an OpenAI API key for normal use.
Latest BRAT release: 0.3.0
Install with:
https://github.com/reallygood83/codexian
+ or remove noisy notes with x./ to open a scrollable Codex-style command menu.gpt-5.5, gpt-5.4, and fallback Codex model options. Settings still allow manual model IDs.codex.cmd spawn issues by running the Codex Node entrypoint directly when needed.Codex Lab can generate and embed PNG or SVG visual assets from the current note.
Supported visual types:
Flow:
PNG via Codex image generation or SVG via Codex code generation.Important details:
image_generation.subject, composition, style, environment, lighting, typography, details, and aspect_ratio.Open Obsidian Settings → Community plugins → Codex Lab.
Codex Lab settings include:
codex, npm, node, git, and omx.@openai/codex and oh-my-codex, then runs omx setup and omx doctor.npm install -g @openai/codex@latest.codex features enable image_generation.kepano/obsidian-skills into ~/.codex/skills.obsidian-skills is not an Obsidian community plugin. It is an Agent Skills repository that teaches Codex CLI about Obsidian Markdown, Bases, JSON Canvas, Obsidian CLI workflows, and Defuddle web extraction.
image_generation enabled for PNG visual generation.Recommended CLI setup:
npm install -g @openai/codex oh-my-codex
codex login
codex features enable image_generation
omx setup
omx doctor
Platform notes:
/opt/homebrew/bin/codex.%APPDATA%\npm\codex.cmd. When this .cmd wrapper causes Node spawn issues, Codex Lab runs the underlying @openai/codex/bin/codex.js entrypoint through node.Codex Lab supports BRAT installation from GitHub releases.
https://github.com/reallygood83/codexian
Each release includes the files BRAT needs:
main.jsmanifest.jsonstyles.cssIf BRAT does not update immediately, use BRAT's plugin update command or restart Obsidian.
Codex Lab is designed to make Obsidian notes feel native inside Codex CLI:
x to exclude a note when you want a note-independent conversation.Codex Lab: Attach current note to chat from Obsidian commands or bind it to a hotkey.Memory Map is a local, API-free way to find relevant notes in your vault.
User flow:
+.Memory Map uses note titles, tags, links, backlinks, headings, keywords, folders, modified times, URL-noise filtering, and BM25-style term scoring.
Memory Map data is saved locally in the vault:
.codexian/memory/index.json
Available commands:
Codex Lab: Build Memory MapCodex Lab: Find related notes for current noteOpen Obsidian Settings → Community plugins → Codex Lab.
Codex CLI path only if auto-detection fails.PATH under environment variables only if Obsidian cannot find codex, npm, git, or omx.Codex CLI path may point to codex.cmd; Codex Lab will internally prefer the matching codex.js entrypoint when available..cmd workaround.Review permission mode until you trust the current vault workflow.npm install
npm run build
Manual install for local development:
<vault>/.obsidian/plugins/codex-lab/
main.js
manifest.json
styles.css
Then enable Codex Lab in Obsidian settings.
This repository includes a GitHub Actions workflow that builds and uploads BRAT assets when a tag matching the manifest version is pushed.
Example:
git tag 0.2.15
git push origin 0.2.15
Codex Lab is in active MVP development. Current focus areas:
Created by 배움의 달인 / @reallygood83.