A local-first image generation studio powered by your authenticated Codex/ChatGPT session — no
OPENAI_API_KEYrequired for the main workflow.
Codex Studio is an open-source image creation environment built for fast local iteration, reliable job history, and future workflow expansion. Today it is Codex-first. Over time, it is designed to support multiple workflow types and providers behind a consistent studio UX.
- Creative developers building image pipelines locally
- Technical artists who need repeatable generation/editing workflows
- Product teams prototyping AI-assisted visual tooling
- Open-source contributors interested in workflow-driven studio systems
- Install dependencies and initialize your local studio library.
bun installbun run studio:init
- Start the development environment.
bun run dev
- Confirm everything is healthy.
- UI: http://localhost:17222
- Local API health: http://localhost:17223/api/health
- No API key required for the primary Codex flow.
- Uses your local authenticated Codex/ChatGPT session.
- Persistent job queue + traceability backed by SQLite.
- Library-backed storage keeps assets, logs, and transcripts outside the repo.
- Full creative UI with recipes, workspaces, visual grid, and review tools.
- Extensible architecture designed for multi-workflow evolution.
Codex Studio starts with a strong image-generation core and a clear path to broader workflow support.
| Scope | Current status | Direction |
|---|---|---|
| Image generation/editing | Production-ready locally | Continue hardening and quality improvements |
| Workflow model | Codex-first runtime | Add more workflow types over time |
| Provider boundary | Adapter-based | Expand provider compatibility without UI rewrites |
| Studio UX | Unified queue + review surfaces | Keep one coherent UX across workflow families |
Codex Studio is being prepared as an open-source platform for image-first creation that can evolve into a multi-workflow studio runtime.
| Pillar | What this means in practice |
|---|---|
| Image-first excellence | Prioritize quality, speed, and reliability for image generation/editing |
| Workflow extensibility | Introduce new workflow families without fragmenting UX |
| Local-first reliability | Keep durable history, assets, and logs under your control |
| Contributor-friendly architecture | Clear boundaries, shared contracts, and docs that reduce onboarding time |
- React/Vite UI collects prompts, recipes, and reference assets.
- Bun/Hono local server creates and supervises persistent jobs.
codex app-serverexecutes real turns for image generation/editing.- Studio Library stores assets, SQLite data, transcripts, and logs.
- UI syncs via HTTP + SSE and maintains compatibility surfaces for continuity.
- Bun in PATH — bun.sh
- Codex CLI installed and authenticated with ChatGPT on the same machine
codex app-serversupport in that installation- A modern browser with IndexedDB support
If Codex or local session auth is missing, the UI may open but real generations will not complete. See docs/TROUBLESHOOTING.md.
The backend reads variables from .env.local. You can let bun run studio:init generate it, or copy from .env.example.
Primary variables:
STUDIO_LIBRARY_DIRSTUDIO_SERVER_PORTSTUDIO_CODEX_WS_PORTVITE_STUDIO_API_BASE
Optional variables for Electron shell:
STUDIO_ELECTRON_API_BASESTUDIO_ELECTRON_RENDERER_URL
Example library paths:
- Windows:
%USERPROFILE%\AI-Studio-Library - macOS:
/Users/<your-user>/AI-Studio-Library - Linux:
/home/<your-user>/AI-Studio-Library
bun run dev
bun run dev:server
bun run dev:ui
bun run dev:electron
bun run studio:init
bun run fmt
bun run lint
bun run check
bun run test
bun run build
bun run validate:fast
bun run validate:full| Topic | Decision |
|---|---|
| Durable source of truth | SQLite + Image Catalog |
| Compatibility visual cache | GenerationBatch[] in IndexedDB (compatibility-only) |
| Live events | GET /api/events (SSE) |
| Canonical local session endpoint | /api/codex/session |
| Product philosophy | Codex-first, local-first, library-backed |
.
├─ apps/local-server/
├─ components/
├─ contexts/
├─ docs/
├─ hooks/
├─ packages/shared/
├─ scripts/
└─ services/
CONTEXT.md— canonical domain vocabularyAGENTS.md— operational rules for agentsSKILLS.md— specialized workflow guidesdocs/ARCHITECTURE.md— current architecturedocs/SERVICES.md— service and integration mapdocs/DEV_GUIDE.md— development conventionsdocs/TOOLING.md— tooling and quality commandsdocs/TROUBLESHOOTING.md— quick diagnostics
-
bun run studio:initcompletes successfully -
bun run devstarts UI + backend -
GET /api/healthreturns healthy response - UI opens and shows readiness status
-
CONTRIBUTING.md,SECURITY.md, andCODE_OF_CONDUCT.mdare reviewed before publishing
Contributions are welcome. Start with CONTRIBUTING.md, then review ROADMAP.md for product priorities.
This project is licensed under the MIT License.
