open-index/open-npm huggingface dataset:
npm package: @sunbelife/openclaw-connector
Description: Potato OpenClaw Connector CLI.
Latest version: 0.1.17

# @sunbelife/openclaw-connector

Potato OpenClaw Connector CLI.

This connector now talks to the local OpenClaw installation through the official `openclaw agent` CLI by default, so users do not need to configure `OPENCLAW_HTTP_URL_TEMPLATE`.

## Usage

```bash
npx @sunbelife/openclaw-connector@latest connect \
  --server-url https://potato.nootag.tech \
  --install-token ocit_xxx
```

首次安装成功后，connector 会把服务端返回的重连凭证持久化到本地：

```text
~/.config/potato-openclaw-connector/state.json
```

之后同一台机器重启 connector、修改本地配置、或 WebSocket 短暂断开时，不再需要重新生成安装 token：

```bash
npx @sunbelife/openclaw-connector@latest connect \
  --server-url https://potato.nootag.tech
```

也可以显式传入服务端返回的重连 token：

```bash
npx @sunbelife/openclaw-connector@latest connect \
  --server-url https://potato.nootag.tech \
  --reconnect-token <reconnect-token>
```

If your OpenClaw upstream is not preconfigured in the runtime environment, pass:

```bash
OPENCLAW_HTTP_URL_TEMPLATE="https://your-openclaw/api/responses" \
OPENCLAW_HTTP_AUTH_TOKEN="your-openclaw-token" \
OPENCLAW_DEFAULT_MODEL="your-model" \
npx @sunbelife/openclaw-connector@latest connect \
  --server-url https://potato.nootag.tech \
  --install-token ocit_xxx
```

To call the standard OpenClaw OpenResponses API directly:

```bash
OPENCLAW_HTTP_URL_TEMPLATE="https://your-openclaw/v1/responses" \
OPENCLAW_HTTP_AUTH_TOKEN="your-openclaw-token" \
npx @sunbelife/openclaw-connector@latest connect \
  --server-url https://potato.nootag.tech \
  --install-token ocit_xxx
```

The connector auto-detects `.../v1/responses` and switches to the standard OpenClaw request shape:

- request body: `{"model":"openclaw","input":"..."}`
- optional header: `x-openclaw-session-key`
- optional header: `x-openclaw-model`
- optional agent selection: `openclaw/<agent_id>` if the job or env provides one

You can still force a specific mode:

```bash
OPENCLAW_HTTP_API_STYLE=openresponses
OPENCLAW_HTTP_API_STYLE=legacy
```

To print received jobs, upstream responses, and returned `job_result` payloads:

```bash
POTATO_OPENCLAW_DEBUG_JOBS=1 \
npx @sunbelife/openclaw-connector@latest connect \
  --server-url https://potato.nootag.tech \
  --install-token ocit_xxx
```

By default the connector runs:

```bash
openclaw agent --message "..." --json
```

By default the connector prefers the local OpenClaw agent `potato`. If that agent does not exist, it falls back to the OpenClaw default agent (or the first available agent).

If you want to target a specific local OpenClaw agent, set:

```bash
OPENCLAW_DEFAULT_AGENT_ID="main"
```

In non-TTY environments, the connector automatically sets:

```bash
CI=true
NO_COLOR=1
```

so that npm / CLI output remains machine-readable.

To verify that an install token can bootstrap correctly:

```bash
npx @sunbelife/openclaw-connector@latest doctor \
  --server-url https://potato.nootag.tech \
  --install-token ocit_xxx
```

`doctor` 也支持复用本地保存的重连状态：

```bash
npx @sunbelife/openclaw-connector@latest doctor \
  --server-url https://potato.nootag.tech
```
npm package: @sunbird-cb/access-settings
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.
Latest version: 0.0.1-cbrelease-4.8.34

# access-settings

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

## Code scaffolding

Run `ng generate component component-name --project access-settings` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project access-settings`.
> Note: Don't forget to add `--project access-settings` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build access-settings` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build access-settings`, go to the dist folder `cd dist/access-settings` and run `npm publish`.

## Running unit tests

Run `ng test access-settings` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @sunbird-cb/assessment
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.0.
Latest version: 0.0.25-ang-13-16

# Utils

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.0.

## Code scaffolding

Run `ng generate component component-name --project utils` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project utils`.
> Note: Don't forget to add `--project utils` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build utils` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build utils`, go to the dist folder `cd dist/utils` and run `npm publish`.

## Running unit tests

Run `ng test utils` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @sunbird-cb/collection
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.3.
Latest version: 0.0.6-ang-17-20

# Collection

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.3.

## Code scaffolding

Run `ng generate component component-name --project collection` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project collection`.
> Note: Don't forget to add `--project collection` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build collection` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build collection`, go to the dist folder `cd dist/collection` and run `npm publish`.

## Running unit tests

Run `ng test collection` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @sunbird-cb/consumption
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.
Latest version: 0.0.30-cbrelease-4.8.35

# Consumption

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

## Code scaffolding

Run `ng generate component component-name --project consumption` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project consumption`.
> Note: Don't forget to add `--project consumption` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build consumption` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build consumption`, go to the dist folder `cd dist/consumption` and run `npm publish`.

## Running unit tests

Run `ng test consumption` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).