# Stargate (full text) Source: https://stargate-client.com/ (relative links below are relative to this URL). Last built: 2026-10-30 > Stargate is a desktop GUI client for SpacetimeDB, available for macOS, Windows, and Linux. It is for developers building multiplayer games and real-time applications on SpacetimeDB. It works with both Maincloud (the managed SpacetimeDB cloud) and self-hosted instances, and lets you browse tables, inspect the schema, call reducers, stream logs, run SQL, watch live data over WebSocket, and manage scheduled tasks. It talks to SpacetimeDB's HTTP and WebSocket API, so no extra server component is required. ## What it is - Category: developer tool and database client for [SpacetimeDB](https://spacetimedb.com). - For: developers building multiplayer games and real-time apps on SpacetimeDB. - Platforms: macOS, Windows, Linux (native app, no separate runtime to install). - Hosting: connects to any SpacetimeDB host, including Maincloud, a self-hosted server (spacetime start or Docker), and a local instance on localhost. - Language-agnostic: talks to SpacetimeDB over its HTTP and WebSocket API, so it works regardless of whether the module is written in Rust, C#, TypeScript, or C++, and alongside any client (Unity, Unreal, web, or custom). - Pricing: reading is free, with all inspection and query features. A per-device license (priced in Swiss francs, CHF) unlocks read-write mode for mutating reducers and write SQL. - Author: Fabian Bösiger. Not affiliated with SpacetimeDB or Clockwork Labs. ## Use cases - Debug multiplayer game state by watching tables and the live view update as players act. - Inspect a database without the spacetime CLI: browse tables, read the schema, run SQL. - Test reducers by hand with typed arguments to reproduce a bug or seed data. - Read and follow module logs while developing. - Run ad-hoc SQL and export results to CSV or JSON. - Audit a production database in read-only mode with no risk of changing it. ## Features - Table browser: page through tables, filter rows, export to CSV or JSON. - Schema inspector: view tables, reducers, indexes, and constraints, kept in sync with the database. - Reducer console: call any reducer by name with typed arguments (write calls need read-write mode). - Live logs: tail recent log lines or follow them live. - SQL console: run SQL queries and export the results. - Live view: subscribe over WebSocket and watch rows update live. - Scheduled tasks: see which reducers are scheduled to run, and when. - OpenAPI export: generate an OpenAPI 3.1 document for the connected database. - Themes: light and dark. - Read-only by default: writes must be turned on deliberately. ## How to connect Sign in with SpacetimeDB CLI credentials, a token, or a browser login, choose a server and database, and connect. Credentials and saved logins stay on the user's machine. ## Links - Website: https://stargate-client.com/ - Download: https://github.com/fabianboesiger/stargate/releases/latest - Source code: https://github.com/fabianboesiger/stargate --- # Self-host SpacetimeDB and connect a GUI URL: https://stargate-client.com/guides/self-hosted-spacetimedb/ Updated: 2026-10-30 To inspect a self-hosted SpacetimeDB server, start it with spacetime start or the clockworklabs/spacetime Docker image, then point Stargate at its URL (usually http://localhost:3000) and sign in with your CLI credentials or a token. For a remote server behind the nginx config from the official guide, connect through an SSH tunnel. SpacetimeDB can run anywhere you can run a single binary or container. Self-hosting is common for local development, for CI, and for teams that want their game or app backend on their own infrastructure instead of on [Maincloud](/guides/maincloud-gui/). This guide shows how to start a self-hosted instance and how to inspect it with Stargate, a desktop GUI client for SpacetimeDB. ## 1. Start a SpacetimeDB server You have two common options. Both serve the HTTP and WebSocket API on port 3000 by default. **With the spacetime CLI.** Install the CLI and start a local server: ```sh # macOS and Linux curl -sSf https://install.spacetimedb.com | sh # start a local server spacetime start ``` On Windows, install the CLI from PowerShell with `iwr https://windows.spacetimedb.com -useb | iex`, then run `spacetime start`. **With Docker.** The official image runs the same server in a container: ```sh docker run --rm --pull always -p 3000:3000 clockworklabs/spacetime start ``` Add a volume if you want data to survive container restarts. Then publish a module to it as usual, for example `spacetime publish my-database --server local`. ## 2. Connect Stargate to the server 1. [Download Stargate](/#top) for macOS, Windows, or Linux and open it. 2. Under **Server**, pick the server from the list. Stargate reads the servers you configured in the spacetime CLI (`~/.config/spacetime/cli.toml` on macOS and Linux, `%LocalAppData%\SpacetimeDB\config\cli.toml` on Windows). For a server that is not in that file, tick **Custom server** and enter its URL, for example `http://localhost:3000`. 3. Under **Authentication**, keep **Use CLI credentials** ticked to reuse the token from `spacetime login`, or paste a SpacetimeDB token. 4. Click **Connect** and choose a database from the list of databases owned by your identity. Stargate opens read-only. You can browse tables, read the schema, run read SQL, follow logs, and open the live view straight away. Calling mutating reducers and running write SQL needs [read-write mode](/#pricing), which you turn on deliberately. ## 3. Connect to a remote self-hosted server The [official self-hosting guide](https://spacetimedb.com/docs/how-to/deploy/self-hosting) runs SpacetimeDB on `127.0.0.1:3000` behind nginx with HTTPS. Register the server in your CLI with `spacetime server add self-hosted --url https://your-domain.example`, and it shows up in Stargate's server list. That nginx config is deliberately strict: remote clients may only reach `/v1/identity` and the subscribe endpoint, and every other route is limited to localhost. Stargate also uses the schema, SQL, logs, and reducer call routes, so through that proxy those views stay empty. You have two safe options: - **SSH tunnel (recommended).** Forward the server's local port to your machine and connect Stargate to `http://localhost:3000`: ```sh ssh -L 3000:localhost:3000 you@your-server ``` Nothing new is exposed to the internet, and Stargate behaves as if the server ran locally. - **Allow trusted IPs.** Add `allow ;` to the restricted `location` blocks in nginx for the routes you need. Keep the default deny for everyone else, since those routes include SQL and reducer calls. ## Which routes Stargate uses Stargate is a pure client of the SpacetimeDB HTTP and WebSocket API. There is no agent or extra service to install on the server. It calls: | Feature | Route | | --- | --- | | Health check | `GET /v1/health` | | Database list | `/v1/identity/{identity}/databases` | | Schema inspector | `/v1/database/{name}/schema` | | Table browser and SQL console | `/v1/database/{name}/sql` | | Logs | `/v1/database/{name}/logs` | | Reducer console | `/v1/database/{name}/call/{reducer}` | | Live view | `/v1/database/{name}/subscribe` (WebSocket) | Use this list when you write proxy or firewall rules for a self-hosted instance. ## Troubleshooting - **Connection failed.** Check that the URL includes the scheme (`http://` or `https://`) and the port, and that `curl http://localhost:3000/v1/health` answers from the same machine. - **No databases found for this identity.** The token belongs to a different identity than the one that published the database. Sign in with the same CLI login you used for `spacetime publish`, or paste that identity's token. - **Tables load but logs or SQL do not.** A reverse proxy is blocking those routes. Use the SSH tunnel above. --- # A desktop GUI for SpacetimeDB Maincloud URL: https://stargate-client.com/guides/maincloud-gui/ Updated: 2026-10-30 Stargate connects to databases on SpacetimeDB Maincloud (https://maincloud.spacetimedb.com) with the same login you use for spacetime publish. Pick the maincloud server, keep Use CLI credentials ticked or log in through the browser, choose a database, and you can browse tables, run SQL, follow logs, and watch live updates from one window. Maincloud is the managed, serverless SpacetimeDB platform run by Clockwork Labs. You publish a module with `spacetime publish my-database --server maincloud`, and clients connect to `https://maincloud.spacetimedb.com`. Stargate is an independent desktop client that talks to that same host, so you can look inside a Maincloud database without writing a client or typing CLI commands. ## Connect Stargate to Maincloud 1. Log in with the spacetime CLI if you have not yet: `spacetime login`. It opens a browser where you sign in with GitHub or Google, and links your CLI identity to your Maincloud account. 2. [Download Stargate](/#top) and open it. 3. Under **Server**, choose **maincloud** from the list. Stargate reads the servers configured in your spacetime CLI, and Maincloud is one of them by default. 4. Under **Authentication**, keep **Use CLI credentials** ticked. If you do not use the CLI on this machine, untick it and either click **Login via Browser** (spacetimedb.com with GitHub sign-in) or paste a token. 5. Click **Connect** and pick your database from the list. Tick **Remember login** to save the connection. Saved logins appear on the start screen, so switching between a Maincloud production database and a [local or self-hosted](/guides/self-hosted-spacetimedb/) development database takes one click. ## What you can do with a Maincloud database - **Browse tables.** Page through rows, filter them, and export the result to CSV or JSON. - **Read the schema.** Tables, columns, reducers, indexes, and constraints, as the host reports them. - **Run SQL.** Ad-hoc queries with results in a table and CSV or JSON export. - **Follow logs.** Recent lines first, then new lines as they arrive, with levels highlighted. - **Watch live data.** Subscribe to a table over WebSocket and see inserts and deletes as players act. - **Check scheduled reducers.** See which scheduled tasks exist and when they run next. - **Call reducers.** Fill in typed arguments and call a reducer. This needs read-write mode. ## Production safety Every connection starts read-only. Stargate does not call mutating reducers or run write SQL until you switch the connection to read-write, which needs a [license](/#pricing). That makes it safe to open a live Maincloud database during an incident or a support request, look at real rows, and close it again without a chance of changing anything by accident. ## Stargate and the Maincloud web dashboard The dashboard on spacetimedb.com is the official place to manage a Maincloud database. It shows status, table and reducer counts, energy usage, a usage breakdown, real-time logs, a SQL console, and SpacetimeAuth settings. Use it for billing, usage, and auth configuration. Stargate is built for day-to-day development work inside the data: | Task | Maincloud dashboard | Stargate | | --- | --- | --- | | Usage, energy, and auth settings | Yes | No | | Logs | Yes | Yes | | SQL console | Yes | Yes, with CSV and JSON export | | Table browser with filters | | Yes | | Reducer console with typed arguments | | Yes | | Live view of inserts and deletes | | Yes | | Scheduled tasks | | Yes | | OpenAPI 3.1 export | | Yes | | Same tool for local and self-hosted servers | | Yes | The two work well together: the dashboard for account-level settings, and Stargate open next to the game or app while you build. --- # A GUI for the spacetime CLI URL: https://stargate-client.com/guides/spacetime-cli-alternative/ Updated: 2026-10-30 Stargate covers the inspection side of the spacetime CLI in a desktop window: spacetime describe becomes the Schema view, spacetime sql the Tables and SQL views, spacetime call the Reducers view, spacetime logs the Logs view, and spacetime subscribe the Live view. You still use the CLI to build and publish modules. The spacetime CLI is the official way to create, build, and publish SpacetimeDB modules, and it also has commands for looking inside a running database. Those inspection commands work well in scripts, but they print plain text, take positional arguments that are easy to mistype, and do not let you scroll, filter, or compare results. Stargate puts the same operations in a native desktop app for macOS, Windows, and Linux. ## Command to view mapping | spacetime CLI | What it does | In Stargate | | --- | --- | --- | | `spacetime describe [DATABASE]` | Print the schema | **Schema**: tables, columns, reducers, indexes, and constraints | | `spacetime sql [DATABASE] "SELECT * FROM player"` | Run a SQL query | **Tables** to browse and filter without SQL, **SQL** for ad-hoc queries, both with CSV and JSON export | | `spacetime call [DATABASE] [ARGS...]` | Call a reducer | **Reducers**: pick a reducer, fill typed fields, confirm, and call | | `spacetime logs -f [DATABASE]` | Print and follow module logs | **Logs**: recent lines, then a live stream with levels highlighted | | `spacetime subscribe [DATABASE] ` | Print subscription updates | **Live**: inserts and deletes per table, with pause, clear, and record to file | | `spacetime server list` | List configured servers | **Server** list on the connect screen, read from the same `cli.toml` | Stargate also has views without a direct CLI equivalent: **Scheduled** lists the rows of schedule tables and when each task runs, **Info** shows the server URL, SpacetimeDB version, identity, and table and reducer counts, and the OpenAPI export generates an OpenAPI 3.1 document for the connected database. ## What still needs the CLI Stargate is a client for databases that already exist. Keep using the CLI for: - `spacetime init`, `spacetime build`, and `spacetime publish` to create and deploy modules. - `spacetime generate` to generate client bindings for Unity, Unreal, TypeScript, Rust, or C#. - `spacetime login`, `spacetime server add`, and other configuration. Stargate reads the result from `cli.toml`, so a server added in the CLI appears in Stargate. ## Browse tables without writing SQL In the terminal, seeing what is in a table means writing a query such as `spacetime sql my-game "SELECT * FROM player"` and reading wrapped text output. In Stargate you click the table. Rows are paged, the **Filter rows** box narrows them as you type, and the export action saves the current rows as CSV or JSON through the native save dialog. When you do want SQL (joins, counts, `WHERE` clauses), open the **SQL** view. ## Call reducers with typed arguments `spacetime call` takes arguments as JSON on the command line, which gets awkward for structs, enums, and identities. Stargate reads each reducer's parameter types from the schema and shows one field per argument, labelled with its type. A confirmation step shows the call before it runs. Calling reducers requires read-write mode; on a read-only connection the **Execute** button stays disabled. ## Read-only by default The CLI runs whatever you type against whatever server is the default. Stargate starts every connection read-only and only allows mutating reducers and write SQL after you switch to read-write mode. That is the main reason to prefer a GUI when you look at a production database: you can explore freely without risking a write. ## Next steps - [Self-host SpacetimeDB and connect a GUI](/guides/self-hosted-spacetimedb/) - [Debug a SpacetimeDB module with logs, reducers, and live data](/guides/debug-spacetimedb/) --- # Debug a SpacetimeDB module with logs, reducers, and live data URL: https://stargate-client.com/guides/debug-spacetimedb/ Updated: 2026-10-30 To debug a SpacetimeDB module, keep three views open side by side: the Logs view streaming your module's log output, the Live view showing every insert and delete as it happens, and the Reducers view to call the reducer under suspicion with exact arguments. Stargate gives you all three in one desktop app, plus CSV and JSON export to attach the evidence to a bug report. In SpacetimeDB, game and app logic runs inside reducers on the server, and clients only see the rows those reducers write. When something goes wrong (a player teleports, an item duplicates, a scheduled task never fires), the question is always the same: which reducer wrote what, and when? This workflow answers it without adding print statements to a client or writing a throwaway test harness. ## 1. Stream the module logs Open **Logs**. Stargate loads the most recent lines and then keeps streaming new ones; the badge in the header reads **Live** while the stream is connected. Levels are color-coded (ERROR, WARN, INFO, DEBUG, TRACE), so panics and failed reducer calls stand out. Log from your reducers with the logging macros or functions of your module language (for example `log::info!` in Rust or `Log.Info` in C#). Each line includes the reducer's output, so you can see the arguments a reducer received and the branch it took. ## 2. Watch rows change in the Live view Open **Live** and subscribe to the tables involved. Every change arrives as an event with a timestamp, the table, the row count, and a preview of the row: - **INIT** for the initial rows of the subscription, - **INSERT** for new or updated rows, - **DELETE** for removed or replaced rows. Play the game or use the app as usual and watch the stream. **Pause** freezes the list while you read, **Clear** empties it, and **Record** writes events to a file so you can compare two runs or attach them to an issue. Because SpacetimeDB represents an update as a delete followed by an insert, a single reducer call that touches one row shows up as a DELETE and an INSERT with the same timestamp. ## 3. Reproduce the bug by calling the reducer Once you suspect a reducer, open **Reducers**, filter the list by name, and select it. Stargate shows one input per parameter with its SpacetimeDB type (for example `u64` or `u32`). Fill in the exact values from the log line, confirm, and call. Watch the Live view and Logs to see what it does. This is faster than rebuilding a client to trigger one code path, and it lets you test edge cases (zero, maximum values, an identity that does not exist) that are hard to reach through gameplay. Calling reducers requires read-write mode, so do this against a local or staging database, not production. ## 4. Check the data and export it Open **Tables** and the affected table. Use **Filter rows** to find the rows in question, or open **SQL** for a precise query such as: ```sql SELECT * FROM inventory WHERE owner = 42 ``` Export the rows to CSV or JSON from either view. A small export of the broken state plus the recorded Live view events makes a bug report anyone on the team can follow. ## 5. Scheduled reducers If the bug involves timers (respawns, cooldowns, decay), open **Scheduled**. It lists the rows of every schedule table and when each task runs. Check that the task you expect exists and that its time matches what your code computed, then look in Logs for the scheduled reducer's output when that time comes. In read-write mode you can also stop a scheduled task. ## Debugging production safely For a live game, connect to the production database in read-only mode (the default). Logs, Live view, Tables, SQL reads, and Scheduled all work, and nothing can be written. Reproduce the bug on a [local or self-hosted copy](/guides/self-hosted-spacetimedb/) with read-write mode on. --- # Frequently asked questions ## What is Stargate? Stargate is a desktop client for SpacetimeDB. You can browse tables, inspect the schema, call reducers, stream logs, run SQL, watch live data, and manage scheduled tasks. ## Which operating systems does Stargate support? Stargate runs on macOS, Windows, and Linux as a native app. There is no separate runtime to install. ## macOS says Stargate "cannot be opened" or "can't be verified". How do I open it? Stargate isn't notarized by Apple yet, so macOS blocks it on first launch. To open it anyway: double-click Stargate, and in the warning click Done (do not move it to the Trash). Then open System Settings > Privacy & Security and scroll down to the Security section. You'll see a message that "Stargate" was blocked, with an Open Anyway button next to it. Click it, then enter your login password to confirm. The app launches and is saved as an exception, so afterwards you can open it normally by double-clicking. On macOS Sequoia and later the old right-click > Open shortcut no longer works; you have to use the Open Anyway button in Privacy & Security, which stays available for about an hour after you try to launch the app. ## Windows shows "Windows protected your PC". How do I install Stargate? The installer isn't code-signed yet, so Microsoft Defender SmartScreen warns about it. When the "Windows protected your PC" dialog appears, click the More info link, then click the Run anyway button that appears, and the installer continues. If Run anyway doesn't show, right-click the downloaded .exe, choose Properties, tick Unblock in the Security section at the bottom of the General tab, click OK, then run it again. ## Is Stargate free? Reading is free. A per-device license unlocks read-write mode for mutating reducers and write SQL. You can connect, browse, and query without paying. ## How does Stargate connect to my database? Stargate talks to SpacetimeDB's HTTP and WebSocket API. Sign in with your CLI credentials, a token, or a browser login, pick a server and database, and connect. There is nothing extra to deploy. ## Does Stargate work with SpacetimeDB Maincloud and self-hosted instances? Yes. Stargate connects to any SpacetimeDB host. Point it at a database on Maincloud, at a server you self-host, or at a local instance on localhost while you develop. You just enter the server URL and sign in. ## Is my data safe? Stargate talks straight to your SpacetimeDB host. Credentials and saved logins stay on your machine, and connections default to read-only, so a write only happens when you choose it. ## Does Stargate work with SpacetimeDB modules written in Rust, C#, TypeScript, or C++? Yes. Stargate talks to SpacetimeDB over its HTTP and WebSocket API, so it doesn't care which language your module is written in. Whether your tables and reducers are defined in Rust, C#, TypeScript, or C++, Stargate reads the live schema from the host and shows the same tables, reducers, and logs. ## Can I use Stargate while building a Unity or Unreal game? Yes. Stargate connects to the database your game talks to, not to the game engine, so it works alongside any Unity, Unreal, or custom client. While you playtest, watch the live view to see rows change as players connect and move, and call reducers by hand to reproduce bugs. ## Can I use Stargate for real-time apps, not just games? Yes. SpacetimeDB powers chat apps, collaboration tools, dashboards, and IoT backends as well as games, and Stargate works with any of them. If your data lives in a SpacetimeDB database, you can browse it, query it, and watch it update live. ## Can Stargate manage many databases or room-based instances at once? Yes. Save each server and database once, then switch between them in a click, which helps when a match- or room-based architecture spins up many SpacetimeDB instances. Each saved connection keeps its own login, so you don't retype credentials. ## Is Stargate open source? Stargate is source available. The full source code is published on GitHub so you can read it, audit it, and build from it. ## How do I connect a desktop GUI to a self-hosted SpacetimeDB server? In Stargate, enter the URL of your self-hosted SpacetimeDB server, sign in with your CLI credentials or a token, and choose a database. The same flow works for a server on localhost during development and for a production server you host yourself. ## How do I connect Stargate to a SpacetimeDB instance running in Docker or started with spacetime start? Point Stargate at the instance's URL. For a local server started with spacetime start or a Docker container, that's usually http://localhost:3000. Sign in with your CLI credentials or a token, choose the database, and connect. The same flow works for a remote self-hosted server. ## Why does Stargate fail to load tables or logs from my self-hosted server behind nginx? The reverse proxy config in the official SpacetimeDB self-hosting guide only allows /v1/identity and the subscribe endpoint from remote machines, and blocks every other route except from localhost. Stargate also needs the schema, SQL, logs, and call routes. Either open an SSH tunnel (ssh -L 3000:localhost:3000 you@your-server) and connect to http://localhost:3000, or allow those routes for trusted IP addresses only. ## Is there a graphical client for SpacetimeDB Maincloud? Yes. Stargate is a desktop graphical client that connects to databases on SpacetimeDB Maincloud, the managed cloud. Sign in with your existing Maincloud login, pick a database, and browse it, run SQL, and watch live data from one window. ## How is Stargate different from the Maincloud web dashboard? The dashboard on spacetimedb.com shows an overview, usage, logs, and a SQL console for databases on Maincloud. Stargate adds a filterable table browser with CSV and JSON export, a schema inspector, a reducer console with typed arguments, a WebSocket live view, scheduled tasks, and OpenAPI export, and it uses the same window for Maincloud, self-hosted, and local databases. ## Is Stargate a GUI alternative to the spacetime CLI? For everyday inspection it can be. Stargate covers what you would otherwise run through commands like spacetime sql, call, describe, and logs, in a visual window. You still use the CLI to publish modules. ## How do I view SpacetimeDB tables without using the command line? Download Stargate, connect to your database, and open the Tables view. You get a visual table browser for any SpacetimeDB database, so you can page through rows, filter them, and read the schema without typing a single spacetime command. ## Can I browse and filter a SpacetimeDB database without writing SQL? Yes. The table browser lets you page through rows and filter them without typing a query, so you don't need to write SQL to inspect your data. When you do want SQL, the SQL console is there for ad-hoc queries. ## How can I run SQL queries against a SpacetimeDB database from a desktop app? Open the SQL console in Stargate, type your query, and run it against the connected database. Results appear in a table you can read, scroll, and export to CSV or JSON. Read queries work for free; write SQL needs a read-write license. ## Is Stargate a desktop alternative to a web admin panel for SpacetimeDB? Yes. Instead of deploying and hosting a separate web dashboard, Stargate is a native desktop app you download and point at any SpacetimeDB host. There's no extra service to run; it connects straight to Maincloud, a self-hosted server, or localhost. ## How do I call a SpacetimeDB reducer manually to test it? Use the reducer console. Pick the reducer by name, fill in its typed arguments, and call it to reproduce a bug or seed test data, without writing a throwaway client. Reducers that mutate state require read-write mode. ## How do I monitor SpacetimeDB module logs in real time? Open the Logs view. Stargate loads the recent log lines and then streams new ones as they arrive (the status badge shows Live), with levels highlighted, so you can watch reducer output, panics, and timeouts while you develop your module. ## How do I export data from a SpacetimeDB table to CSV or JSON? Browse the table or run a SQL query, then use the export action to save the rows as a CSV or JSON file through the native save dialog. It is handy for sharing data, attaching it to a bug report, or analysing it elsewhere.