Before you start
- A PlatformDTC account with access to the store whose theme you want to build.
- The Codex CLI installed.
1. Add the server
~/.codex/config.toml yourself:
2. Sign in
1
Sign in to PlatformDTC
Sign in with your PlatformDTC account if you are not already.
2
Choose a store and permissions
The consent screen names the client asking for access and the permissions it requests. Pick the
store, untick any permission you do not want to grant, and approve.
3
Return to Codex
The login completes in your terminal. Codex stores the tokens and refreshes them.
3. Build
Startcodex and describe the change:
check_theme and returns a preview_theme link. The theme also opens in the dashboard editor
with the change applied.
4. Publish
Ask Codex to publish. By default the publish waits for your approval — the tool returnspending_approval until you approve it in Settings → Developer → Build with your agent. See Scopes and approvals.
Headless use (CI)
For automation with no browser, you can use a staticsq_agt_* key with the theme scopes instead
of OAuth. Put it in an environment variable and point Codex at it: