What Is OpenClaw.ai?
OpenClaw.ai is an open-source AI gateway that lets you run powerful language models — including GPT-class and open-source LLMs — without paying for expensive API subscriptions. It acts as a unified proxy, routing your requests to the best available free-tier models while providing a clean REST API and web interface.
For developers, students, and hobbyists, OpenClaw removes the biggest barrier to AI adoption: cost. Combined with Oracle Cloud's Always Free VPS, you get a production-grade AI bot running 24/7 at zero cost.
Why Oracle Cloud Always Free VPS?
Oracle Cloud Infrastructure offers one of the most generous always-free tiers in cloud computing. You get an ARM-based VM with 4 OCPUs and 24GB RAM — permanently free, no credit card charge after signup. This is more than enough to run OpenClaw.ai, a Telegram bot, and even a small database.
Compared to AWS Free Tier (which expires after 12 months) or GCP's limited free tier, Oracle's offering is unmatched for long-running workloads. Learn more about cloud providers in our Cloud Computing for Beginners guide.
- 4 ARM OCPUs — enough for concurrent AI requests
- 24GB RAM — handles model caching efficiently
- 200GB boot volume — plenty of storage
- 10TB/month outbound data — generous bandwidth
Prerequisites and Account Setup
Before starting, you'll need three things: an Oracle Cloud account (free), a Telegram account, and basic terminal/SSH knowledge. Here's the checklist:
- Sign up at
cloud.oracle.com— use a valid credit card for verification (you won't be charged) - Create a Telegram bot via
@BotFatherand save the API token - Install an SSH client (Terminal on Mac/Linux, PuTTY on Windows)
- Basic familiarity with Linux commands — see our Docker for Beginners guide for container basics
Step 1: Provision Your Oracle Free VPS
Log into Oracle Cloud Console and navigate to Compute → Instances → Create Instance. Select the "Always Free Eligible" shape — specifically the VM.Standard.A1.Flex with Ampere ARM processor.
# After SSH into your VPS:
sudo apt update && sudo apt upgrade -y
sudo apt install -y docker.io docker-compose git curl # Enable Docker
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -aG docker $USERConfigure your firewall to allow inbound traffic on ports 80, 443, and 8080 (for the OpenClaw web interface). Oracle Cloud also requires you to add ingress rules in the VCN security list.
Step 2: Install and Configure OpenClaw.ai
Clone the OpenClaw repository and configure it with your preferred AI model endpoints:
# Clone OpenClaw
git clone https://github.com/openclaw/openclaw.git
cd openclaw # Configure environment
cp.env.example.env
nano.env # Key settings in.env:
# OPENCLAW_PORT=8080
# ENABLE_FREE_MODELS=true
# MAX_CONCURRENT_REQUESTS=10
# RATE_LIMIT_PER_MINUTE=30 # Start with Docker
docker-compose up -dOpenClaw automatically discovers and connects to free-tier AI model providers. You can also add your own API keys for premium models if desired, but the free tier is surprisingly capable for most tasks.
Step 3: Connect Telegram Bot
The Telegram integration is what makes OpenClaw truly accessible — anyone with a phone can use your AI bot. Here's how to wire it up:
# Install the Telegram bridge
cd openclaw/integrations/telegram
cp config.example.yml config.yml # Edit config.yml with your bot token:
# bot_token: "YOUR_BOTFATHER_TOKEN"
# openclaw_url: "http://localhost:8080"
# allowed_users: [] # Empty = everyone can use it
# max_message_length: 4000 # Start the Telegram bridge
docker-compose -f docker-compose.telegram.yml up -dTest it by sending /start to your bot on Telegram. You should receive a welcome message and can immediately begin chatting with the AI. The bot supports text conversations, code generation, image analysis, and document summarization.
Use Cases: Free AI Bots for Everyone
With OpenClaw running on your free VPS, here are practical use cases you can deploy:
- Coding Assistant: Ask for code reviews, debugging help, or algorithm explanations — try it alongside CoderFile's JavaScript editor
- Study Tutor: Students can ask questions about any subject, get explanations, and practice problems
- Writing Helper: Draft emails, blog posts, and documentation with AI assistance
- Customer Support: Small businesses can deploy an AI-powered support bot on Telegram
- Language Translation: Real-time translation bot for multilingual teams
- Research Assistant: Summarize papers, extract key findings, and generate literature reviews
Security Best Practices and Rate Limiting
Running a public AI bot requires careful security configuration. OpenClaw includes built-in protections, but you should also:
- Set
allowed_usersin Telegram config to restrict access to known user IDs - Enable rate limiting (default: 30 requests/minute per user)
- Use HTTPS with Let's Encrypt —
sudo certbot --nginx - Monitor logs for abuse:
docker logs openclaw-telegram -f - Set up automatic security updates:
sudo apt install unattended-upgrades
For a deeper dive into securing your applications, check our Cybersecurity Basics for Developers guide.
Troubleshooting Common Issues
If your bot isn't responding, check these common issues:
- Oracle firewall: Ensure both iptables and VCN security list allow your ports
- Docker memory: Monitor with
docker stats— 24GB should be plenty - Bot token expired: Regenerate via
@BotFatheron Telegram - Model timeouts: Free models may have higher latency; increase timeout in config
The OpenClaw community on GitHub Discussions is also an excellent resource for troubleshooting. With this setup, you have a powerful, free AI infrastructure that rivals paid alternatives — perfect for personal use, education, or small team deployments.