Excalidraw Drawings

Codex embeds Excalidraw for visual thinking — diagrams, sketches, architecture maps, anything you'd put on a whiteboard.

Creating a drawing

How it works

Drawings are stored as .excalidraw files in your vault — they're JSON, so they diff and sync cleanly with Git.

When you open a .excalidraw file, Codex loads the Excalidraw editor in place of the markdown editor. Draw with the full Excalidraw toolset.

Embedding in notes

Embed a drawing in any note with the wikilink syntax:

![my-diagram.excalidraw](/my-diagram.excalidraw/)

Codex renders an SVG preview inline. The SVG is auto-exported every time you save the drawing.

Exporting

Use the export buttons in the drawing toolbar to save as SVG or PNG to disk.

Tips