OptionalcloudOptionalcookieHow to select cookies from the pool.
OptionalcookiesPool of .ROBLOSECURITY cookie values (without the cookie name prefix). Can be a single string or an array for multiple accounts. Used for classic Roblox web API authentication.
Optional ExampleonCallback invoked when Roblox rotates a .ROBLOSECURITY cookie. Roblox is gradually implementing cookie rotation for security. Use this callback to persist the new cookie value to your storage.
The internal cookie pool is automatically updated, so you only need this callback if you want to persist the new cookie across restarts.
configureServer({
cookies: process.env.ROBLOX_COOKIE,
onCookieRefresh: async ({ oldCookie, newCookie, poolIndex }) => {
await db.updateCookie(poolIndex, newCookie);
console.log('Cookie rotated for account', poolIndex);
}
});
OptionaluserHow to select user agents from the pool.
OptionaluserCustom user agents pool. If not provided, uses built-in defaults. Set to empty array to disable user agent injection.
OpenCloud API key for apis.roblox.com endpoints. Automatically applied as 'x-api-key' header for OpenCloud requests.