# Workspace architecture Smolcloud handles sign-in, permissions and deployments. Your apps and sandboxes run on your workspace’s compute. Your PostgreSQL databases and bucket files live there too. You can use any of these on its own. > 1. **People and coding agents** > Dashboard, CLI or API > 2. **Smolcloud management** > Sign-in, permissions and deployments > > **Your workspace compute** > > - **App machine** > Apps and PostgreSQL databases > - **Sandbox worker** > Linux microVMs. Pauses and snapshots on local disk. > - **Bucket storage** > Files on a private volume > - **Model gateway** > Calls model providers with your keys A worker provides the compute. You can sign in and create projects before one is attached. To check capacity, open **Settings → Workspace** and look under **Compute**. ## What can Smolcloud see? Management keeps accounts, permissions, app settings and deployment records. App source passes through management when you upload it. Sandbox commands run in isolated Linux machines on the worker. Management tracks each job’s status and handles the result it returns. ### Follow a file When an app uploads a file to a bucket, the storage router checks access and forwards the file to a private volume on your compute. The router can see the file contents in transit. Management keeps an index of file names, sizes and hashes, and records who has access. A sandbox needs a [temporary grant](sandbox-resources.md) to read or write bucket files. ### Follow an AI request When you add a provider key, your browser encrypts it for the model gateway on your compute. The gateway uses the key to call the provider. Apps and sandboxes use scoped credentials. Management stores a key reference and the last four characters. Prompts and responses pass through the management router, and the model provider receives the conversation. A compromised dashboard could capture a new key as you enter it. An administrator on the gateway machine can read the key from memory. [Model access and key security](workspace-security.md#who-can-read-my-provider-key-or-my-prompts). ## What can I recover if a worker fails? Pauses and snapshots stay on the worker’s disk. If the worker restarts with that disk intact, you can resume a paused sandbox or start a session from a snapshot until it expires. If the disk fails, work saved only there can be lost. Keep source in your repository and export important files to independently backed-up storage. [Sandbox retention](sandbox-questions.md#which-files-survive). ### Recover work - **Apps and PostgreSQL.** An operator can restore them from an off-host backup of the workspace’s app machine. - **Bucket files.** The management backup includes the file index, alongside accounts and configuration. Restoring the files also requires a backup of the workspace’s bucket volume. - **AI provider keys.** A replacement gateway needs its backed-up key records and the private key that decrypts them. You can also enroll a new provider key.