# 快速入门

> 只需几分钟即可启动并运行 Foundry。安装向导会自动配置底层架构（Docker）、完成身份验证并打开控制面板。

Source: https://bifrost5.com/zh/foundry/docs/quickstart/

# 快速入门

Information

Once your first run works, Production-Grade keeps it safe in the cloud and lets you check in from your phone.

[See editions](/zh/foundry/docs/editions)

只需几分钟即可启动并运行 Foundry。安装向导会自动配置底层架构（Docker）、完成身份验证并打开控制面板。

## 前置要求

- Node.js 18+（推荐 LTS 版本，可通过 [nvm](https://github.com/nvm-sh/nvm) 安装）

- Docker 与 Docker Compose，用于运行 DragonflyDB 状态存储

- 至少一个你已付费的 AI 服务商 CLI 或 API key（BYOK）：Cursor CLI、Claude、Gemini、Codex 或本地 Ollama 模型

## 安装与启动

```
# 1. Clone and install
git clone https://github.com/bifrost5/foundry.git
cd foundry
npm install

# 2. Run the setup wizard
# Starts the infrastructure, sets up auth and state, and opens the dashboard
npm run setup
```

**Visit:** `http://localhost:5173` to manage your software factory. Then pick a path in [Workflows](/zh/foundry/docs/workflows).

## 手动配置（无头模式或 CI 环境）

若不便使用图形化向导（例如在无浏览器界面的服务器上），可采用手动配置。包管理器支持 npm 与 pnpm。

```
npm install && npm run build
docker-compose up -d
redis-cli -h localhost -p 6499 ping   # should answer PONG
```

默认状态存储端口为 **6499**。如需自定义主机或端口，请在执行每条 CLI 命令时传入 `--redis-host` 和 `--redis-port` 参数。
