docs/docs/en/ai/quick-start.mdx
NocoBase fully supports AI Agent collaboration — you can use natural language to complete data modeling, page building, workflow orchestration, permission configuration, and even custom plugin development. Whether you use Claude Code, Codex, Cursor, or other AI tools, you can work with NocoBase through these two foundational components:
CLI supports two common initialization methods:
nb init), so no manual installation is needed.Once you install CLI and complete initialization, your AI Agent can directly operate your NocoBase application.
Before getting started, make sure the following environment requirements are met:
import { Tab, Tabs } from '@rspress/core/theme';
If you already have a running NocoBase instance, you can skip to the next section: Connect AI Agent to an Existing NocoBase.
If you don't have a NocoBase application yet, you can use CLI to install and initialize a new NocoBase application, then connect AI Agent to it.
<Tabs> <Tab label="Manual Installation and Connection" value="manual-install">npm install -g @nocobase/cli@beta
nb --version // Confirm successful installation
nb init --ui
:::tip Configuration file storage
Configuration files and application data are stored in your home directory by default. See NB_CLI_ROOT environment variable for details.
:::
The browser will automatically open a visual configuration page, guiding you through 5 steps:
After installation is complete, open your browser and visit http://localhost:13000 (default port), then log in with the admin account you just set up.
(If you prefer working in the command line, you can also run nb init to enter the interactive wizard, or nb init --env=app -y to use default configuration with one command.)
Start a new or restart the AI Agent session, and you can let the AI Agent start operating NocoBase. CLI configuration is stored in a global directory (default ~/.nocobase/), accessible from any directory.
Copy the prompt below to your AI assistant (Claude Code, Codex, Cursor, Trae, etc.), and it will complete CLI installation and guide you through initializing a new NocoBase:
Help me install NocoBase CLI and complete initialization: https://docs.nocobase.com/ai/ai-quick-start.md (please read the linked content directly)
After configuration is complete, restart your AI Agent session and you can start operating NocoBase.
</Tab> </Tabs>If you already have a running NocoBase instance, you can connect AI Agent to it directly. Since AI capabilities are evolving rapidly, only the latest beta version provides the full experience. The minimum required version is 2.1.0-beta.20 — we strongly recommend updating to the latest.
<Tabs> <Tab label="Manual Connection" value="manual-connect">npm install -g @nocobase/cli@beta
nb --version // Confirm successful installation
nb init --ui
:::tip Configuration file storage
Configuration files are stored in your home directory by default. See NB_CLI_ROOT environment variable for details.
:::
The browser will automatically open a visual configuration page. In the first step "Start Configuration", select "Connect to Existing Application", then:
http://localhost:13000/api)No need to configure installation method, database, or admin account — the wizard will skip those steps.
Start a new or restart the AI Agent session, and you can let the AI Agent start operating NocoBase. CLI configuration is stored in a global directory (default ~/.nocobase/), accessible from any directory.
Copy the prompt below to your AI assistant. It will complete CLI installation and guide you through connecting to your existing NocoBase instance. Select "Connect to Existing Application" in the first step of the visual wizard:
Help me install NocoBase CLI and complete initialization: https://docs.nocobase.com/ai/ai-quick-start.md (please read the linked content directly)
After configuration is complete, restart your AI Agent session and you can start operating NocoBase.
</Tab> </Tabs>If you need to manage existing NocoBase instances (such as test or production environments), or switch between multiple environments, see Environment Management — covering environment checks, adding environments, upgrades, and troubleshooting.
Describe your requirements in natural language, and AI helps you complete data modeling, page building, and workflow orchestration — replace manual configuration with conversation. See AI Building Quick Start.
If you need to develop custom plugins, AI can help too — from scaffolding generation to component code and business logic, covering the full plugin development process. See AI Plugin Development.
Collaborate with AI employees directly in the NocoBase interface — data analysis, report generation, translation, decision support, without leaving your business system. See AI Employees.
If you already have a NocoBase application running, or have successfully completed initialization and want to continue developing, debugging, or managing your application, see NocoBase CLI Command Reference for full parameter documentation of all nb commands.