Skip to content

globalcaos/tinkerclaw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21,396 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Tinker Zone

The Tinker Zone — OpenClaw Fork

Your AI agent. Full access. No handcuffs.

Based on OpenClaw Platform AI Models Skills Fork Commits License

What is OpenClaw? A personal AI assistant you run on your own devices — multi-channel (WhatsApp, Telegram, Slack, Discord, WebChat, and more), multi-model, always-on. For upstream docs, install guides, and full feature list see the upstream OpenClaw repository.


Why This Fork?

Most OpenClaw setups are cautious by default — sandboxed, limited, designed for people who don't fully trust their agent yet.

This fork is for people who've already crossed that line.

Oscar Serra runs this fork on a Linux box in Barcelona with Claude, Gemini, GPT, and a local model as backup. No macOS required. No artificial limits. The agent has access to files, APIs, WhatsApp, email, calendar, and anything else that can be wired in — because that's the only way it actually helps.

"An AI assistant with no access is just a search engine with extra steps."

If that line made you nod, you're in the right place.

Clone the fork and get started


What It Looks Like

The Tinker Zone — Chat Interface

The Tinker Zone — wooden-themed chat interface with live model glow and context tracking

Context Treemap Token Detail

Left: Context treemap — see exactly what fills your 200K window. Right: Token-level detail per message.

Timeline

Daily token timeline — stacked bars showing usage by category across the day

Models Dashboard

Models dashboard — live status, pricing, fallback chain, active sessions


What's Different Here?

🔐 Security Patches Applied

All critical upstream security PRs cherry-picked and verified (historical — applied at the time):

PR Fix Status
#7769 DNS Rebinding Protection ✅ Applied
#7616 Zip Path Traversal Fix ✅ Applied
#7704 WebSocket Auth Enforcement ✅ Applied

🧠 Ships With Smart Defaults

These are not optional — they're on out of the box:

  • ENGRAM compaction — silent context management, no interruptions mid-session
  • Hippocampus memory indexing — your agent builds long-term memory automatically
  • Memory search with semantic embeddings — find anything across sessions
  • Budget panel — token cost tracking baked in; you see what each session costs
  • Smart Router V2 — auto-selects the best model for each task
  • Rate Limiting — prevents runaway API costs
  • Anthropic Failover — auto-switches to Gemini when Claude hits quota (tested & verified!)
  • OAuth PKCE Flow — proper token refresh for Anthropic subscriptions

🔧 Fork Fixes

Fix What happened Status
Anthropic failover Auto-switch to Gemini on rate limit ✅ Verified
Anthropic OAuth PKCE flow with refresh token ✅ Fixed
Heartbeat isolation Runs in separate session — no webchat pollution ✅ Fixed
Config schema merge Re-adds fork Zod keys wiped by upstream merges ✅ Fixed
Prompt queue deadlock Workaround for upstream session lane deadlock ✅ Workaround

🐧 Ubuntu-Native

  • Tested on Ubuntu 22.04 / 24.04
  • Systemd service examples included
  • Works with deja-dup for backups
  • No macOS-only dependencies

Setup Guide

Everything you need to go from git clone to a working personal AI assistant.

Quick Start

git clone https://github.com/globalcaos/tinkerclaw.git
cd tinkerclaw
pnpm install
pnpm build
openclaw doctor       # generates config + links WhatsApp
openclaw gateway start

What You Get Out of the Box

  • ENGRAM compaction — silent context management, no annoying compaction events
  • Hippocampus memory indexing — your agent builds long-term memory automatically
  • Memory search with semantic embeddings — find anything across sessions
  • Context pruning — cache-ttl prevents unbounded session growth
  • Budget panel — token cost tracking so you know what each session costs
  • Tinker UI — real-time context treemaps, session management, cost dashboard

Required Setup (you must do these)

  1. API Key — At minimum, set up one provider (Anthropic recommended). openclaw doctor walks you through this.
  2. WhatsApp (optional) — openclaw channels login --channel whatsapp to link your phone
  3. Give your agent a name — Edit ~/.openclaw/workspace/SOUL.md to define who your agent is

Recommended Config Tweaks

After first run, edit ~/.openclaw/openclaw.json:

{
  "channels": {
    "whatsapp": {
      "responsePrefix": "🤖",
      "triggerPrefix": "your-agent-name",
      "dmPolicy": "allowlist",
      "allowFrom": ["+your-phone-number"]
    }
  }
}

Cron Jobs (Recommended Starter Set)

TinkerClaw doesn't ship cron jobs by default — they're personal. Here's a minimal starter set:

# Morning briefing (daily at 8:30)
openclaw cron add --name morning-briefing --cron "30 8 * * *" --tz "Your/Timezone" \
  --session isolated --model "anthropic/claude-sonnet-4" \
  --message "Build a morning briefing: check calendar, pending tasks, and recent messages."

