docs/docs/en/ai/codex/index.md
:::warning Content Under Development
This page is still being written. Some sections may be incomplete or subject to change.
:::
Codex is OpenAI's official AI coding assistant — it runs in the terminal, can read and write code, execute commands, and help you with everything from coding to system building. After connecting it to NocoBase, you can use natural language to create data tables, build pages, configure workflows, and leverage GPT series models to quickly build business systems.
<!-- Screenshot needed: Codex operating NocoBase in terminal -->Codex is a CLI-based AI Agent from OpenAI, powered by GPT series models (including o3, o4-mini, etc.). It runs in a local sandbox environment, safely executing code and commands. Core features:
If you're deciding which AI Agent to use for operating NocoBase, here are the scenarios where Codex fits best:
Codex works with NocoBase in the following way:
You (Terminal / ...)
|
└─→ Codex
|
├── NocoBase Skills (enables Agent to understand NocoBase configuration system)
|
└── NocoBase CLI (executes create, modify, deploy, and other operations)
|
└─→ NocoBase Service (your business system)
Before starting, make sure you have the following environment ready:
npm install -g @openai/codex)Copy the prompt below to Codex, and it will automatically complete NocoBase CLI installation, initialization, and environment configuration:
Help me install NocoBase CLI and complete initialization: https://docs.nocobase.com/ai/ai-quick-start.md (please read the linked content directly)
npm install -g @nocobase/cli
nb init --ui
The browser will automatically open a visual configuration page, guiding you to install NocoBase Skills, configure the database, and start the application. For detailed steps, see Quick Start.
After installation is complete, run nb env list to confirm the environment status:
nb env list
Confirm the output shows the configured environment and its running status.