Starting the gateway
Where data lives
All data stays on your machine. Nothing is sent anywhere except to the model provider you configure.
Ports and access
The gateway listens on port3000 by default. Change it with the PORT environment variable in .env.
Clients connect over HTTP (config API, file uploads) and WebSocket (chat streaming). Both use the same port.
Environment variables
These are deployment knobs only — product settings (provider, model, API keys) are managed in the Settings UI or via the CLI.API routes
The gateway exposes HTTP and WebSocket endpoints. All routes except health and pairing require authentication.Configuration system
Spaceduck uses a single config file (spaceduck.config.json5) validated by a Zod schema. You can modify it through three surfaces:
