Quick Start
This guide only covers the startup methods that are still valid today:
Server <-> Agentuses a single internal session linkSDK / GameServer / third-party local applications <-> Agentuse the Agent's local gateway- The historical
gRPCorlegacy REQ/REPdocumentation is no longer the basis for new integrations
Besides the default sidecar agent, there are two other agent types — devops-agent (bastion proxy and process supervision) and capture-agent (CDC data capture) — deployed independently as needed.
Environment Requirements
- Go
1.27.4 - Node.js
24+ - pnpm
11+ - Docker (optional)
buf
Installation and Build
bash
git clone https://github.com/cuihairu/croupier.git
cd croupier
go mod download
make proto
make buildBuild artifacts are output to bin/ by default.
Prepare Configuration
For local development, it is recommended to use the example configurations in the repository directly:
bash
cp configs/server.yaml configs/server.local.yaml
cp configs/agent.local.yaml configs/agent.runtime.yamlMeaning of the key ports:
18780: Server REST API19090: Server session/control entry point, for Agents to connect proactively19091: Agent local gateway, for SDK / GameServer / third-party local programs to connect
Notes:
19090is the internal control and session link port and should no longer be understood as agRPCorlegacy transportdedicated port19091is the local access boundary, not aServer -> Agentcallback entry point
Start Services
1. Start the Server
bash
./bin/croupier-server --config configs/server.local.yaml2. Start the Agent
bash
./bin/croupier-agent --config configs/agent.runtime.yaml3. Start the Dashboard (optional)
bash
cd web
pnpm install
pnpm devVerification
Check Server Health
bash
curl http://localhost:18780/healthzCheck Whether the Agent Has Connected to the Server
The Agent list requires authentication and scope headers:
bash
curl http://localhost:18780/api/v1/ops/agents \
-H "Authorization: Bearer ***" \
-H "X-Game-ID: default" \
-H "X-Env: prod"Check the Dashboard
bash
curl http://localhost:8000Check the Local Access Boundary
If you are about to integrate the SDK, make sure the SDK target address points to the Agent's local gateway, for example:
text
127.0.0.1:19091and not the Server's 19090 port.
