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

OpenClaw Failure Patterns: 42 Real Incidents in 28 Days
A developer running OpenClaw daily documented 42 specific failures across eight categories, including AI hallucinations, authentication breakdowns, and automation that costs more time than it saves. The source provides concrete examples like Google OAuth 7-day token expiration and Opus 4.6 adding unwanted metadata to files.

Cut Token Costs by 95% with OpenClaw's Seven Optimization Techniques
A comprehensive guide detailing seven techniques to reduce AI agent token consumption by 95%+, including tree-structured boot files, AI auto-compression, local model offloading, and cron-based CPU tasks.

Analysis of Claude Code's Production Engineering Patterns from Reverse-Engineered Source
A developer reverse-engineered approximately 500,000 lines of Claude Code's TypeScript source code into a 19-chapter technical handbook documenting production engineering patterns that emerge under real load, real money, and real adversaries.

Claude Code folder structure cheat sheet from Reddit user
A Reddit user created a cheat sheet for Claude Code's folder structure after encountering common pitfalls, covering .claude/ directory layout, hook events, settings.json, MCP config, skill structure, and context management thresholds.