Stashbase

Access and security

Who can use a machine, API keys on and for machines, how machines are isolated, and acceptable use

Who can use a machine

A machine belongs to the member who created it. Only they can open its terminal, connect with the CLI or add SSH keys. Workspace owners and admins can see every machine in the workspace (read only), and the owner manages the extra usage cap.

Creating machines requires two-factor authentication on your account.

API keys

  • A key for the machine. When creating a machine in the dashboard, you can let it get its own API key: a read-only personal API key named after the machine's ID, limited to the machine's IP address. It is set as the STASHBASE_API_KEY environment variable, so stashbase on the machine works without you pasting a key. Agents started with stashbase agent run cannot use it: the variable is removed from their environment, the CLI's credentials file is blocked from reading, and they get secrets only through the agent profile. An agent started directly, such as plain claude, can use the key.
  • Managing machines from the API or CLI. Personal API keys need the Manage virtual machines permission to create, start, stop or delete machines and to connect. It is off by default, requires two-factor authentication, and is never given to a machine's own key, so code on a machine cannot control machines.

Create a separate API key for each place you use it, so you can revoke one on its own.

Isolation

  • No admin rights. You work as agent without sudo; Docker runs rootless as the same user.
  • Network. Machines can reach the internet (package registries, git hosts, model APIs). They cannot reach other machines, private networks or the cloud provider's metadata service, and outgoing mail ports are blocked.
  • Terminal access. The dashboard and the CLI connect with short-lived certificates; the machine's host key is pinned, so connections only ever reach your machine.
  • Updates. Machines install security updates every day without restarting.

Acceptable use

Machines are for development and running agents. Using one to harm others, such as mining cryptocurrency, sending spam, scanning or attacking other systems, or hosting malware or illegal content, is not allowed.

Abuse gets the machine stopped right away and the account permanently banned from all of Stashbase, not just virtual machines.

On this page