← Back to Plugins
Tools

Cli Control

ZyanZealous By ZyanZealous 👁 42 views ▲ 0 votes

OpenClaw plugin + skill: control interactive CLI prompts (npm, git, brew…) from your agent

GitHub

Install

npm install
cd

README

# openclaw-cli-control

OpenClaw plugin + skill for controlling interactive CLI prompts.

Let your OpenClaw agent respond to confirmation dialogs, wizard questions, and any other interactive prompt from tools like `npm`, `git`, `brew`, `pip`, and more — without hardcoding `--yes` flags.

## How It Works

The plugin registers three tools into your agent:

| Tool | What it does |
|------|-------------|
| `cli_start` | Launches a command in a shell session, returns initial output + a `session_id` |
| `cli_send` | Sends input to a running session, returns the new output |
| `cli_close` | Terminates a session early |

The skill tells the agent **when** and **how** to use these tools.

## Installation

### Plugin (required)

```bash
cd ~/.openclaw/extensions
git clone https://github.com/YOUR_USERNAME/openclaw-cli-control.git cli-control
cd cli-control/plugin && npm install
cd ~/.openclaw/extensions && ln -s cli-control/plugin cli-control-plugin
```

Or copy the `plugin/` folder to `~/.openclaw/extensions/cli-control/`, run `npm install`, then:

```bash
openclaw plugins enable cli-control
```

### Skill (optional but recommended)

Install via [ClawHub](https://clawhub.ai):

```bash
npx clawhub install cli-control
```

Or manually copy `skill/cli-control/` into your agent's `skills/` directory.

## Usage Example

```
User: publish the npm package in ./my-pkg

Agent:
  cli_start("npm publish", cwd="./my-pkg")
  → "npm notice ... Proceed? (y/n)"

  cli_send(session_id, "y\n")
  → "+ [email protected]"  (ended)
```

## License

MIT
tools

Comments

Sign in to leave a comment

Loading comments...