360 Secure SkillHub
360 安全技能中心

TinkerClaw Command Center

该 Skill 仅含文档,不附带仪表盘源码;它说明如何从发布者的 TinkerClaw 仓库固定提交构建并运行 OpenClaw 的 Tinker 本地界面,用树状图、时间线和预算面板展示 token、费用与上下文占用。运行依赖 OpenClaw 网关及本地目录。

分类:数据
globalcaos
globalcaos
热度 60.62
最近更新 2026-12-02 22:28:46

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add globalcaos/tinker-command-center
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
可选出网
Metadata
name
tinker-command-center
version
1.0.5
description
Stop guessing what your AI costs. Tinker shows every token, every dollar, every context byte of your OpenClaw gateway in real time. Documentation-only skill: the dashboard itself is part of the publisher's own TinkerClaw repo (github.com/globalcaos/tinkerclaw), installed from a pinned public commit.
metadata
{"openclaw":{"requires":{"bins":["git","node","pnpm"]},"notes":{"security":"This skill ships no code. It documents how to build Tinker from the publisher's own repository, github.com/globalcaos/tinkerclaw, pinned to commit ca099ed018111d6aff47a9f4a4849872a4f64805 and installed with the committed pnpm-lock.yaml. Tinker is a local web UI served by your own OpenClaw gateway under /tinker/. It is a full chat client, so it is not read-only, and its gateway plugin has HTTP endpoints that read and write local files inside a fixed list of folders. With the default gateway settings every /tinker/ request needs the gateway token as an Authorization Bearer header. With gateway.controlUi.dangerouslyDisableDeviceAuth=true, only the page, /api/seat, /api/ui-state and /api/jarvis-voice check the token; the file, kit, media, mute and context-anatomy endpoints answer without it. See What it touches."}}}

Tinker Command Center

One of dozens of skills and plugins in TinkerClaw — a self-improving OpenClaw fork that's been running 24/7 for months.

Your $200 Opus session didn't have to happen.

The bill tells you how much. It never tells you which file, which tool call or which forgotten paste did it.

Tinker draws the whole conversation as a map. The biggest box is the thing eating your money, and you see it while the agent is still talking. Next to the map you get what each reply cost, how much of your plan is left, and when it resets. It is also a complete chat window, so you can work in it all day instead of opening it after the damage.

Part of TinkerClaw — real-time token tracking, self-improving crons, persistent cognitive memory. This is one piece of that stack; the repo has dozens more.

👉 https://github.com/globalcaos/tinkerclaw

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

What Tinker shows

  • Context treemap. Your context window as nested boxes: system prompt sections, conversation history, tool results. Click down from a category to a message to its raw text.
  • Response treemap. The same picture for the model's output: text, thinking and tool calls, one per model call inside a run.
  • Context timeline. How full the window was at each call, so you see the moment it jumped.
  • Usage and budget. Token use per provider, and the rate-limit windows with a countdown to the reset, for the providers whose usage your gateway can read.
  • Multi-call runs. When the agent loops through tools, each call's context and cost is listed on its own line.
  • Chat. Session switching, tool calls you can open inline, and streaming replies. It sends messages, so it is a working client.

Install

This skill contains only this document. Tinker is a bundled plugin in TinkerClaw, the publisher's own OpenClaw fork (github.com/globalcaos/tinkerclaw). The commands below take one exact, immutable public commit and not a moving branch, so what you build is what that commit contains. Read it there before you build.

# The publisher's own repo, pinned to an exact commit
git clone https://github.com/globalcaos/tinkerclaw.git tinkerclaw
cd tinkerclaw
git checkout --detach ca099ed018111d6aff47a9f4a4849872a4f64805
git rev-parse HEAD   # must print ca099ed018111d6aff47a9f4a4849872a4f64805

# Install exactly the committed lockfile
pnpm install --frozen-lockfile

# Build the gateway, then the Tinker UI (the root build does not include it)
pnpm build
pnpm --filter tinker-ui build

