Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

docs: restore OpenClaw guide and remove obsolete routing (#2205)

Francesco Bonaccif6aa3dfc24f3
diff --git a/docs/.env.example b/docs/.env.example
deleted file mode 100644
index 8166a1ae5e..0000000000
--- a/docs/.env.example
+++ /dev/null
@@ -1,13 +0,0 @@
-NEXT_PUBLIC_POSTHOG_API_KEY=
-NEXT_PUBLIC_POSTHOG_HOST=
-AWS_ROLE_ARN=
-AWS_ACCESS_KEY_ID=
-AWS_SECRET_ACCESS_KEY=
-SLACK_WEBHOOK_URL=
-POSTHOG_PERSONAL_API_KEY=
-POSTHOG_PROJECT_ID=
-CRON_SECRET=
-# Optional: GitHub personal access token (read-only, public_repo scope).
-# Raises the GitHub API rate limit from 60 req/hr to 5 000 req/hr.
-# Used by the landing page to fetch the live star count.
-GITHUB_TOKEN=
\ No newline at end of file
diff --git a/docs/README.md b/docs/README.md
index 055d2c9e94..bf6d7a6821 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,6 +1,8 @@
# docs
-Production docs are served from https://cua.ai/docs; this app is now a local MDX preview only.
+Public documentation content and assets live in this repository. The production
+renderer, redirects, analytics, and site configuration live in `trycua/cloud`.
+This app is a local MDX preview for contributors to the public repository.
Run the local preview:
@@ -21,14 +23,6 @@ Public docs live in `content/docs/` and follow the Diátaxis modes:
Place content by what the reader is trying to do, not by topic. Do not mix modes in one page; move reference tables to reference pages and link to them from how-to guides or explanations.
-## Setup Telemetry
-
-We use PostHog for telemetry to improve the clarity and structure of our documentation. Start by copying the `.env.example` and adding in your PostHog API key and host.
-
-```bash
-cp .env.example .env
-```
-
## Learn More
To learn more about Next.js and Fumadocs, take a look at the following
diff --git a/docs/content/docs/how-to-guides/lume/meta.json b/docs/content/docs/how-to-guides/lume/meta.json
index b96e959fa5..2f302f9023 100644
--- a/docs/content/docs/how-to-guides/lume/meta.json
+++ b/docs/content/docs/how-to-guides/lume/meta.json
@@ -1 +1,13 @@
-{ "title": "Lume", "pages": ["install-lume", "create-vanilla-vm", "manage-vms", "expand-vm-disk", "change-sip", "serve-api", "use-mcp-server"] }
+{
+ "title": "Lume",
+ "pages": [
+ "install-lume",
+ "create-vanilla-vm",
+ "run-openclaw",
+ "manage-vms",
+ "expand-vm-disk",
+ "change-sip",
+ "serve-api",
+ "use-mcp-server"
+ ]
+}
diff --git a/docs/content/docs/how-to-guides/lume/run-openclaw.mdx b/docs/content/docs/how-to-guides/lume/run-openclaw.mdx
new file mode 100644
index 0000000000..c3e286a8d2
--- /dev/null
+++ b/docs/content/docs/how-to-guides/lume/run-openclaw.mdx
@@ -0,0 +1,144 @@
+---
+title: Run OpenClaw in a local macOS VM
+description: Install OpenClaw in an isolated Lume VM and keep its gateway running headlessly.
+---
+
+This guide shows you how to run an OpenClaw gateway in a local macOS VM on an
+Apple Silicon Mac. The VM keeps OpenClaw separate from your daily macOS
+environment and can run headlessly after setup.
+
+## Before you start
+
+- Use an Apple Silicon Mac with at least 60GB of free disk space.
+- [Install Lume](/how-to-guides/lume/install-lume).
+- Have credentials for the model provider you will select during OpenClaw
+ onboarding.
+
+## Create the VM
+
+Create a macOS Tahoe VM with Lume's unattended setup:
+
+```bash
+lume create openclaw --ipsw latest --unattended tahoe
+```
+
+The unattended preset creates a `lume` account, enables SSH, and configures
+automatic login. Its initial username and password are both `lume`.
+
+Start the VM without opening the VNC client:
+
+```bash
+lume run --no-display openclaw
+```
+
+## Install OpenClaw in the VM
+
+Open an interactive shell in the guest:
+
+```bash
+lume ssh openclaw
+```
+
+Run the official OpenClaw installer without its automatic onboarding step,
+then start onboarding explicitly so it installs the gateway service:
+
+```bash
+curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh \
+ | bash -s -- --no-onboard
+openclaw onboard --install-daemon
+```
+
+Choose your model provider and channels when prompted. OpenClaw stores its
+configuration inside the VM.
+
+Verify the installation before leaving the guest shell:
+
+```bash
+openclaw --version
+openclaw doctor
+openclaw gateway status
+```
+
+Exit the guest shell when the gateway reports that it is running:
+
+```bash
+exit
+```
+
+## Access the gateway from the host
+
+OpenClaw binds its gateway to the guest loopback interface by default. Get the
+VM IP address:
+
+```bash
+lume get openclaw
+```
+
+In a separate host terminal, forward the default gateway port through SSH:
+
+```bash
+ssh -N -L 18789:127.0.0.1:18789 lume@<VM_IP>
+```
+
+Keep that command running and open `http://127.0.0.1:18789` on the host. Enter
+the gateway credentials created during onboarding when prompted.
+
+## Add macOS-only channels
+
+Run the VM with its display when you need to sign in to Messages or grant macOS
+permissions:
+
+```bash
+lume stop openclaw
+lume run openclaw
+```
+
+For iMessage, follow OpenClaw's [iMessage setup
+guide](https://docs.openclaw.ai/providers/imessage). Messages must be signed in
+inside the VM, and the process running OpenClaw needs Full Disk Access and
+Automation permission.
+
+Return the VM to headless operation after you finish the interactive setup:
+
+```bash
+lume stop openclaw
+lume run --no-display openclaw
+```
+
+## Save a reusable VM
+
+Stop and clone the configured VM before making further changes:
+
+```bash
+lume stop openclaw
+lume clone openclaw openclaw-golden
+lume run --no-display openclaw
+```
+
+The clone contains the guest disk and its OpenClaw configuration. Protect it as
+you would the original VM because it may contain provider and channel
+credentials.
+
+## Troubleshoot the setup
+
+### `lume ssh` cannot connect
+
+Run `lume ls` and confirm that `openclaw` is running and has an IP address. If
+the VM is still booting, wait and run `lume ssh openclaw` again.
+
+### The gateway does not start after boot
+
+Run `lume ssh openclaw 'openclaw gateway status'`. If the service is missing,
+open an interactive guest shell and run `openclaw gateway install`.
+
+### A macOS permission prompt never appears
+
+Restart the VM with `lume run openclaw`, open a terminal in the VM display, and
+run the command that needs permission from that logged-in session.
+
+## Related guides
+
+- [Manage local Lume VMs](/how-to-guides/lume/manage-vms)
+- [How Lume unattended setup works](/concepts/how-lume-unattended-setup-works)
+- [Lume CLI reference](/reference/lume/cli-reference)
+- [OpenClaw macOS VM guide](https://docs.openclaw.ai/install/macos-vm)
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index cb394fcef4..ff5a406674 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -14,187 +14,13 @@ const config = {
trailingSlash: false,
basePath: '/docs',
assetPrefix: '/docs',
- async rewrites() {
- return [
- {
- source: '/:path*.mdx',
- destination: '/llms.mdx/:path*',
- },
- ];
- },
async redirects() {
return [
{
source: '/',
destination: '/docs',
- basePath: false, // Important: this bypasses the basePath
- permanent: false,
- },
- // Redirect old docs.cua.ai URLs to cua.ai/docs with 301 for SEO
- // This handles URLs that Google has indexed from the old domain
- {
- source: '/:path*',
- has: [
- {
- type: 'host',
- value: 'docs.cua.ai',
- },
- ],
- destination: 'https://cua.ai/docs/:path*',
- permanent: true, // 301 redirect to preserve SEO authority
basePath: false,
- },
- // Redirects for old URLs
- {
- source: '/quickstart-devs',
- destination: '/get-started/quickstart',
- permanent: true,
- },
- {
- source: '/quickstart-cli',
- destination: '/get-started/quickstart',
- permanent: true,
- },
- // Redirect old /api URLs to SDK landing pages
- {
- source: '/cua/reference/computer-sdk/api',
- destination: '/cua/reference/computer-sdk',
- permanent: true,
- },
- {
- source: '/cua/reference/agent-sdk/api',
- destination: '/cua/reference/agent-sdk',
- permanent: true,
- },
- {
- source: '/reference/cua-driver/modality-test-suite',
- destination: '/reference/cua-driver/limits',
- permanent: true,
- },
- {
- source: '/reference/cua-driver/modality-test-suite.mdx',
- destination: '/reference/cua-driver/limits',
- permanent: true,
- },
- {
- source: '/explanation/linux-and-wayland',
- destination: '/reference/cua-driver/limits',
- permanent: true,
- },
- {
- source: '/explanation/linux-and-wayland.mdx',
- destination: '/reference/cua-driver/limits',
- permanent: true,
- },
- {
- source: '/explanation/capture-and-dispatch-modalities',
- destination: '/concepts/capture-and-delivery-modalities',
- permanent: true,
- },
- {
- source: '/explanation/capture-and-dispatch-modalities.mdx',
- destination: '/concepts/capture-and-delivery-modalities',
- permanent: true,
- },
- {
- source: '/explanation/demonstrations-skills-and-trajectories',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/explanation/demonstrations-skills-and-trajectories.mdx',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/explanation/process-model',
- destination: '/reference/cua-driver/process-model',
- permanent: true,
- },
- {
- source: '/explanation/process-model.mdx',
- destination: '/reference/cua-driver/process-model',
- permanent: true,
- },
- {
- source: '/concepts/process-model',
- destination: '/reference/cua-driver/process-model',
- permanent: true,
- },
- {
- source: '/concepts/process-model.mdx',
- destination: '/reference/cua-driver/process-model',
- permanent: true,
- },
- {
- source: '/explanation/architecture',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/explanation/architecture.mdx',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/concepts/architecture',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/concepts/architecture.mdx',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/concepts/how-cua-fits-together',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/concepts/how-cua-fits-together.mdx',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/how-to-guides/driver/choose-a-modality',
- destination: '/reference/cua-driver/action-selection-policy',
- permanent: true,
- },
- {
- source: '/how-to-guides/driver/choose-a-modality.mdx',
- destination: '/reference/cua-driver/action-selection-policy',
- permanent: true,
- },
- {
- source: '/explanation',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/explanation.mdx',
- destination: '/concepts',
- permanent: true,
- },
- {
- source: '/explanation/:path*.mdx',
- destination: '/concepts/:path*',
- permanent: true,
- },
- {
- source: '/explanation/:path*',
- destination: '/concepts/:path*',
- permanent: true,
- },
- {
- source: '/tutorials/run-an-agent-in-a-sandbox',
- destination: '/tutorials/your-first-cloud-sandbox',
- permanent: true,
- },
- {
- source: '/tutorials/run-an-agent-in-a-sandbox.mdx',
- destination: '/tutorials/your-first-cloud-sandbox',
- permanent: true,
+ permanent: false,
},
];
},
diff --git a/docs/src/middleware.ts b/docs/src/middleware.ts
deleted file mode 100644
index 281b805c6e..0000000000
--- a/docs/src/middleware.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { NextResponse } from 'next/server';
-import type { NextRequest } from 'next/server';
-
-// Redirect section roots to their first content page
-// These paths don't include basePath because middleware receives paths without it
-const redirects: Record<string, string> = {
- '/': '/docs/cua/guide/get-started/what-is-cua',
- '/cua': '/docs/cua/guide/get-started/what-is-cua',
- '/cua/guide': '/docs/cua/guide/get-started/what-is-cua',
- '/cua/examples': '/docs/cua/examples/automation/form-filling',
- '/cua/reference': '/docs/cua/reference/computer-sdk',
- '/cua-driver': '/docs/cua-driver/guide/getting-started/introduction',
- '/cua-driver/guide': '/docs/cua-driver/guide/getting-started/introduction',
- '/cua-driver/reference': '/docs/cua-driver/reference/cli-reference',
- '/cuabench': '/docs/cuabench/guide/getting-started/introduction',
- '/cuabench/guide': '/docs/cuabench/guide/getting-started/introduction',
- '/cuabench/reference': '/docs/cuabench/reference/cli-reference',
- '/lume': '/docs/lume/guide/getting-started/introduction',
- '/lume/guide': '/docs/lume/guide/getting-started/introduction',
- '/lume/examples': '/docs/lume/examples/claude-code/sandbox',
- '/lume/reference': '/docs/lume/reference/cli-reference',
- // Legacy redirects for old URLs without /cua prefix
- '/guide': '/docs/cua/guide/get-started/what-is-cua',
- '/examples': '/docs/cua/examples/automation/form-filling',
- '/reference': '/docs/cua/reference/computer-sdk',
-};
-
-export function middleware(request: NextRequest) {
- const { pathname } = request.nextUrl;
-
- // Handle section root redirects
- if (redirects[pathname]) {
- return NextResponse.redirect(new URL(redirects[pathname], request.url));
- }
-
- const requestHeaders = new Headers(request.headers);
- requestHeaders.set('x-pathname', pathname);
-
- return NextResponse.next({
- request: {
- headers: requestHeaders,
- },
- });
-}
-
-export const config = {
- matcher: [
- // Match all paths except static files
- '/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)',
- ],
-};