一、快速开始

Learn how to obtain and deploy the open-source version of Coze Studio, quickly build projects, and experience Coze Studio’s open-source version.

了解如何获取部署扣子工作室开源版,

快速构建项目

体验扣子工作室的开源版。


Environment requirements:

Before installing Coze Studio, please ensure that your machine meets the following minimum system requirements: 2 Core、4 GB

Pre-install Docker and Docker Compose, and start the Docker service.

环境要求:

在安装 扣子工作室 之前,请确保您的机器满足以下 最低系统要求2核、4GB

预安装 DockerDocker Compose,并启动 Docker服务

问题:windows电脑上怎么满足上述要求呢?

二、部署步骤

(一) 检索源代码

# Clone code

git clone https://github.com/coze-dev/coze-studio.git

(二) 配置模型

(1) 复制模型配置文件

Copy the template files of the doubao-seed-1.6 model from the template directory and paste them into the configuration file directory.

模板目录复制doubao-seed -1.6模型的模板文件

并粘贴到配置文件目录中。

cd coze-studio

# Copy model configuration template

cp backend/conf/model/template/model_template_ark_doubao-seed-1.6.yaml backend/conf/model/ark_doubao-seed-1.6.yaml

(2) 修改模型配置文件

2、Modify the template file in the configuration file directory.

2、修改 配置文件目录 中的 模板文件

Enter the directory backend/conf/model.

Open the file ark_doubao-seed-1.6.yaml.

进入 backend/conf/model 目录。

打开 ark_doubao-seed-1.6.yaml 文件。


2、Set the fields id, meta.conn_config.api_key, meta.conn_config.model, and save the file.

2、设置idmeta.conn_config.api_keymeta.conn_config.model字段,然后保存文件。

id: The model ID in Coze Studio, defined by the developer, must be a non-zero integer and globally unique.

Agents or workflows call models based on model IDs.

For models that have already been launched, do not modify their IDs; otherwise, it may result in model call failures.

id扣子工作室 中的 模型ID,由 开发者 定义,必须是 非零整数且全局唯一

智能体工作流 基于 模型ID 调用模型。

对于已经 上线 的模型,请勿修改其ID;否则可能导致 模型调用失败


meta.conn_config.api_key

The API Key for the model service.

用于 模型服务API密钥

In this example, it is the API Key for Ark API Key.

在此示例中,它是 Ark API密钥API密钥

For more information, see Get Volcengine Ark API Key or Get BytePlus ModelArk API Key.

如需更多信息,请参阅 获取火山引擎方舟API密钥获取火山视界ModelArk API密钥


meta.conn_config.model

The Model name for the model service.

In this example, it refers to the Model ID or Endpoint ID of Ark.

For more information, see Get Volcengine Ark Model ID / Get Volcengine Ark Endpoint ID or Get BytePlus ModelArk Model ID / Get BytePlus ModelArk Endpoint ID.

模型服务模型名称

在此示例中,它指的是 方舟的模型ID端点ID

如需更多信息,请参阅 获取火山引擎方舟模型ID/获取火山引擎方舟端点ID获取火山视界ModelArk模型ID/获取火山视界ModelArk端点ID


For users in China, you may use Volcengine Ark; for users outside China, you may use BytePlus ModelArk instead.

对于中国境内用户,可使用 火山引擎方舟;对于中国境外用户,可改用 火山视界ModelArk

(三) 部署和启动服务

3、Deploy and start the service.

When deploying and starting Coze Studio for the first time, it may take a while to retrieve images and build local images.

Please be patient.

During deployment, you will see the following log information.

If you see the message Container coze-server Started, it means the Coze Studio service has started successfully.

3、部署并启动服务。

首次部署并启动 扣子工作室 时,可能 需要一些时间 来拉取 镜像 并构建 本地镜像

请耐心等待。

部署过程中,您会看到 以下日志信息

如果看到消息 Container coze - server Started,则意味着 扣子工作室 服务已成功启动。

# Start the service

cd docker

cp .env.example .env

docker compose up -d

For common startup failure issues,

please refer to the FAQ.

对于常见的 启动失败问题

请参考 常见问题解答

4、 After starting the service,

you can open Coze Studio by accessing http://localhost:8888/ through your browser.

4、服务启动后,

你可以通过浏览器访问 http://localhost:8888/ 打开 扣子工作室


[!WARNING]

If you want to deploy Coze Studio in a public network environment, it is recommended to assess security risks before you begin, and take corresponding protection measures.

如果你想在公网环境 中部署扣子工作室,建议在开始前评估安全风险,并采取 相应的保护措施

Possible security risks include account registration functions, Python execution environments in workflow code nodes, Coze Server listening address configurations, SSRF (Server - Side Request Forgery), and some horizontal privilege escalations in APIs.

可能存在的安全风险包括账号注册功能工作流代码节点中的Python执行环境、Coze Server监听地址配置SSRF(服务器端请求伪造)以及API中的某些 水平权限提升

For more details, refer to Quickstart.

更多详细信息,请参考快速入门

三、开发者指南

Project Configuration - 项目配置

Model Configuration: Before deploying the open-source version of Coze Studio, you must configure the model service. Otherwise, you cannot select models when building agents, workflows, and apps.

模型配置:在 部署 扣子工作室 开源版本之前,你必须 配置模型服务。否则,在构建 智能体工作流应用程序 时,你无法选择 模型


Plugin Configuration: To use official plugins from the plugin store, you must first configure the plugins and add the authentication keys for third-party services.

插件配置:要使用 插件商店 中的 官方插件,你必须首先 配置 插件,并添加 第三方服务认证密钥


Basic Component Configuration: Learn how to configure components such as image uploaders to use functions like image uploading in Coze Studio .

基础组件配置:了解如何配置 图像上传器组件,以便在扣子工作室中使用 图像上传 等功能。


API Reference: The Coze Studio Community Edition API and Chat SDK are authenticated using Personal Access Token, providing APIs for conversations and workflows.

API参考扣子工作室社区版API聊天SDK 使用 个人访问令牌 进行身份验证,为 对话工作流 提供 API


Development Guidelines:

开发指南


Project Architecture: Learn about the technical architecture and core components of the open-source version of Coze Studio.

项目架构:了解 扣子工作室 开源版本的 技术架构核心组件


Code Development and Testing: Learn how to perform secondary development and testing based on the open-source version of Coze Studio.

代码开发与测试:学习如何基于 扣子工作室开源版本 进行 二次开发测试


Troubleshooting: Learn how to view container states and system logs.

故障排除:学习如何查看 容器状态系统日志

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