跳到正文
cccskills
免费在 GitHub 公开

add-onecli

Install or refresh OneCLI as NanoClaw’s gateway for credentials and approval events. The skill restores integration files and agent guidance, configures a local or remote gateway, and validates the setup using a pinned SDK and tests.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Install or refresh OneCLI as NanoClaw's gateway provider. Use when setup selects OneCLI, an existing OneCLI-backed install is migrated to the gateway seam, or its runtime, approval bridge, setup, and agent guidance must be restored from the in-tree package.

查看安装方法

适用场景

  • Adding OneCLI during NanoClaw setup
  • Migrating an existing OneCLI integration
  • Restoring integration files and agent guidance
  • Configuring access to credentials stored in OneCLI

包含的文件(24)

  • SKILL.md4.1 KB
  • gateway.json123 B
  • payload/container/skills/onecli-gateway/instructions.md760 B
  • payload/container/skills/onecli-gateway/SKILL.md3.3 KB
  • payload/docs/onecli-upgrades.md13.4 KB
  • payload/src/gateway-providers/onecli-files.test.ts4.4 KB
  • payload/src/gateway-providers/onecli-files.ts4.2 KB
  • payload/src/gateway-providers/onecli-install.test.ts1.1 KB
  • payload/src/gateway-providers/onecli.test.ts13.2 KB
  • payload/src/gateway-providers/onecli.ts9.6 KB
  • references/chatgpt-oauth-refresh.md1.1 KB
  • REMOVE.md576 B
  • scripts/auth.ts5.6 KB
  • scripts/credential-store.test.ts1.7 KB
  • scripts/credential-store.ts2.5 KB
  • scripts/detect.ts764 B
  • scripts/install-claude.sh1.6 KB
  • scripts/no-proxy.test.ts1.6 KB
  • scripts/provider-credentials.test.ts19.3 KB
  • scripts/provider-credentials.ts11.9 KB
  • scripts/readiness.test.ts1.1 KB
  • scripts/register-claude-token.sh4.5 KB
  • scripts/setup.ts21.0 KB
  • versions.json83 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Add OneCLI gateway

This skill owns the full OneCLI integration. NanoClaw core supplies the generic gateway seam and existing skill engine.

Install the provider payload

Copy the package's native adapter, tests, and agent guidance into their normal NanoClaw paths. NanoClaw core owns the approval workflow.

payload/src/gateway-providers/onecli-files.ts -> src/gateway-providers/onecli-files.ts
payload/src/gateway-providers/onecli-files.test.ts -> src/gateway-providers/onecli-files.test.ts
payload/src/gateway-providers/onecli.ts -> src/gateway-providers/onecli.ts
payload/src/gateway-providers/onecli.test.ts -> src/gateway-providers/onecli.test.ts
payload/src/gateway-providers/onecli-install.test.ts -> src/gateway-providers/onecli-install.test.ts
payload/container/skills/onecli-gateway/SKILL.md -> container/skills/onecli-gateway/SKILL.md
payload/container/skills/onecli-gateway/instructions.md -> container/skills/onecli-gateway/instructions.md
payload/docs/onecli-upgrades.md -> docs/onecli-upgrades.md

Register once

The provider file makes the only product registration call. It translates OneCLI sessions and native approval events into the generic contract.

import './onecli.js';

Install the pinned SDK

@onecli-sh/sdk@2.2.1

Configure the gateway

The setup script safely reuses a healthy existing installation, installs the pinned local gateway when absent, or uses NANOCLAW_ONECLI_API_HOST and NANOCLAW_ONECLI_API_TOKEN for a remote gateway.

This integration supports exactly the gateway version pinned in .claude/skills/add-onecli/versions.json (onecli-gateway, today 1.42.0; not the versions.json at the project root). OneCLI 1.43 and later remove the agent secret-assignment API used below, so 1.43+ is not supported for now. Setup reuses an existing gateway without checking its version: follow Upgrading the OneCLI gateway to check it and to move it to the pin. The CLI (onecli-cli) and SDK (onecli-sdk) have their own pins.

pnpm exec tsx .claude/skills/add-onecli/scripts/setup.ts

