Skip to content

Latest commit

 

History

145 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex Studio — local-first image operations through your Codex session

CI status Project site Bun 1.3.14 GitHub stars MIT license

Codex Studio is a local image studio. You create, review, and organize AI images with your Codex/ChatGPT login.

Project site · Source and issues

The app runs on your machine. The UI is React/Vite. The API is Bun/Hono. Image jobs run through codex app-server and your local ChatGPT login.

The main Codex path does not need OPENAI_API_KEY. Assets, job history, logs, and SQLite state live in your Studio Library, not in this repo.

  • Generate and edit images in the studio UI.
  • Browse workspaces, recipes, recent jobs, and assets in one place.
  • Keep job history and catalog metadata in local SQLite.
  • Use Codex first. Optional providers such as Grok Imagine stay behind the backend.
  • Keep local assets out of git.

Product tour

Catalog and persistent jobs Studio Settings
Codex Studio catalog beside the persistent generation queue Codex Studio Settings with the local library path hidden for privacy
Guided recipes Style systems
Codex Studio guided recipe index Codex Studio style pack browser

Quick start

You need:

  • Bun on PATH, able to run the repo scripts
  • Codex CLI, signed in with ChatGPT, with codex app-server
  • A modern browser

Grok Imagine is optional.

  1. Install Grok Build.
  2. Run grok login.
  3. Make sure that bun run providers:preflight -- --provider=grok reports canAttempt=true.

Studio reuses that CLI login. It does not store XAI_API_KEY. Home and the Styles recipe support Codex and Grok. Styles can generate from a prompt or from managed library references. Codex stays the first default provider.

App readiness is the source of truth. Bun and Codex version strings are only diagnosis. If the Codex path or app-server support is unclear, run bun run runtime:doctor.

Do not set STUDIO_CODEX_CLI_PATH to a node_modules/.../vendor binary. Use a supported launcher such as the desktop binary or codex.cmd.

Fast path: ask Codex in this repo to run first setup.

Set up Codex Studio for first run.

Manual path:

bun install
bun run studio:init
bun run dev

Then open:

First minute

  1. Start the app with bun run dev.
  2. Make sure that the toolbar shows the local backend and the Codex session as ready.
  3. Choose a workspace or create one.
  4. Open Recipes for guided workflows, or stay in Studio for direct prompts.
  5. Generate. Then review results in the grid and the queue.

Settings

Run bun run studio:init to create local defaults and apply pending SQLite migrations. The command is safe to run again. It does not replace an existing Studio Library.

For manual setup, copy .env.example to .env.local.

By default, the Studio Library lives under your OS home directory as AI-Studio-Library. Set a custom absolute path only when you need one:

# Windows
STUDIO_LIBRARY_DIR=C:\Users\<your-user>\AI-Studio-Library

# macOS
STUDIO_LIBRARY_DIR=/Users/<your-user>/AI-Studio-Library

# Linux
STUDIO_LIBRARY_DIR=/home/<your-user>/AI-Studio-Library

If you use optional external adapters, keep Provider Secrets in backend environment variables. Do not put them in SQLite, logs, screenshots, docs, or committed files.

Grok Build auth stays on the local CLI under GROK_HOME.

Use the provider control in the top Command Center to switch the next image job between Codex and Grok. The control shows runtime readiness. It stores the choice in Studio Settings. Deeper diagnostics stay in the same menu. Codex stays the initial default.

Useful commands

bun run dev
bun run runtime:doctor
bun run providers:preflight
bun run studio:init
bun run check
bun run test
bun run build
bun run validate:fast
bun run validate
bun run validate:release

In VS Code, run the same commands from Terminal -> Run Task. The tracked tasks include 📦 deps, 🧱 init, 🚀 dev, 🏗 build, 🧪 test, ✅ gate, 🛡 release, 🔌 providers, and focused UI or API tasks.

Maintenance:

bun run storage:audit
bun run storage:compact
bun run storage:thumbnails:backfill
bun run tooling:logs:prune

Documentation

Status

Codex Studio is in open-source preview.

  • Local development is documented and works.
  • The default path is Codex-first and local-first.
  • Optional provider adapters are backend integrations, not the product center.
  • Grok Imagine image generation and managed local image edits use your Grok Build CLI login. Native video is a later media-domain decision.
  • Desktop packaging and first-run polish are still in progress.

  • For technical detail, read the docs folder.
  • For feature requests, open an issue or a pull request.
  • If this project is useful, star it or become a sponsor.

Support the further development of this tool 🤍

Sponsor this project Support development on Ko-fi Follow on X

About

Local-first image studio for generating, reviewing, and organizing AI images through Codex.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages