๐ง OpenClaw Zero Token
April 8, 2026 ยท View on GitHub
Autonomous AI. Zero token anxiety. Fully sovereign control.
Welcome to the official GitDigital-powered evolution of OpenClaw Zero Token.
This is not just a fork. This is a re-homed, re-architected, and extended agent system built for builders who want full-stack AI autonomy without bleeding tokens or losing control.
โก What This Is
OpenClaw Zero Token (GitDigital Edition) is a customized AI agent framework built on top of OpenClaw โ an open-source system designed for autonomous AI assistants that can run locally and execute real-world tasks. (media.licdn.com)
Weโve taken that foundation and pushed it further:
- ๐งฉ Modular agent architecture
- ๐ Webhook-first ecosystem (GitHub, APIs, automations)
- ๐ธ Zero-token / cost-optimized philosophy
- ๐ก๏ธ Sovereign + privacy-first deployment mindset
- โ๏ธ Built for real infrastructure โ not just demos
๐งฌ Why This Exists
Running AI agents shouldnโt feel like watching your wallet burn.
Most setups:
- Require constant API billing
- Leak tokens through inefficient prompts
- Lack real system-level control
This project flips that.
Run smarter. Spend less. Own everything.
๐ Core Features
๐ง Autonomous AI Agents
- Persistent context + memory
- Multi-agent coordination (One / Zero / custom roles)
- Command-driven workflows
๐ Webhook & Event Engine
- GitHub integrations (PRs, issues, discussions)
- Real-time automation pipelines
- Agent-triggered responses
๐ฐ Zero-Token Philosophy
- No hardcoded provider lock-in
- Designed for local models / optimized routing
- Cost-aware execution layer
๐ ๏ธ Builder-First Infrastructure
- Docker-ready environments
- Extendable plugin system
- YAML / JSON configurable core
๐ Sovereign Control
- Run locally, cloud, or hybrid
- No forced SaaS dependencies
- Full ownership of data + execution
๐๏ธ Architecture (Simplified)
User / Events
โ
Webhooks / Inputs
โ
Agent Gateway
โ
Multi-Agent Core
(One / Zero / Custom)
โ
Skills / Plugins / Actions
โ
External Systems (GitHub, APIs, Files, etc.)
๐ Example Use Cases
- ๐ค Autonomous GitHub assistant (issues, PR reviews, automation)
- ๐ Data analysis + reporting agents
- ๐งโ๐ป Dev copilots with memory + execution
- ๐ข Business workflow automation
- ๐ Multi-agent coordination systems
โ๏ธ Getting Started
1. Install Dependencies
# Install OpenClaw base
curl -fsSL https://get.openclaw.ai/install.sh | sh
2. Configure Your Environment
openclaw setup
3. Run Your Agent
openclaw start
โ ๏ธ Recommended: Use local models (Ollama, etc.) for true zero-token operation.
๐งฉ GitDigital Ecosystem Integration
This project is part of the GitDigital Systems Network, meaning it is designed to plug into:
- ๐ง AI PaaS infrastructure
- ๐ Webhook orchestration layers
- ๐ฆ Financial + transaction systems
- ๐งฌ Multi-repo agent coordination
๐ก๏ธ Security Mindset
We build assuming:
- Agents can be attacked
- Plugins can be malicious
- Tokens can leak
So this system is designed for:
- Minimal external exposure
- Auditability
- Controlled execution flows
๐ง Philosophy
โDonโt rent intelligence. Own it.โ
This repo exists for builders who:
- Want real control over AI systems
- Care about cost efficiency at scale
- Are building something bigger than a chatbot
๐ค Contributing
We welcome:
- Plugins
- Agent templates
- Security improvements
- Cost optimization strategies
Fork it. Break it. Upgrade it.
๐ License
MIT โ Use it, build on it, scale it.
โก Final Note
This is just one piece of a larger system.
If youโre here early, youโre not late โ youโre positioned.
https://venmo.com/code?user_id=4570485455062547838&created=1775612892
https://ko-fi.com/gitdigitalzeroknowledge/10 https://ko-fi.com/gitdigitalzeroknowledge/tip
OpenClaw Zero Token
Use LLMs without API tokens โ log in via browser once, then call ChatGPT, Claude, Gemini, DeepSeek, Qwen (intl/cn), Doubao, Kimi, Zhipu GLM, Grok, Xiaomi MiMo, Manus and more for free through a unified gateway.
English | ็ฎไฝไธญๆ
Table of Contents
- Overview
- Zero Token docs (index)
- Product requirements (tracking, ไธญๆ)
- Upstream sync (Zero Token)
- Web models browser modes
- How It Works
- Quick Start
- Usage
- Configuration
- Troubleshooting
- Roadmap
- Adding New Platforms
- File Structure
- Security Notes
- Sync With Upstream
- Contributing
- License
- Acknowledgments
- Disclaimer
Overview
OpenClaw Zero Token is a fork of OpenClaw that focuses on removing API token cost by driving the official web UIs (browser login) instead of paid API keys.
Why Zero Token?
| Traditional usage | Zero Token way |
|---|---|
| Buy API tokens | Completely free |
| Pay per request | No enforced quota |
| Credit card required | Browser login only |
| API tokens may leak | Credentials stored local |
Supported providers
| Provider | Status | Models (examples) |
|---|---|---|
| DeepSeek | โ tested | deepseek-chat, deepseek-reasoner |
| Qwen International | โ tested | Qwen 3.5 Plus, Qwen 3.5 Turbo |
| Qwen China | โ tested | Qwen 3.5 Plus, Qwen 3.5 Turbo |
| Kimi | โ tested | Moonshot v1 8K / 32K / 128K |
| Claude Web | โ tested | claude-sonnet-4-6, claude-opus-4-6, claude-haiku-4-6 |
| Doubao | โ tested | doubao-seed-2.0, doubao-pro |
| ChatGPT Web | โ tested | GPT-4, GPT-4 Turbo |
| Gemini Web | โ tested | Gemini Pro, Gemini Ultra |
| Grok Web | โ tested | Grok 1, Grok 2 |
| GLM Web (Zhipu) | โ tested | glm-4-Plus, glm-4-Think |
| GLM Web (International) | โ tested | GLM-4 Plus, GLM-4 Think |
| Xiaomi MiMo | โ tested | MiMo 2.0, MiMo 2.5 Pro |
| Manus API | โ tested | Manus 1.6, Manus 1.6 Lite (API key, free quota) |
Tool calling
All supported models can call local tools (exec, read_file, list_dir, browser, apply_patch, etc.) so that agents can run commands, read/write workspace files, and automate the browser.
| Provider type | Tools | Notes |
|---|---|---|
| Web (DeepSeek, Qwen, Kimi, Claude, Doubao, GLM, Grok, Xiaomi MiMo, etc.) | โ | Inject XML tool descriptions in system, parse <tool_call> streams. |
| ChatGPT Web / Gemini Web / Manus API | โ | Similar via tool descriptions + multi-turn context + <tool_call>. |
| OpenRouter / OpenAI-compatible APIs | โ | Uses native tools / tool_calls. |
| Ollama | โ | Uses native /api/chat tools. |
Agent file access is restricted by the configured workspace directory (see agents.defaults.workspace).
Extra features
AskOnce: one question, answers from all models.
AskOnce can broadcast a single query to multiple configured providers and show their replies side by side.

