Skip to content
Star LegionsA galaxy worth shaping

Commander resources

Connect to a server

Switch between the local sandbox and a live, server-controlled frontier.

Open the connection menu

In the game, select Sandbox, Live server, or the current connection status in the header. The connection panel contains the game API and optional realtime URL fields.

Set the game API URL

Enter the base URL of a compatible game backend, for example:

https://localhost:4440/api/v1/game

The client appends /state to retrieve snapshots and /commands to submit orders. Use your backend’s actual address. The example is a local development address, not a public server listing.

Choose Connect to server. When connected, the server provides the state of your empire and controls game ticks. Connection feedback appears in the panel and status bar.

Optional realtime connection

If your backend provides a snapshot stream, enter its WebSocket URL:

wss://localhost:4444/game

Leave this field empty to use REST polling. An authenticated session uses the access token stored by the account panel.

Return to the sandbox

Open the connection menu and select Use local sandbox. Your local game is separate from server-authoritative play. Reset sandbox starts a fresh scenario and replaces the local saved game.

Development defaults

Developers can set PUBLIC_GAME_API_URL and PUBLIC_GAME_WS_URL in their environment to provide default connection addresses. These values are public browser configuration. See the project’s .env.example for the expected format.

Find your destination
Play Star LegionsLaunch Frontier Command.OverviewYour gateway to the frontier.CodexLearn the systems behind your empire.RankingsSee how empires measure up.UpdatesFollow the evolution of the frontier.Getting startedYour first survey, colony, and trade agreement.Controls & shortcutsGet comfortable with galaxy and system views.Connect to a serverSet up your live game connection.Frequently asked questionsAnswers for new commanders.CreditsThe people and tools behind Star Legions.doc1 titlewhat page is thisdoc2 titlemore info