Node 22.14 or newer. pnpm install runs the repo's own preinstall, postinstall and prepare scripts from package.json: a package-manager warning, the bundled-plugin setup, and core.hooksPath pointed at git-hooks/. Dependency build scripts are limited by the onlyBuiltDependencies allowlists. The commit has two that differ: pnpm-workspace.yaml adds @napi-rs/canvas, package.json adds @tloncorp/tlon-skill.

Tinker is then served at http://localhost:18789/tinker/. With default gateway settings the gateway rejects any /tinker/ request (including /tinker/login) that lacks Authorization: Bearer <gateway token>, so a plain browser tab gets 401. The browser login works only when gateway.controlUi.dangerouslyDisableDeviceAuth is true; the next section says what that opens.

What it touches

All of this is in the pinned commit, in extensions/tinkerclaw-tinker/index.ts and tinker-ui/.

  • Network: the page opens one WebSocket and its HTTP calls to your own gateway (port 18789 by default). Tinker adds no external service. Messages you send are handled by your gateway like any other chat.
  • Auth, default settings: the route is registered auth: "gateway", so every /tinker/ request needs the gateway token as a Bearer header.
  • Auth, dangerouslyDisableDeviceAuth: true: the route is registered auth: "plugin". The HTML page, /api/seat, /api/ui-state and /api/jarvis-voice/* ask for the token (header or login cookie). These answer without it: /api/kit-content, /api/save-file, /api/media, the generic /api/*?path= file reader, /api/jarvis-mute and /api/context-anatomy/* (recorded prompts and responses). The last two also send Access-Control-Allow-Origin: *. Use that setting only on a gateway bound to loopback on a machine nobody else logs in to.
  • Reads: the context-anatomy SQLite data. /api/media and the generic /api/* reader resolve the real path first and allow only ~/.openclaw, ~/src/tinkerclaw, ~/src/jarvis-icu, ~/Documents, ~/Downloads, ~/Desktop and ~/Pictures, up to 25 MB for an image and 512 KB for a text file. /api/kit-content allows only ~/src/tinkerclaw and ~/.openclaw/workspace/kits, up to 512 KB.
  • Writes: per-seat UI state and operator names under ~/.openclaw, the mute flag at ~/.openclaw/data/jarvis-muted.json, and phone-presence markers under ~/.openclaw/data/jarvis-voice. /api/save-file writes only inside ~/src/tinkerclaw, ~/.openclaw/workspace/kits and ~/.openclaw/recipes; it collapses .. and follows symlinks before it compares the path.

Layout (at the pinned commit)

tinker-ui/                         ← Vite + Lit app
├── src/app.ts                     ← Main shell: sidebar, panels, WebSocket client
├── src/panels/context-treemap.ts  ← What fills your context window
├── src/panels/response-treemap.ts ← What each response costs
├── src/panels/context-timeline.ts ← Context usage over time
├── index.html
└── vite.config.ts                 ← base /tinker/, dev port 18790

extensions/tinkerclaw-tinker/      ← OpenClaw plugin: serves tinker-ui/dist under /tinker/
├── index.ts
└── openclaw.plugin.json

Pairs Well With

  • token-panel-ultimate — collects the usage numbers on a machine where you do not run the full UI
  • smart-model-router — once you see which calls cost the most, this decides which model gets them

Changelog

  • 1.0.5 — The pinned commit is now ca099ed…, which is on GitHub; the one named in 1.0.4 never was. That commit also confines /api/kit-content and /api/save-file, so the warning about .. paths is gone and the folder list is updated. Removed the price table (provider prices move faster than this page) and the pnpm dev line, which the commit does not have.
  • 1.0.4 — Corrected What it touches: which endpoints skip the token when dangerouslyDisableDeviceAuth is on, the login page behind the Bearer gate in default mode, and the two differing onlyBuiltDependencies lists.
  • 1.0.3 — Install pins the publisher's own repo to an exact commit and uses the committed lockfile; the UI build step is spelled out; the "read-only" and "no data leaves your machine" claims are gone.