OpenClaw 2.0 is a local-first open-source AI agent workspace that connects language models (local Ollama or Google Gemini) to real-world software tools, files, browsers, and Telegram messaging channels with 100% data privacy.
| Step 1: Input | Step 2: AI Action | Step 3: Result |
|---|---|---|
| User prompt or automated trigger via Telegram bot or CLI TUI | OpenClaw 2.0 routes task to selected model (Ollama or Gemini) | Safe tool execution, credential masking, and durable session state output |
Install OpenClaw 2.0 on Windows instantly using PowerShell:
iwr -useb https://openclaw.ai/install.ps1 | iexAlternative via Node/npm:
npm install -g openclaw@latest- π± Mobile Telegram Channel Connectivity: Interact with your AI agent on Telegram with instant response notifications and human approval prompts.
- π§ Dual Provider Support: Seamlessly switch between local Ollama models (
llama3.2:3b,qwen3:4b) and Google Gemini (gemini-3.5-flash-lite). - π CLI Secret Security (No
.envrequired): API keys and tokens are stored securely in encrypted OpenClaw auth profiles via CLI commands. - π Remote PC File Operations: Read, write, search, and edit files on your PC remotely through Telegram.
- π‘οΈ Masked Credential Protection: Replaces sensitive API keys with temporary secrets prior to prompt processing, ensuring zero raw secret leakage.
- βοΈ Exact-Operation Approvals: Inspect, grant, or revoke permission per single task action instead of granting permanent blanket access.
- Agent Runtime: OpenClaw v2026.8.1
- Supported Providers: Local Ollama (
/api/chat) & Google Gemini API - Messaging Channel: Telegram Bot API
- CLI Commands:
openclaw onboard,openclaw models,openclaw channels,openclaw gateway
Initialize OpenClaw workspace, auth profiles, and core settings:
openclaw onboard- When to run: On initial system installation to set up default workspaces, gateway auth tokens, skills, and channels interactively.
OpenClaw supports both Local Ollama models and Google Gemini:
- Install & start Ollama from ollama.com and pull models:
ollama pull llama3.2:3b ollama pull qwen3:4b - Set Ollama as your default active model:
openclaw models set ollama/llama3.2:3b
- Securely pass your Gemini API Key directly via OpenClaw CLI:
# Interactive prompt: openclaw models auth paste-api-key --provider google # Or 1-line command: "YOUR_GEMINI_API_KEY" | openclaw models auth paste-api-key --provider google
- Set Gemini 3.5 Flash Lite as your default active model:
openclaw models set google/gemini-3.5-flash-lite
You can dynamically switch primary models anytime via CLI or Telegram chat commands:
-
Switch to Google Gemini 3.5 Flash Lite:
openclaw models set google/gemini-3.5-flash-lite
(Or send
/model google/gemini-3.5-flash-litein Telegram or CLI TUI) -
Switch to Local Ollama Model:
openclaw models set ollama/llama3.2:3b
(Or send
/model ollama/llama3.2:3bin Telegram or CLI TUI)
-
Add Telegram Bot Token:
openclaw channels add --channel telegram --token 8659491511:YOUR_TELEGRAM_BOT_TOKEN
-
Enable Full File & Remote PC Tools (Required for reading/saving files):
openclaw config set tools.profile full
- Why this is required: Ensures OpenClaw has permissions to read, write, search, and edit files on your PC when requested via Telegram.
-
Set Project Workspace Directory:
openclaw config set agents.defaults.workspace "d:\Ray Codes\AG Projects\OpenClaw 2.0"- Why this is required: Directs OpenClaw to save all generated scripts and read workspace files directly inside your active project folder.
-
Allow Telegram Direct Messages:
openclaw config set channels.telegram.dmPolicy open
To start listening to incoming Telegram messages and executing agent tasks in real-time:
openclaw gateway run- When to run: Whenever you want OpenClaw actively listening and responding to prompts on Telegram.
- What it does: Launches the WebSocket gateway, establishes Telegram polling/webhooks, and executes tool actions.
To keep OpenClaw running continuously in the background 24/7:
openclaw daemon install
openclaw daemon startVerify gateway, channel health, and active model configuration:
openclaw status
openclaw channels status
openclaw models status| Command | Action |
|---|---|
openclaw onboard |
Starts interactive guided setup wizard |
openclaw gateway run |
Starts OpenClaw Gateway in foreground listening for Telegram |
openclaw channels add --channel telegram --token <TOKEN> |
Registers Telegram bot channel non-interactively |
openclaw models auth paste-api-key --provider google |
Prompts interactively to paste Google Gemini API key |
"YOUR_API_KEY" | openclaw models auth paste-api-key --provider google |
Sets Google Gemini API key non-interactively in 1 line |
openclaw models set google/gemini-3.5-flash-lite |
Switches active model to Gemini 3.5 Flash Lite |
openclaw models set ollama/llama3.2:3b |
Switches active model to local Ollama |
openclaw config set tools.profile full |
Enables full file reading, writing, and system tool permissions for Telegram |
openclaw config set agents.defaults.workspace <PATH> |
Sets active project folder where Telegram files are read and created |
openclaw config set channels.telegram.dmPolicy open |
Configures Telegram to allow direct message execution |
openclaw daemon start |
Runs OpenClaw 24/7 as a background Windows Service |
| openclaw status | Shows Gateway connectivity, channels, and active model health |
Once OpenClaw Gateway is running (openclaw gateway run), you can send prompts, run model commands, and remotely manage PC files directly from Telegram:
- You send on Telegram:
"Read the notes.txt file from my project workspace and summarize key points." - OpenClaw Action: Opens
notes.txton your PC using local tools and replies with a summary on Telegram.
- You send on Telegram:
"Write a Python script for system health monitoring and save it as system_health.py in my workspace." - OpenClaw Action: Generates the script using active LLM, writes
system_health.pydirectly to your PC workspace, and confirms on Telegram.
- Send
/modelto view all active Ollama & Gemini models. - Send
/model google/gemini-3.5-flash-liteto switch to Gemini cloud reasoning. - Send
/model ollama/llama3.2:3bto switch back to local offline model.
- When the agent attempts to execute sensitive commands or edit core files on your PC, OpenClaw sends an interactive Telegram confirmation card:
- Press
[Approve Operation]to allow execution on your PC. - Press
[Deny]to revoke permission.
- Press
OpenClaw 2.0/
βββ README.md # Complete project documentation and Telegram guide
βββ notes.txt # Workspace notes
βββ system_health.py # System health monitoring script example
βββ assets/
βββ openclaw_2.0_overview.html # Visual HTML presentation asset
βββ openclaw_2.0_overview.md # Matching Markdown companion report
OpenClaw 2.0 Multiplayer AI Coding Agent Local AI Workstation Ollama Integration Google Gemini Telegram Bot Gateway Autonomous AI Agent Open Source AI Local LLM Orchestration AI Dev Tools