docs/docs/en/ai/opencode/index.md
:::warning Content Under Development
This page is still being written. Some sections may be incomplete or subject to change.
:::
OpenCode is an open-source terminal AI Agent — supporting 75+ models (Claude, GPT, Gemini, DeepSeek, etc.), not locked to any vendor, letting you freely choose the best model for your needs. After connecting it to NocoBase, you can use natural language to create data tables, build pages, configure workflows, while maintaining full control over model selection and costs.
<!-- Screenshot needed: OpenCode operating NocoBase in terminal -->OpenCode is developed by Anomaly Innovations (GitHub 140k+ Stars), positioned as "a vendor-unlocked terminal AI Agent." Written in Go, it provides a beautiful TUI interface. Core features:
OpenCode also supports integration with VS Code, JetBrains, Zed, Neovim, and other editors, as well as a standalone desktop application.
If you're deciding which AI Agent to use for operating NocoBase, here are the scenarios where OpenCode fits best:
OpenCode works with NocoBase in the following way:
You (Terminal / VS Code / JetBrains / ...)
|
└─→ OpenCode
|
├── 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:
Copy the prompt below to OpenCode, 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.