# Nightly reflection (daily at midnight)
openclaw cron add --name wind-down --cron "0 0 * * *" --tz "Your/Timezone" \
  --session isolated --model "anthropic/claude-sonnet-4" \
  --message "Review today's sessions. What worked? What failed? Write lessons to memory."

# Workspace cleanup (daily at 5am)
openclaw cron add --name cleaning-lady --cron "0 5 * * *" --tz "Your/Timezone" \
  --session isolated --model "anthropic/claude-haiku-4-5" \
  --message "Clean old sessions (>7 days), check bootstrap file sizes, prune daily logs."

Multi-Agent Family Setup

TinkerClaw supports multiple agents on separate machines. Each family member can have their own AI with its own personality:

  1. Clone tinkerclaw on their machine
  2. Run openclaw doctor to generate their config
  3. Edit SOUL.md to define the agent's personality
  4. Set ui.assistant.name in config for the webchat UI name
  5. Set channels.whatsapp.responsePrefix to a unique emoji (e.g., 🔮, 🌟, 🦊)
  6. Set channels.whatsapp.triggerPrefix to the agent's name

Agents can talk to each other in shared WhatsApp groups — just add the group JID to both configs.


🖥️ Tinker Command Center (Bundled Plugin)

You just switched to Claude API because Anthropic refused the Pentagon contract. Respect. Now — do you know what you're spending?

Claude API through OpenClaw is unmetered — there's no $20/month cap. Opus costs $15/M input and $75/M output. One deep agent session with tools can hit 200K+ tokens. Do the math: that's a surprise $20 bill from a single conversation.

Tinker is the fix. A real-time command center that shows you exactly where every token goes — before the bill arrives.

  • 🗺️ Context Treemap — Interactive visualization of what fills your context window
  • 📊 Response Treemap — See how much of the response is text, thinking, tool calls, or tool results
  • 💰 Live Cost Tracking — Per-provider usage, daily/monthly estimates, and rate-limit countdown
  • ⚠️ Budget Alerts — Set a monthly limit. Get warned at 70%, 90%, 100%
  • 🔄 Multi-call Run View — When the agent loops through 8 tools, see each call's cost individually
  • 💬 Full Chat Interface — Complete webchat with session switching, tool call inspection, and real-time streaming

What You're Actually Paying

Model Input (per 1M) Output (per 1M) Reality check
Claude Opus 4 / 4.5 $15.00 $75.00 ⚠️ One deep session = $20+
Claude Sonnet 4 / 3.5 $3.00 $15.00 Sweet spot for most tasks
Claude Haiku 3.5 $0.80 $4.00 Background work
Gemini 3 Pro / 3.1 Pro $1.25 $5.00 Failover — good and cheap
Gemini 2 Flash $0.10 $0.40 Near-free
GPT-4o $2.50 $10.00 Cross-model review

After pnpm build, visit http://localhost:18789/tinker/ · Dev: cd tinker-ui && pnpm devhttp://localhost:18790/tinker/

📦 Also available as a guide skill on ClawHub: clawhub install globalcaos/tinker-command-center


🤖 Multi-Model Support

Provider Model Use Case Status
Anthropic Claude Opus 4.5 / Sonnet 4 Primary chat, coding, complex tasks ✅ Active
Google Gemini 3 Pro Failover, large context, vision ✅ Active
OpenAI GPT-4o / o3 Cross-model review, metered tasks ✅ Active
Ollama Local models (qwen3, etc.) Heartbeat, background tasks ✅ Active

Failover Chain

Claude (primary) → Gemini (rate limit) → Local Model (offline fallback)

When Claude hits its quota, we automatically switch to Gemini with zero downtime. Tested and verified when both providers rate-limited within minutes of each other.


📦 Published Skills on ClawHub

19+ skills, all built by globalcaos. Install any of them with clawhub install globalcaos/<skill-name>.

🎙️ Voice & Personality

Skill Description Version
jarvis-voice Your agent already thinks like JARVIS. This makes it sound like one too. v3.1.1

📹 Media & Content

Skill Description Version
youtube-ultimate Free transcripts, 4K downloads, video exploration — zero API quotas burned v4.2.2
video-frames Pull exact frames or clips from any video. ffmpeg, no UI, no cloud. v1.0.0
ai-humanizer Text that reads like a human wrote it. 24 detectors, 500+ terms. v2.1.0

💬 Messaging & Channels

Skill Description Version
whatsapp-ultimate 3-rule security gate — agent speaks only when spoken to, in the right chat, by the right person. v3.5.1
xurl Post, reply, DM, upload media on X — from your agent, fully authenticated. v2.3.1

