Local-first knowledge management. Markdown is the source of truth.
A desktop + mobile app for notes, tasks, drawings, and knowledge graphs — built in Rust, synced with Git, powered by an AI agent. No cloud account, no subscription, no vendor lock-in.
Your vault is a folder of .md files. Codex indexes them, links them, and gets out of the way.
- Wikilinks & backlinks —
[[note]]creates connections. The knowledge graph shows how ideas relate. - Live markdown preview — CodeMirror 6 with table rendering, horizontal rules, and inline formatting.
- Kanban boards — task management with decay-based relevance scoring. Untouched tasks fade naturally.
- Excalidraw drawings — visual thinking embedded directly in notes.
- Query blocks —
TABLE,LIST,TASKqueries inline in your documents (like Dataview). - Daily notes & templates — date-indexed journals with variable expansion.
- Git sync — auto-commit + push/pull in the background. Multi-device, no server.
- AI agent — Omegon in the sidebar with full vault read/write access.
- Cross-platform — macOS (notarized DMG), iOS, Linux amd64/aarch64.
Download the latest notarized DMG from Releases. Open it, drag to Applications.
CI builds for x86_64 and aarch64 are available from Releases. Requires webkit2gtk-4.1 and GTK 3.
# Ubuntu/Debian
sudo apt install libwebkit2gtk-4.1-dev libgtk-3-devAd-hoc or TestFlight. Contact the team for access.
# Prerequisites: Rust toolchain + dioxus-cli
cargo install dioxus-cli
# Desktop
cd crates/codex-app && dx build --platform desktop --release
# iOS
cd crates/codex-mobile && IPHONEOS_DEPLOYMENT_TARGET=17.0 dx build --platform ios --device --release- Open Codex
- Choose Clone remote vault
- Enter
git@github.com:styrene-lab/codex-demo-vault.git, branchmain - The demo vault opens with documentation and a live knowledge graph
Or choose Create local vault to start fresh.
codex-core Pure Rust models, query engine, parser, templates, graph layout
codex-store Vault I/O, SQLite index, git/iCloud sync, file watching
codex-app macOS/Linux desktop UI (Dioxus + wry + muda)
codex-mobile iOS companion app (Dioxus mobile)
codex-agent MCP extension for Omegon (vault tools)
All crates share a workspace at the repo root. The desktop and mobile apps depend on codex-core and codex-store. The agent extension is a standalone binary.
- Markdown is canonical. No database is the source of truth — the
.mdfiles are. The SQLite index is derived and rebuilds from disk on every launch. - Local-first. Everything works offline. Sync is optional and Git-based.
- No Node.js. All JS (CodeMirror, Excalidraw) is vendored as static bundles. No npm, no node_modules, no build step for frontend code.
- No MCP for integration. The agent extension provides vault tools via ACP (Agent Client Protocol), not MCP.
my-vault/
.codex/
config.toml # vault settings (name, sync, appearance)
templates/ # note templates (Note.md, Daily.md, Meeting.md)
notifications/ # git-synced notification queue
.codex-local/ # SQLite index (auto-generated, gitignored)
notes.md
guides/
daily/
drawings/
Codex uses TOML frontmatter (enclosed in +++). YAML (---) is also read.
+++
title = "My Note"
tags = ["project", "idea"]
+++# .codex/config.toml
[sync]
backend = "git"
remote = "origin"
branch = "main"
auto_commit_seconds = 60Codex auto-commits, pulls, and pushes on a timer. Merge conflicts are detected and reported. SSH keys and Git credential helpers are supported.
cargo test -p codex-core -p codex-store269 tests covering: document parsing, query DSL, task decay math, vault lifecycle, tag operations, notifications, git sync (status, commit, pull, push, clone, conflicts), and integration tests.
| URL | What |
|---|---|
| codex.styrene.io | Landing page |
| demo.codex.styrene.io | Demo vault (clone this to get started) |
| demo.codex.styrene.io/graph | Interactive knowledge graph |
Codex is part of the Styrene stack:
- Omegon — terminal-native AI agent harness (powers the Codex agent sidebar)
- Styrene Identity — cross-device identity, key derivation, and vault encryption (planned integration)
Business Source License 1.1 — see LICENSE.
Free for non-production use (evaluation, development, testing, personal use). Change date: 2031. Change license: MIT.
For commercial licensing: licensing@blackmeridian.io