Run OpenClaw on MIOSA
~15 min TypeScript PythonWhat you’re building: Install the open-source assistant on a persistent computer that never sleeps.
Primitives you’ll use: Computer
Agent prompt
Start with your coding agent
Choose how you will use it. The brief installs and runs the real tool on MIOSA, then shapes it for your team or your customers. Copy it into OSA, Claude Code, Codex, or Cursor.
Template coming soon1 What are you building?
Leave it empty and your agent will propose 3 names, pick one, and use it for resources, the domain and branding.
3 Configure
Reference tool
OpenClaw, by OpenClaw Foundation (https://openclaw.ai): an open-source personal AI assistant that runs on a machine you control and is reached through chat apps.
How it works: OpenClaw runs on a persistent device, takes requests from chat apps (WhatsApp, Telegram and others) and works on email, calendar and the web while you are away.
Key capabilities:
Reached from the chat apps you already use
Runs on a persistent device that never sleeps
Works on inbox, calendar and web tasks
Open source
You will install and RUN the real OpenClaw (open source, stewarded by the OpenClaw Foundation). Read its docs first: https://docs.openclaw.ai/start/getting-started. Every install command below comes from them; if the docs and this brief disagree, the docs win.
How it runs on MIOSA
Where it runs -> a MIOSA computer (a persistent desktop with a browser)
State and files -> State, memory and credentials live on the machine. Use a MIOSA computer so the Gateway stays up between conversations, and extend its TTL (`miosa extend`).
Model -> your own provider key, never a MIOSA platform key
Your customers -> one workspace each, isolated from each other
Goal
Install and run OpenClaw on a MIOSA computer, so it can serve my customers. Each customer is isolated in its own workspace; I meter usage and bill them.
Product name: propose 3 product names, pick one, and use it for resource names, the domain and branding. Until you pick, <product-name> stands for it in the commands below.
Scale: a prototype.
Set up
npm i -g @miosa/cli
miosa login && miosa whoami
miosa api-key create <product-name>-key --preset agent
export MIOSA_API_KEY="msk_u_..."
miosa org
Resources
Computer: a persistent Linux desktop with a browser
miosa computer create <product-name>-desktop
Auth and tenancy
Your organization is the platform; customers never get a MIOSA account, they sign into YOUR product. One workspace per customer, created as they onboard, isolates their machines, runs and data.
miosa workspace create <product-name>-customer-1
Tag every machine and run with the customer id in `metadata`, and never query across customers. Meter usage per customer with GET /api/v1/usage and set who pays with PUT /api/v1/bill-to (/docs/platform/usage-and-billing).
Install OpenClaw
Run these inside the computer (its terminal), in order. The commands are from the official docs.
curl -fsSL https://openclaw.ai/install.sh | bash
Check: the install finishes without errors; the next sections configure and start it.
Configure
Node 24.16+ or 26.1+ is required; the installer provisions it when needed. The package route is `npm install -g openclaw@latest --allow-scripts=openclaw`.
Onboarding verifies model access, creates the workspace and configures the Gateway; it asks for your own model provider key.
Channels (WhatsApp, Telegram, Slack and others) are connected by you with each platform's own credentials.
Model: Anthropic (Claude). Calls use my own provider key (entered in the tool's own setup); MIOSA platform keys are never used.
Run it
Start it and prove it works.
openclaw onboard --install-daemon
openclaw gateway status
Check: the tool starts without errors and responds.
Persistence and access
State, memory and credentials live on the machine. Use a MIOSA computer so the Gateway stays up between conversations, and extend its TTL (`miosa extend`).
Check: after the machine pauses and resumes, the tool starts again with its state intact.
Make it a product
Run one Gateway per customer on its own computer in that customer's workspace, so state, memory and credentials never mix.
Limits and costs
Pin the version you tested and update deliberately; these tools change quickly.
Give the tool only the credentials it needs, as secrets, not baked into files.
Prototype: keep it to one machine at the default size, skip replicas and custom hostnames you do not need, and delete everything when you are done.
Acceptance checks
OpenClaw runs on a MIOSA computer and answers a real task.
State survives a pause and resume.
Each customer has its own workspace and its own instance; nothing is shared between them.
Everything it created can be deleted with nothing left running.
What your choices added
- Build a product. a workspace per customer, per-customer metering and bill-to
- Agent suggests a name. proposes 3 product names and picks one; commands use <product-name>
- Model: Anthropic. your own provider key
- Prototype. one small machine, no extras, easy to delete
What you're building
an open-source personal AI assistant that runs on a machine you control and is reached through chat apps Modelled on OpenClaw, by OpenClaw Foundation.
OpenClaw runs on a persistent device, takes requests from chat apps (WhatsApp, Telegram and others) and works on email, calendar and the web while you are away.
Primitives you'll use: Computer
- Reached from the chat apps you already use
- Runs on a persistent device that never sleeps
- Works on inbox, calendar and web tasks
- Open source
You install and run the real OpenClaw on MIOSA. Read the official docs first: docs.openclaw.ai/start/getting-started. Every install command below comes from them; if the docs and this guide disagree, the docs win. OpenClaw is open source, stewarded by the OpenClaw Foundation.
What you need on MIOSA
Each row is one thing to create before you start. The number matches the step that uses it.
- Organization and API key Scopes every call; a workspace key is all a worker needs.
miosa api-key create app-key --preset agentDocs - Computer A persistent Linux desktop for browser, mouse, and screenshot work.
miosa computer create app-desktopDocs - A workspace per customer Isolates each customer’s machines, deployments, and data as they onboard.
miosa workspace create customer-1Docs - Branding and white-label Your name and slug on previews, deployments, and the desktop; customers never see MIOSA.
miosa orgDocs - Usage metering and bill-to Usage per customer, and which account pays for new machines.
miosa org billDocs
Architecture
How it runs on MIOSA
Where it runs -> a MIOSA computer (a persistent desktop with a browser)
State and files -> State, memory and credentials live on the machine. Use a MIOSA computer so the Gateway stays up between conversations, and extend its TTL (`miosa extend`).
Model -> your own provider key, never a MIOSA platform key
Your customers -> one workspace each, isolated from each other
Auth and tenancy
Your organization is the platform; customers never get a MIOSA account, they sign into YOUR product. One workspace per customer, created as they onboard, isolates their machines, runs and data.
miosa workspace create openclaw-customer-1Tag every machine and run with the customer id in `metadata`, and never query across customers. Meter usage per customer with GET /api/v1/usage and set who pays with PUT /api/v1/bill-to (/docs/platform/usage-and-billing).
Install OpenClaw
Run these inside the computer (its terminal), in order. The commands are from the official docs.
curl -fsSL https://openclaw.ai/install.sh | bashCheck: the install finishes without errors; the next sections configure and start it.
Configure
Node 24.16+ or 26.1+ is required; the installer provisions it when needed. The package route is `npm install -g openclaw@latest --allow-scripts=openclaw`.
Onboarding verifies model access, creates the workspace and configures the Gateway; it asks for your own model provider key.
Channels (WhatsApp, Telegram, Slack and others) are connected by you with each platform's own credentials.
Model: Anthropic (Claude). Calls use my own provider key (entered in the tool's own setup); MIOSA platform keys are never used.
Run it
Start it and prove it works.
openclaw onboard --install-daemonopenclaw gateway statusCheck: the tool starts without errors and responds.
Persistence and access
State, memory and credentials live on the machine. Use a MIOSA computer so the Gateway stays up between conversations, and extend its TTL (`miosa extend`).
Check: after the machine pauses and resumes, the tool starts again with its state intact.
Make it a product
Run one Gateway per customer on its own computer in that customer's workspace, so state, memory and credentials never mix.
Limits and costs
Pin the version you tested and update deliberately; these tools change quickly.
Give the tool only the credentials it needs, as secrets, not baked into files.
Prototype: keep it to one machine at the default size, skip replicas and custom hostnames you do not need, and delete everything when you are done.
Acceptance checks
OpenClaw runs on a MIOSA computer and answers a real task.
State survives a pause and resume.
Each customer has its own workspace and its own instance; nothing is shared between them.
Everything it created can be deleted with nothing left running.