Copilot CLI for Openclaw

A powerful CLI bridge to GitHub Copilot enabling automated code generation, file editing, and shell task execution using cutting-edge LLMs.

binotaliu
v1.0.0
Mar 4, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-copilot-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-copilot-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Copilot CLI?

Copilot CLI allows developers to harness the power of GitHub Copilot directly from the terminal or within automated workflows. It provides a seamless interface for executing code generation, performing complex file edits, and managing shell tasks using advanced models like Claude Sonnet and high-tier GPT versions. As part of the Openclaw Skills ecosystem, it enables agents to programmatically interact with codebase resources and system environments through simple shell commands or interactive PTY sessions.

Copilot CLI Use Cases

  • Automating repetitive shell tasks and generating system summaries using natural language.
  • Programmatic code generation and file modification within CI/CD or agentic workflows.
  • Executing complex coding tasks using specific high-performance LLM models like Claude 3.5 Sonnet.
  • Rapid prototyping of scripts and server configurations via terminal prompts.

How Copilot CLI Works

  1. The skill interfaces with the GitHub Copilot CLI via the system execution layer.
  2. It authenticates through a GitHub account to access the Copilot subscription and advanced model endpoints.
  3. Users or agents provide natural language prompts which the CLI processes using specified models.
  4. The command execution applies changes, generates files, or returns text output based on flags like --allow-all or --silent.
  5. Logs and session data are stored locally for auditability and session sharing.

Copilot CLI Setup

Install the CLI globally via npm or Homebrew:

npm install -g @github/copilot
# Or on macOS
brew install copilot-cli

Verify the installation:

copilot --help

Authenticate by running the interactive mode and typing /login to link your GitHub account:

copilot
# Inside the interactive shell:
/login

Copilot CLI Data Schema & Taxonomy

The skill interacts with local system files and generates specific metadata for session tracking.

Component Description
Logs Debugging information stored at ~/.copilot/logs/.
Sessions Full interaction history can be exported as session.md using the --share flag.
Custom Instructions Automatically loads context from AGENTS.md unless the --no-custom-instructions flag is used.
Model Configuration Allows targeting specific LLMs such as claude-sonnet-4.6 or gpt-5.3-codex via the --model flag.

Copilot CLI Advanced Features

  • Support for high-tier models including Claude and GPT-5 for complex reasoning within Openclaw Skills.
  • One-shot execution mode using the --silent and --allow-all flags for non-interactive automation.
  • Integration with custom instructions from local agent configuration files to maintain project context.
  • Session sharing capabilities for exporting full interaction histories to Markdown for documentation.
  • Interactive PTY support allowing for manual intervention or step-by-step confirmation during complex tasks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*