Provider credentials

Provider skills such as /add-opencode store model credentials here through the gateway seam. OneCLI does not grant them automatically: grant the group's OneCLI agent access to the chosen secret. Read its existing secret assignments first and merge the new secret ID into that list, because onecli agents set-secrets replaces assignments. Verify the result with onecli agents secrets. Do not put a key in .env, command arguments, or the container environment.

  • Only a selected OneCLI adapter uses ONECLI_URL and ONECLI_API_KEY.
  • Moving an API key to another exact host keeps its stored value, so a blank answer at the key prompt completes the move after confirmation.
  • Existing OneCLI credential names and formats remain compatible.
  • ChatGPT logins need manual reauthentication after expiry on the pinned OneCLI 1.42.0; see ChatGPT OAuth refresh for the limitation and upgrade constraints.

Validate

pnpm run build
pnpm exec vitest run src/gateway-providers/onecli-files.test.ts src/gateway-providers/onecli-install.test.ts src/gateway-providers/onecli.test.ts src/gateway-providers/gateway-provider-registry.test.ts src/gateway-approval-coordinator.test.ts

The setup consumer writes NANOCLAW_GATEWAY_PROVIDER=onecli only after every directive above succeeds. Claude authentication is then completed through scripts/auth.ts; credentials never enter an agent container.

During an atomic NanoClaw upgrade, scripts/detect.ts identifies an older implicit OneCLI installation so the generic updater can preserve that choice before the service restarts.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Equip NanoClaw agents to convert attached office documents into Markdown locally using Firecrawl AnyDoc. Agents can read Word, PowerPoint, Excel, and text-based PDF files without uploading them to an external parsing service.

中文简介正在准备中。当前显示英语简介。

  • Reading and summarizing attached office documents
  • Converting documents without uploading them to an external service
  • Extracting text from text-based PDFs
nanocoai/nanoclaw3.1万2026年10月18日 更新

Let a NanoClaw container agent call local models running in Atomic Chat. The skill adds an MCP server, a connection that exposes model listing and text generation as tools, while Claude continues to coordinate the work.

中文简介正在准备中。当前显示英语简介。

  • Delegate part of Claude's work to a local model
  • List models available in Atomic Chat
  • Generate an answer with a specified local model
nanocoai/nanoclaw3.1万2026年10月18日 更新

Add a read-only web dashboard for browsing NanoClaw agents, sessions, and other resources. It builds tables from command-line JSON output and includes message activity charts, recent logs, and a viewer for skills, profiles, and CLAUDE.md files.

中文简介正在准备中。当前显示英语简介。

  • Check agent and session status in a browser
  • Review message counts and daily activity
  • Read recent host logs
nanocoai/nanoclaw3.1万2026年10月18日 更新

add-codex

免费

Add Codex as the agent that plans tasks and coordinates tools in NanoClaw. Choose it for individual groups alongside Claude, with conversation history and session resume using a ChatGPT subscription or OpenAI API key.

中文简介正在准备中。当前显示英语简介。

  • Adding Codex as a NanoClaw agent provider
  • Choosing Claude or Codex for each group
  • Setting up ChatGPT or API key authentication
nanocoai/nanoclaw3.1万2026年10月18日 更新

Install a local NanoClaw dashboard to inspect agents, sessions, channels, messages, and users. It displays token usage, context usage, activity, and live logs using periodic data snapshots and a log forwarding module.

中文简介正在准备中。当前显示英语简介。

  • Checking agent and session status in one place
  • Reviewing token and context usage
  • Following live logs with level filters
nanocoai/nanoclaw3.1万2026年10月18日 更新

Connect NanoClaw agents to DeltaChat for email-based messaging with end-to-end encryption. Set up direct chats or small group conversations, exchange file attachments, and link each chat to the appropriate agent group.

中文简介正在准备中。当前显示英语简介。

  • Chatting with a personal assistant through DeltaChat
  • Using an agent in a small DeltaChat group
  • Exchanging files with an agent in chat
nanocoai/nanoclaw3.1万2026年10月18日 更新

查看 nanocoai 的全部技能

报告此技能的问题