Free OpenClaw Gateway with Local LLM on Oracle Cloud

A developer on r/openclaw detailed a method to run OpenClaw Gateway with a local large language model (LLM) for free using Oracle Cloud's free tier. The approach avoids paying for LLM tokens by hosting both components on a cloud instance.
Infrastructure Setup
The solution uses Oracle Cloud's free tier. The ideal free instance shape is VM.Standard.A1.Flex, offering an ARM-based Ubuntu instance with 4 OCPUs, 24GB RAM, and 200GB SSD. However, availability is limited as these machines are only free when someone else deletes their instance.
The author opted for the VM.Standard.A2.Flex shape instead. This shape is not permanently free, but Oracle provides $300 in credits for new accounts, which can cover the cost of running a 4 OCPU, 24GB RAM, 200GB SSD ARM Linux server for approximately six months.
Configuration Steps
- Generate an instance with the specified resources using the VM.Standard.A2.Flex shape.
- Oracle provides a minimized Ubuntu for ARM instances. After starting the instance, run
sudo unminimizeto get a regular Ubuntu version, which is required for the LLM and OpenClaw. - The author recommends skipping the Docker version of OpenClaw, stating it is hard to configure, and instead installing the native version.
- Install the Qwen3.5 27B A3B 4-bit model locally on the instance.
- Configure OpenClaw to use this local LLM.
Remote Management
To manage the cloud setup remotely, the author uses an app called "QCAI," available on the Apple App Store and Android. Configuration involves:
- Installing Tailscale VPN on the cloud instance.
- Modifying the OpenClaw
openclaw.jsonconfiguration file to allow access from the QCAI app.
The QCAI app provides a dashboard for OpenClaw and a "claw-portal" browser-based interface for accessing OpenClaw output, which the author notes is better than using a Telegram text channel. The setup also allows running Claude Code on the Oracle Gateway, with the iOS app providing an interface for remote execution.
The result is a 24/7 OpenClaw Gateway with a local LLM and Claude Code, running for free for six months using the initial Oracle Cloud credits.
📖 Read the full source: r/openclaw
👀 See Also

Running OpenClaw, ClawdBot, and MoltBot on a Budget
Discover how to run OpenClaw, ClawdBot, and MoltBot without breaking the bank. Explore budgeting tips and free alternatives as discussed by enthusiasts on r/clawdbot.

Vibe Coding Rules: Build Side Projects from Your Phone Using Claude Code Without Reading Code
A senior engineer shares their rules for building side projects entirely from a phone using Claude Code without reading code: start in plan mode, commit to git, write tests, use subagents for reviews, and auto-mode.

OpenClaw Project Operating System: Multi-Project Management Framework
A framework that isolates projects with standardized directories, uses cron for automation instead of agents for predictable tasks, and implements mandatory backup protocols to reduce token usage and improve execution consistency.

Building API endpoints with Claude: Practical prompt engineering lessons from a 70+ endpoint project
A developer built 70+ LinkedIn automation API endpoints with Claude writing 80% of the code, discovering that treating prompts like contracts with explicit constraints works better than natural language instructions for action-taking agents.