CroupierCroupier
指南
架构
API 参考
开发
  • C++ SDK
  • Go SDK
  • Java SDK
  • JavaScript SDK
  • Python SDK
  • C# SDK
  • Lua SDK
分析
GitHub
指南
架构
API 参考
开发
  • C++ SDK
  • Go SDK
  • Java SDK
  • JavaScript SDK
  • Python SDK
  • C# SDK
  • Lua SDK
分析
GitHub
  • 入门指南

    • 使用指南
    • 快速开始
    • 安装指南
    • 配置管理
    • 部署指南
  • 核心概念

    • 系统概览
    • 虚拟对象系统
    • 函数管理
    • 权限控制
  • 第三方集成

    • 第三方平台集成
    • OpenAPI 函数注册
  • 运维指南

    • 监控指南
    • 安全配置
    • 故障排查

快速开始

本指南只覆盖当前仓库仍然有效的启动方式:cmd/* 二进制入口加 configs/* 配置文件。

环境要求

  • Go 1.26.x
  • Node.js 22+
  • pnpm 10.22+
  • Docker(可选)
  • buf

安装与构建

git clone https://github.com/cuihairu/croupier.git
cd croupier
go mod download
make proto
make build

构建产物会输出到 bin/:

bin/
├── croupier-server
├── croupier-agent
├── analytics-worker
├── ingest
└── ...

运行服务

1. 准备本地配置

cp configs/server.yaml configs/server.local.yaml
cp configs/agent.yaml configs/agent.local.yaml

2. 启动 Server

./bin/croupier-server --config configs/server.local.yaml

默认端口:

  • HTTP: 18780
  • NNG Control: 19090

3. 启动 Agent

./bin/croupier-agent --config configs/agent.local.yaml

4. 启动 Dashboard(可选)

cd dashboard
pnpm install
pnpm dev

验证

curl http://localhost:18780/api/v1/monitoring/health

下一步

  • 配置管理
  • 部署指南
  • 开发文档
在 GitHub 上编辑此页
最后更新: 2026/3/19 10:26
Prev
使用指南
Next
安装指南