← 返回
未分类 Key

Toani Vault CLI

Install, configure, and securely operate the Toani Vault CLI for login, health checks, credential metadata reads, and sandbox browser sessions. Use when the...
安装、配置并安全运行 Toani Vault CLI,执行登录、健康检查、凭证元数据读取和沙箱浏览器会话。在需要时使用。
toani
未分类 clawhub v0.0.21 1 版本 99547.5 Key: 需要
★ 0
Stars
📥 220
下载
💾 0
安装
1
版本
#latest#security

概述

Toani Vault CLI

Purpose

Use this skill to help the user install, verify, and operate the toani CLI.

Default priorities:

  1. Verify the real CLI surface with toani --help before trusting older docs.
  2. Prefer toani login for onboarding.
  3. Treat credentials as read-only metadata access.
  4. Treat sandbox as a remote TEE browser session, not a local browser runtime.
  5. Terminate sandbox sessions when finished.

Install

If toani is not available, install it first.

Registry install:

npm install -g @toani/vault-cli@latest

Local dev install:

cd /path/to/credbridge-public/cli
npm install
npm run build
npm pack
npm install -g ./toani-vault-cli-*.tgz

If the user already has the repo checked out and wants the local build, prefer the local dev install path. Otherwise prefer the registry install path.

Smoke Checks

Run these after install:

toani --help
toani --version
toani config show
toani sandbox stats

Authentication and Setup

Preferred onboarding:

toani login
toani doctor
toani --output json config show
toani --output json credentials list

toani login is the preferred entry path. Do not start with config init --token unless the user explicitly needs a legacy-compatible non-interactive flow.

toani login semantics:

  • interactive onboarding with browser guidance
  • supports existing account, sign-up-first, and already-have-token paths
  • watches the clipboard for a PASETO token
  • validates the token by default
  • stores the token in the OS Keychain when possible
  • may optionally install the bundled skill into ~/.claude/skills/toani-vault-cli/ or ~/.codex/skills/toani-vault-cli/

toani doctor checks:

  1. CLI version
  2. Node.js version
  3. Token storage
  4. Token format
  5. Base URL
  6. Server reachable
  7. Token valid

Runtime Model

Keep this mental model explicit:

  • toani is a CLI, not SDK pseudocode.
  • sandbox is a remote TEE browser session provided by the backend.
  • http_request is a backend-side direct HTTP operation and does not open the remote browser.
  • Credentials and bearer tokens are created in the Dashboard UI; the CLI currently reads existing artifacts.

Current Command Surface

Trust the current CLI implementation and toani --help.

Currently exposed groups:

  • login
  • doctor
  • config
  • credentials
  • sandbox

Do not assume these exist unless verified in the installed build:

  • auth
  • tokens
  • service-accounts
  • audit

credentials currently exposes only:

toani credentials list [--service-id <id>] [--credential-type <type>] [--only-valid true|false]
toani credentials get <credentialId>

Do not claim that the CLI can currently do these credential operations unless the user has verified a newer build:

  • create
  • update
  • delete
  • decrypt

Global Flags and Precedence

Global flags must appear before the command group:

toani --output json credentials list
toani --base-url https://api.example.com sandbox stats

Do not write:

toani credentials list --output json
toani sandbox stats --base-url https://api.example.com

Base URL precedence:

  1. --base-url
  2. TOANI_BASE_URL
  3. CREDBRIDGE_BASE_URL
  4. config file value
  5. default dashboard-derived fallback

Token precedence:

  1. --token
  2. TOANI_VAULT_TOKEN
  3. CREDBRIDGE_TOKEN
  4. OS Keychain token
  5. legacy config token

Default to --output json for automation and agent workflows.

Recommended Setup

If the user wants explicit environment-variable setup, use:

export TOANI_VAULT_DASHBOARD_BASE_URL=https://dashboard.example.com
export TOANI_BASE_URL=https://api.example.com/
export TOANI_VAULT_TOKEN=<BEARER_TOKEN>

Only use placeholder values in examples. Never log or commit real tokens.

Sandbox Workflow

Standard browser-session flow:

toani sandbox create-session --service-id <serviceId> --original-intent <intent> [--credential-id <id>]
toani sandbox get-session <sessionId>
toani sandbox bootstrap-page <sessionId> --mode rocket_loader
toani sandbox execute <sessionId> --operation-type navigate --params '{"url":"https://example.com"}'
toani sandbox execute <sessionId> --operation-type get_text --params '{"selector":"body"}'
toani sandbox terminate <sessionId>

Supported operation types to rely on:

  • navigate
  • click
  • fill
  • get_text
  • execute_script
  • wait
  • export
  • dom_export
  • http_request

Sandbox Safety Rules

When guiding usage, keep these boundaries clear:

  • Do not treat the sandbox as local Playwright or a local browser.
  • Do not leave long-lived sessions running.
  • Inspect page state before secret-backed fill steps.
  • After credential-backed fill, prefer safe post-actions such as get-session, get-operation, export-dom, and get_text.
  • Do not put secrets into execute_script.bindings.

Credential Handling Rules

  • credentials list/get return metadata only.
  • They do not reveal plaintext secrets.
  • They do not perform decryption.
  • They still require a token with the right read scope.

If the user gives only a credential nickname instead of a concrete credential_id, first inspect metadata with toani credentials list or confirm the ID in the Dashboard UI.

Working Style

When using this skill:

  1. Verify the installed CLI surface first.
  2. Choose install flow or usage flow based on whether toani already exists.
  3. Prefer the shortest executable command sequence that answers the user's task.
  4. Call out scope limits instead of inventing unpublished commands.
  5. If a command fails, check token scope, base URL, and environment before assuming product behavior is broken.

Common Fast Paths

Install the CLI:

npm install -g @toani/vault-cli@latest

Onboard a new user:

toani login
toani doctor

Inspect credentials:

toani --output json credentials list
toani --output json credentials get <credentialId>

Check sandbox health:

toani sandbox stats

版本历史

共 1 个版本

  • v0.0.21 当前
    2026-05-12 05:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,071 📥 804,805
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,946
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,371 📥 319,668