How It Works
High-level architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenClaw Zero Token โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Web UI โ โ CLI/TUI โ โ Gateway โ โ Channels โ โ
โ โ (Lit 3.x) โ โ โ โ (Port API) โ โ (Telegramโฆ) โ โ
โ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโ โ
โ โ โ โ โ โ
โ โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโผโโโโโโโโโ โ
โ โ Agent Core โ โ
โ โ (PI-AI Engine) โ โ
โ โโโโโโโโโโฌโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Provider Layer โ โ
โ โ DeepSeek Web (Zero Token) โ
โ โ
โ โ Qwen Web intl/cn (Zero Token) โ
โ โ
โ โ Kimi (Zero Token) โ
โ โ
โ โ Claude Web (Zero Token) โ
โ โ
โ โ Doubao (Zero Token) โ
โ โ
โ โ ChatGPT Web (Zero Token) โ
โ โ
โ โ Gemini Web (Zero Token) โ
โ โ
โ โ Grok Web (Zero Token) โ
โ โ
โ โ GLM Web (Zero Token) โ
โ โ
โ โ Xiaomi MiMo (Zero Token) โ
โ โ
โ โ Manus API (Token) โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DeepSeek auth flow (example)
1. Start browser
openclaw gateway โโโถ Chrome (CDP: 18892, user-data-dir)
2. User logs in
Browser โโโถ https://chat.deepseek.com (scan / password login)
3. Capture credentials
Playwright CDP โโโถ listen network requests
โโโถ intercept Authorization header + cookies
4. Store credentials
auth.json โโโ { cookie, bearer, userAgent }
5. Call web API
DeepSeek WebClient โโโถ DeepSeek Web API โโโถ chat.deepseek.com
(reuses stored cookie + bearer token)
Quick Start
Platforms
- ๐ macOS / ๐ง Linux: follow START_HERE.md; full install/config in INSTALLATION.md.
- ๐ช Windows: use WSL2 and then follow the Linux steps. Install WSL2:
wsl --install, docs: https://docs.microsoft.com/windows/wsl/install
Requirements
- Node.js >= 22.12.0
- pnpm >= 9.0.0
- Chrome browser
- OS: macOS, Linux, or Windows (via WSL2)
Helper scripts (first-time & daily use)
First-time:
1. Build pnpm install && pnpm build && pnpm ui:build
2. Start Chrome ./start-chrome-debug.sh
3. Login sites Qwen intl/cn, Kimi, DeepSeek, ...
4. Onboard ./onboard.sh webauth
5. Start server ./server.sh
Daily:
start-chrome-debug.sh โ onboard.sh โ server.sh
server.sh [start|stop|restart|status] manages the gateway
Script overview (core 3 scripts):
| Script | Purpose | When to use |
|---|---|---|
start-chrome-debug.sh | Start Chrome in debug mode | Step 2: open browser on port 9222 for logins + onboarding |
onboard.sh | Auth/onboarding wizard | Step 4/5: select provider (e.g. deepseek-web) and capture credentials |
server.sh | Manage gateway service | Step 5 & daily use: start / stop / restart / status on port 3001 |
Installation
Clone the repo
git clone https://github.com/linuxhsj/openclaw-zero-token.git
cd openclaw-zero-token
Install dependencies
pnpm install
Step 1: Build
pnpm build
pnpm ui:build
Step 2: Configure authentication
# (Optional but recommended before the very first ./onboard.sh webauth)
# Copy the example config to your local state directory:
# cp .openclaw-state.example/openclaw.json .openclaw-upstream-state/openclaw.json
# On first run, onboard.sh will prompt whether to copy the configuration file, just select yes.
# It will copy .openclaw-state.example/openclaw.json to .openclaw-upstream-state/openclaw.json;
# for non-first runs, there's no need to copy these configuration files.
# Start Chrome in debug mode
./start-chrome-debug.sh
# IMPORTANT: Do not close this terminal, otherwise subsequent steps will fail.
# Keep this terminal open throughout the process.
# Log into each web model once (for example DeepSeek)
# https://chat.deepseek.com/
# Run onboarding wizard
# IMPORTANT: Open a new terminal for this step (do not use the same terminal as the previous step,
# because the ./start-chrome-debug.sh terminal needs to stay open).
./onboard.sh webauth
# Or use the built version
node openclaw.mjs onboard
# Example DeepSeek flow in the wizard:
# ? Auth provider: DeepSeek (Browser Login)
#
# ? DeepSeek Auth Mode:
# > Automated Login (Recommended) # capture cookies/tokens automatically
# Once you see that auth succeeded, you are done.
# To add more providers later, just run ./onboard.sh webauth again.
When the wizard prints Authorization complete (or per-provider success lines), you are finished: the shell prompt should return. If the Node process does not exit (known issue with some browser CDP sessions), press Ctrl+Cโcredentials and config updates are already written by then.
Follow the prompts (choose e.g. DeepSeek (Browser Login) and Automated Login (Recommended)).
To add more providers later, just run ./onboard.sh webauth again.
Step 3: Start the gateway
./server.sh
This will start the HTTP gateway and Web UI.
Usage
Web UI
After ./server.sh the Web UI is started automatically. Open it in your browser and chat with any configured model.
Switch models
Use /model inside the chat box:
# Switch to Claude Web
/model claude-web
# Switch to Doubao
/model doubao-web
# Switch to DeepSeek
/model deepseek-web
# Or specify exact models
/model claude-web/claude-sonnet-4-6
/model doubao-web/doubao-seed-2.0
/model deepseek-web/deepseek-chat
Claude Web: Prefer the full model id:
/model claude-web/claude-sonnet-4-6(matches the catalog default)./model claude-webalone can fail to resolve or pick the intended model in some setups.
List available models
/models
Important: Only providers configured via
./onboard.sh webauthare written intoopenclaw.jsonand shown in/models.
The output shows:
- All available providers (e.g.
claude-web,doubao-web,deepseek-web) - Models under each provider
- Currently active model
- Aliases and config
Example:
Model Input Ctx Local Auth Tags
doubao-web/doubao-seed-2.0 text 63k no no default,configured,alias:Doubao Browser
claude-web/claude-sonnet-4-6 text+image 195k no no configured,alias:Claude Web
deepseek-web/deepseek-chat text 64k no no configured
HTTP API
curl http://127.0.0.1:3001/v1/chat/completions \
-H "Authorization: Bearer YOUR_GATEWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-web/deepseek-chat",
"messages": [{"role": "user", "content": "Hello!"}]
}'
CLI / TUI
node openclaw.mjs tui
Configuration
Example openclaw.json
{
"auth": {
"profiles": {
"deepseek-web:default": {
"provider": "deepseek-web",
"mode": "api_key"
}
}
},
"models": {
"providers": {
"deepseek-web": {
"baseUrl": "https://chat.deepseek.com",
"api": "deepseek-web",
"models": [
{
"id": "deepseek-chat",
"name": "DeepSeek Chat",
"contextWindow": 64000,
"maxTokens": 4096
},
{
"id": "deepseek-reasoner",
"name": "DeepSeek Reasoner",
"reasoning": true,
"contextWindow": 64000,
"maxTokens": 8192
}
]
}
}
},
"gateway": {
"port": 3001,
"auth": {
"mode": "token",
"token": "your-gateway-token"
}
}
}
Troubleshooting
First run: use the onboarding wizard (recommended)
./onboard.sh webauth
The wizard will create all required directories and basic files.
Fix issues: doctor command
If you already ran the project but see missing-directories or similar errors:
node dist/index.mjs doctor
The doctor command will:
- โ Check all required directories
- โ Create missing directories
- โ Fix common permission issues
- โ Validate config file structure
- โ Detect multiple conflicting state directories
- โ Print detailed suggestions
Limitations:
- โ Does not create
openclaw.json - โ Does not create
auth-profiles.json - โ
If those are missing/corrupt, rerun
./onboard.sh webauth
Roadmap
Current focus
- โ DeepSeek Web, Qwen intl/cn, Kimi, Claude Web, Doubao, ChatGPT Web, Gemini Web, Grok Web, GLM Web, GLM intl, Xiaomi MiMo, Manus API โ all tested
- ๐ง Improve credential capture robustness
- ๐ Documentation improvements
Planned
- ๐ Auto-refresh for expired web sessions
Adding New Platforms
To add a new web provider you usually need:
1. Auth module (src/zero-token/providers/{platform}-web-auth.ts)
export async function loginPlatformWeb(params: {
onProgress: (msg: string) => void;
openUrl: (url: string) => Promise<boolean>;
}): Promise<{ cookie: string; bearer: string; userAgent: string }> {
// Automate browser login and capture credentials
}
2. API client (src/zero-token/providers/{platform}-web-client*.ts)
export class PlatformWebClient {
constructor(options: { cookie: string; bearer?: string }) {}
async chatCompletions(params: ChatParams): Promise<ReadableStream> {
// Call platform web API
}
}
3. Stream handler (src/zero-token/streams/{platform}-web-stream.ts) and register it in web-stream-factories.ts
export function createPlatformWebStreamFn(credentials: string): StreamFn {
// Handle provider-specific streaming format
}
File Structure
openclaw-zero-token/
โโโ src/
โ โโโ zero-token/
โ โ โโโ providers/ # Web clients + *-web-auth.ts
โ โ โโโ streams/ # *-web-stream.ts + web-stream-factories.ts
โ โโโ agents/
โ โ โโโ web-stream-factories.ts # Re-export (stable import for runner)
โ โโโ commands/
โ โ โโโ auth-choice.apply.deepseek-web.ts # Auth flow
โ โโโ browser/
โ โโโ chrome.ts # Chrome automation
โโโ ui/ # Web UI (Lit 3.x)
โโโ .openclaw-zero-state/ # Local state (ignored)
โ โโโ openclaw.json # Config
โ โโโ agents/main/agent/
โ โโโ auth.json # Credentials (sensitive)
โโโ .gitignore # Includes .openclaw-zero-state/
Security Notes
- Credential storage: cookies and bearer tokens live in local
auth.jsonand must never be committed. - Session lifetime: web sessions expire; you may need to re-login from time to time.
- Rate limiting: web endpoints may enforce rate limits; they are not suited for heavy production workloads.
- Compliance: this project is for personal learning and experimentation. Always follow each platformโs Terms of Service.
Sync With Upstream OpenClaw
For a Zero Tokenโspecific file checklist and merge playbook, see Upstream sync (Zero Token).
This project is based on OpenClaw. To sync upstream changes:
git remote add upstream https://github.com/openclaw/openclaw.git
git fetch upstream
git merge upstream/main
Contributing
PRs are welcome, especially for:
- Bug fixes
- Documentation improvements
License
Acknowledgments
Disclaimer
This project is for learning and research only.
When using it to access any third-party service, you are responsible for complying with that serviceโs Terms of Use.
The authors are not liable for any issues caused by misuse of this project.