Concepts
Organizations, workspaces, and what a command can and can't do.
Organizations
Everything in Origami belongs to an organization: its workspaces, its API keys and its members. A key gives access to its organization's workspaces and to nothing else. A workspace of another organization is answered like one that doesn't exist.
People belong to organizations as members, with one of three roles:
| Role | Can |
|---|---|
| Member | Use the workspaces: create and delete them, run commands, read and change files |
| Administrator | Also invite and remove people, and create and revoke API keys |
| Owner | Also make others owners. An organization always has at least one |
Owners and administrators manage people and keys in the console.
Workspaces
A workspace is a filesystem: directories, files, symlinks, permissions and times, as a program expects them. It's kept in object storage, so it lasts beyond any one machine or process, and every client sees the same files.
- Its id looks like
ws_3f9c2a71d0b84e6a5c1d7e20. The API addresses workspaces by id. - Its name is yours to choose, up to 200 characters, and unique within the organization. The command-line client and MCP accept a name wherever they take a workspace.
- A command sees the workspace's files under
/workspace. The files API takes paths relative to it.
Commands
A command is a line of bash, run in a workspace. Today every command runs in an emulated shell inside the service: an implementation of bash and about 90 common commands (ls, grep, sed, awk, find, jq, sqlite3, tar and more), written for agents. It isn't a Linux machine:
- There's no network:
curlisn't available. - There's no Python, Node.js or other interpreter, and nothing can be installed.
- A command that isn't there fails with exit code 127, as in bash.
Running commands lists what's there. Commands in real sandboxes, with any program you like, come later. The executor field of a result already says where a command ran, and is always "shell" for now.
What carries over
- Files under
/workspaceare kept, for every later command and client. - The working directory carries over only if you pass the
cwdof one result to the next command. - Nothing else does. Each command is a fresh shell: variables, functions and aliases are gone. Files outside
/workspace, such as in/tmp, can last for a few commands, but are lost when the workspace hasn't been used for a minute or the service restarts. Don't rely on them.
To keep state between commands, write it to a file in the workspace.
Order and consistency
- A command sees everything written before it started, by any client: another command, an upload, another agent.
- An answer comes once the command's changes are stored. When you get the result, the next client sees what it wrote.
- Commands on one workspace run one after another, in the order they arrive. Commands on different workspaces run at the same time.
So two agents can work in the same workspace, and each sees what the other wrote before its own command began.
Where Origami runs
The service runs in Germany, at Hetzner in Falkenstein, and keeps workspaces in object storage there. A command that only reads takes about 50 ms in the service, and one that writes about 100 ms; the network between you and Germany comes on top. Every answer says how the service spent its time in the Server-Timing header: see Timing.