Skip to content
Back to skills

Add Onecli

ASecurity

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.

  • 30,864 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 24, 2026
ai-agentsapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned October 1, 2026

npx -y skills add qwibitai/nanoclaw --skill add-onecli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Onecli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Onecli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qwibitai-add-onecli/badge)](https://www.skillsdirectory.com/skills/qwibitai-add-onecli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-onecli
description: 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.
---

# 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.

```nc:copy
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.

```nc:append to:src/gateway-providers/installed.ts
import './onecli.js';
```

## Install the pinned SDK

```nc:dep manager:pnpm
@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.

```nc:run effect:external
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.41.0; see [ChatGPT OAuth refresh](references/chatgpt-oauth-refresh.md)
  for the limitation and upgrade constraints.

## Validate

```nc:run effect:build
pnpm run build
```

```nc:run effect:test
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.

Files in this skill

  • REMOVE.md432 B
  • SKILL.md2.6 KB
  • gateway.json123 B
  • payload/container/skills/onecli-gateway/SKILL.md3.3 KB
  • payload/container/skills/onecli-gateway/instructions.md760 B
  • payload/docs/onecli-upgrades.md6.1 KB
  • payload/src/gateway-providers/onecli-files.test.ts4.3 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
  • 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/provider-credentials.test.ts19.3 KB
  • scripts/provider-credentials.ts11.8 KB
  • scripts/readiness.test.ts1.1 KB
  • scripts/register-claude-token.sh4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.