💰 Cost & Token Management

Skill Description Version
tinker-command-center 🆕 Real-time treemaps of context, cost, and budget. Your $200 Opus session didn't have to happen. v1.0.0
token-panel-ultimate Know exactly where your AI tokens go. Multi-provider tracking, budget alerts, REST API. v2.1.1
token-efficiency-guide Go from weekly limit on Tuesday to weekly limit on Sunday. 10 steps, one afternoon. v1.1.0

🏢 Enterprise Hacks (Browser Relay)

No API keys. No admin consent. No IT ticket. Your authenticated browser session is the API.

Skill Description Version
outlook-hack Agent reads Outlook email all day, drafts replies — won't send without approval. v3.0.0
factorial-hack Your agent reads your HR portal. Attendance, leave, payslips — no API key, no admin. v1.0.0
teams-hack Agent in your Teams: reads threads, posts updates, finds anything. No bot registration needed. v1.0.0

🤖 Agent & DevOps

Skill Description Version
coding-agent Hand off a coding task and come back to a diff. Codex, Claude Code, or Pi — your call. v1.0.0
subagent-overseer Sub-agents that go silent don't go unnoticed. Health checks, staleness alerts, zero babysitting. v1.0.0
fork-and-skill-scanner-ultimate Scan 1,000 GitHub forks per run. Surface the gold, skip the clones — fully automated. v1.1.1
memory-pioneer Find out how much your agent actually remembers. Spoiler: it's less than you think. v1.0.2

🛡️ Security & Governance

Skill Description Version
agent-boundaries-ultimate Draw the line between helpful and reckless. Configurable safety gates that don't lobotomize your agent. v1.2.2
agent-memory-ultimate Your agent's long-term memory, done right. Semantic search, daily consolidation, cross-session recall. v2.0.3

📋 Data & Migration

Skill Description Version
chatgpt-exporter-ultimate Leaving ChatGPT? Take your conversations with you. Full export, clean format, ready for import. v1.0.2


📄 Memory Research Papers

We don't just use memory — we study it. 11 research papers on agent cognition, all in docs/papers/:

# Paper Topic
J1 total-recall Complete memory architecture for persistent agents
J2 instant-recall Fast retrieval from large memory stores
J3 fractal-reasoning Recursive reasoning patterns across abstraction levels
J4 identity-persistence How agents maintain identity across session boundaries
J5 sleep-consolidation Nightly memory consolidation (inspired by neuroscience)
J6 round-table Multi-model deliberation protocols
J7 humor-embeddings Humor detection and generation in embedding space
J8 curiosity-motivation Intrinsic curiosity as agent motivation
J9 agent-security Security boundaries for trusted agents
J10 corporate-swarm Multi-agent coordination in enterprise settings
J11 learned-intuition When pattern matching becomes faster than reasoning

What's Next

  • WhatsApp full history sync — your agent will have context going back years, not just this week
  • LanceDB hybrid memory — persistent, searchable, cross-session
  • The Tinker Zone YouTube tutorials — because docs only get you so far

📚 Upstream Documentation

OpenClaw upstream repository & docs · Website · Docs · Getting Started · FAQ


🤝 Contributing

  1. Document everything — help newcomers get started
  2. Test on Linux — Ubuntu is our primary platform
  3. Trust-first features — expand AI capabilities, not restrict them
  4. Cost transparency — make AI spending visible and controllable

We upstream security fixes quickly, experiment freely with features that might be too aggressive for upstream, and document the journey so others can learn.


About the Maintainer

Oscar Serra is a telecom engineer in Barcelona who got tired of AI assistants that apologize before doing anything useful.

He built this fork because he wanted an agent that actually knows him — his calendar, his emails, his WhatsApp, his code — and acts on it without asking permission for every step. Everything documented here is running in production on his daily driver.

If something in this fork is broken, Oscar already found it. If something works brilliantly, there's a story behind it.

Follow the build on GitHub


OpenClaw Contributors

steipete vincentkoc vignesh07 obviyus Mariano Belinky sebslight gumadeiras Takhoffman thewilloftheshadow cpojer

See all contributors

tyler6204 joshp123 Glucksberg mcaxtr quotentiroler osolmaz mitsuhiko BinaryMuse pi0 Stephen Brian King


Clone it. Fork it. Break it. Make it yours.


📜 Same as upstream OpenClaw (MIT) · Fork maintained by GlobalCaos · Based on OpenClaw

About

OpenClaw fork — real-time token tracking, context treemaps, self-improving agents, and the Field Guide for AI

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 88.1%
  • Swift 7.0%
  • Kotlin 1.6%
  • Shell 1.1%
  • JavaScript 0.9%
  • CSS 0.6%
  • Other 0.7%