dinotty-cli

dinotty-cli is a skill for Claude Code from xichan96/dinotty. It costs 93 tokens per session (1,570 once invoked), scanned A, original, MIT.

A reference for the Dinotty command-line client, including installation, connection settings, authentication, commands, output formats, and error codes.

In plain words
What is it for?
Use it when installing or checking Dinotty, finding the right command and options, or troubleshooting operations involving tabs, sessions, files, or viewers.
Why use it?
It provides the shared command and connection details needed by other Dinotty tools and helps diagnose missing installations, tokens, ports, or permissions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when installing or checking Dinotty, finding the right command and options, or troubleshooting operations involving tabs, sessions, files, or viewers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xichan96/dinotty/dinotty-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xichan96/dinotty --skill dinotty-cli
Clone the repo
git clone --depth 1 https://github.com/xichan96/dinotty

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dinotty-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-cli/github.svg)](https://agentmods.dev/skills/xichan96/dinotty/dinotty-cli)
Your own site
<a href="https://agentmods.dev/skills/xichan96/dinotty/dinotty-cli"><img src="https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dinotty-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/xichan96/dinotty/dinotty-cli"><img src="https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.01570
Opus 5.5 $0.00037 $0.00628
Sonnet 5.5 $0.00019 $0.00314
Haiku 4.5 $0.00009 $0.00157

Measured 10d ago against content hash a64a30bf15a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dinotty-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dinotty-cli/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dinotty CLI 基础参考

所有 Dinotty 操作统一走 dinotty 命令,不再为每个 skill 写临时 Python/bash 脚本。本 skill 是命令、参数、鉴权和错误码的总入口。

何时使用

  • 需要确认某个 Dinotty 操作有没有对应命令、参数怎么写
  • 需要安装/升级 dinotty,或排查 token、端口、连接问题
  • 其他 skill(viewer/sessions/tabs/workspace)里的命令报错,需要查错误码

具体任务优先看专用 skill:打开文件用 dinotty-viewer,管理 tab 用 dinotty-tabs,读屏/发输入用 dinotty-sessions,读写文件用 dinotty-workspace。

安装与自检

cargo install --path <dinotty-repo>/cli   # 安装到 ~/.cargo/bin/dinotty
dinotty --version
dinotty --help

command -v dinotty 找不到时,先完成用户任务(可用 dinotty-html-viewer 的 legacy 脚本兜底),并提示用户安装 CLI。

运行环境

在 Dinotty 的终端 tab 里,Dinotty 自动注入:

  • DINOTTY_URL:当前实例地址,桌面默认 http://127.0.0.1:8999
  • DINOTTY_PANE_ID:当前 pane,viewer/workspace/screen 可直接省略 --pane

不在 Dinotty tab 里时,显式传 --url 和 --pane(或设置同名环境变量)。

全局参数

参数 环境变量 默认值 说明
--url <URL> DINOTTY_URL http://127.0.0.1:8999 无 scheme 自动补 http://
--pane <ID> DINOTTY_PANE_ID — 默认 pane id
--token <TOKEN> DINOTTY_TOKEN — 鉴权 token
--json — 关 输出机器可读 JSON;错误走 stderr
--ansi — 关 screen 保留 ANSI 转义
-h/--help — — 加在命令后看子命令帮助
-V/--version — — 版本

全局参数可以放在命令前后任意位置。-- 之后的参数不再当选项解析(用于 tabs create -- <argv...>)。

token 解析顺序

  1. --token
  2. DINOTTY_TOKEN
  3. GET /api/auto-token(仅回环地址)
  4. 桌面 app 写的 token 文件:macOS ~/Library/Application Support/dinotty/token, Linux ~/.local/share/dinotty/token(或 $XDG_DATA_HOME),Windows %APPDATA%\dinotty\token
  5. 设置了 DINOTTY_CONFIG_SUFFIX(如 -skills)时优先找 dinotty<suffix>/token

都没有时请求不带 Authorization;服务端无 token 或回环放行时仍可用。

命令表

命令 作用 需要 Open API
viewer open <file> 在主界面文件查看器打开文件(工作区外自动 staging) 否
sessions list 列出终端 session 是
screen [pane_id] 打印 pane 当前屏幕 是
input send <pane_id> <text> 向 pane 写入文本 是
tabs list 列出 tab(id/pane/title/cwd) 否
tabs create [--cwd --title --env] [-- argv...] 新建 tab 否
tabs close <tab_id> 关闭 tab(会结束其中 pane) 否
tabs rename <tab_id> <title> 重命名 tab 否
tabs split <tab_id> --direction h|v 分屏 否
tabs activate <tab_id> [pane_id] 激活 tab/pane 否
workspace list [path] 列出工作区目录 否
workspace read <path> 输出文件原始字节 否
workspace write <path> - 从 stdin 写文件 否
workspace git status 工作区 git 改动概览 否
workspace git diff <path> 单文件 HEAD/工作区内容 否

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 112 lines · 93 tokens per session scan A a64a30bf15a1

Subscribe to this mod's changes

dinotty-cli is a skill published in the GitHub repository xichan96/dinotty (741 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 1,570 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-20.

Related

dinotty-cli compared with skills from other repositories

dinotty-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dinotty-clixichan96/dinottySkill741todayMITA93Claude Code
batchQwenLM/qwen-codeSkill31ktodayApache-2.0A102Claude Code
batch-apiQwenLM/qwen-codeSkill31ktodayApache-2.0A51Claude Code
loopQwenLM/qwen-codeSkill31ktodayApache-2.0A66Claude Code
opencode-exportZelinZhou-THU/opencode-exportSkill25mo agoMITA41Claude Code, Codex
herdrshahidshabbir-se/my-pi-setupSkill11mo agoMITA74Claude Code, Codex
repo-hygieneQwenLM/qwen-codeSkill31ktodayApache-2.0A48Claude Code, Codex