OpenClaw
This guide explains how to create and deploy your very own OpenClaw gateway on Unikraft Cloud. To run this example, follow these steps:
-
Install the CLI. Use the unikraft CLI. You need a BuildKit builder. The easiest way to get one is via Docker. Alternatively, you can also directly set up and use BuildKit, see the quick start.
-
Clone the
examplesrepository andcdinto theexamples/openclawdirectory:Code
Make sure to log into Unikraft Cloud and pick a metro close to you.
This guide uses fra (Frankfurt, 🇩🇪):
Code
When done, you may create the OpenClaw Unikraft Cloud image and deploy an instance from it like so:
Code
Make sure to replace <my-org> with your username / org-name and to set your SSH public key as the PUBKEY environment variable above.
The output shows the instance address and other details:
Code
In this case, the instance name is openclaw-8tosm and the address is divine-flower-bxsaapup.fra.unikraft.app.
These will be different for each run.
You can now SSH into this instance and run the OpenClaw onboarding process.
In order to SSH, you need to set up a tunnel that handles the TLS connection to the Unikraft Cloud instance. This way, you have a non-TLS port that your SSH client can connect to:
Code
Then connect to the instance via SSH using:
Code
You can list information about the instance by running:
Code
Code
When done, you can remove the instance using:
Code
Learn more
Use the --help option for detailed information on using Unikraft Cloud:
Code
OpenClaw Setup
Once you have SSH'd into your instance, you may run:
Code
This will set up your OpenClaw gateway on the instance. You will be asked to provide your LLM's API key here.
Once done, make note of your gateway.auth.token (henceforth referenced as <token>) from ~/.openclaw/openclaw.json
Code
Set gateway.controlUi.allowedOrigins in ~/.openclaw/openclaw.json:
Code
Replace the domain in the above URL with the address of your instance (noted earlier).
Run the gateway:
Code
You may now access the web dashboard using the following URL:
Code
Where <address> is your above noted address and <token> is your above noted token.
For security reasons, you will have to manually approve your web "device" in order to start using the web dashboard. Create a new SSH connection to your OpenClaw instance:
Code
First, find your device ID:
Code
Look under the Request column.
Device IDs look like cabd915e-137a-4bc4-b640-d0e507684d65
Finally, approve your device with:
Code
Once this is done, refresh your OpenClaw web dashboard.
You now have full access to your very own OpenClaw deployment on Unikraft Cloud!