Game Servers

Counter-Strike 2

Deploy a Counter-Strike 2 server via API

4 GB

RAM

200%

CPU

40 GB

Disk

What is Counter-Strike 2

The next era of the world's premier competitive FPS. Host private CS2 matches and community servers via the API.

The values above are a recommended starting point — set RAM, CPU and disk per API call and scale whenever you like.

Deploy Counter-Strike 2 with the SDK

deploy.ts
import { CloudClient } from "@enzonic/cloud-api";

const cloud = new CloudClient({ apiKey: process.env.CLOUD_API_KEY! });

// Resolve the Counter-Strike 2 egg by name (ids vary per panel)
const eggs = await cloud.eggs();
const egg = eggs.find((e) => e.name.includes("Counter-Strike 2"))!;

const server = await cloud.servers.create({
  name: "counter-strike-2-1",
  eggId: egg.id,
  region: "USA",
  ramMb: 4096,
  cpuPercent: 200,
  diskMb: 40960,
});

await cloud.servers.power(server.id, "start");

Or with REST (curl)

deploy.sh
# 1. Find the Counter-Strike 2 egg id
curl -s https://cloud.api.enzonic.com/v1/eggs \
  -H "Authorization: Bearer $CLOUD_API_KEY"

# 2. Create the server (replace EGG_ID with the id from step 1)
curl -X POST https://cloud.api.enzonic.com/v1/servers \
  -H "Authorization: Bearer $CLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "counter-strike-2-1",
    "eggId": EGG_ID,
    "region": "USA",
    "ramMb": 4096,
    "cpuPercent": 200,
    "diskMb": 40960
  }'

Manage it end-to-end

One key drives power, console, commands and files.

// Power, console & files — all from the one key
await cloud.servers.power(server.id, "restart");
await cloud.servers.command(server.id, "say Hello from the API");
const usage = await cloud.servers.resources(server.id);

Related

Deploy Counter-Strike 2 in seconds

Create an account, grab an API key, and deploy by code.

Start free
Counter-Strike 2 via API — Enzonic Cloud API | Enzonic Cloud API