AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Copilot Sdk

skill-hevangel-media-agent-skills-copilot-sdk · by hevangel

Use GitHub Copilot SDK to programmatically call Copilot from Python. Use when integrating AI capabilities via Copilot CLI into applications.

— No reviews yet
0 installs
30 views
0.0% view→install

Install

$ agentstack add skill-hevangel-media-agent-skills-copilot-sdk

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-hevangel-media-agent-skills-copilot-sdk)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Copilot Sdk? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

GitHub Copilot SDK for Python

The GitHub Copilot SDK is a multi-platform SDK for integrating GitHub Copilot Agent into apps and services. It exposes the same engine behind Copilot CLI, providing a production-tested agent runtime you can invoke programmatically.

> Note: This SDK is in technical preview and may change in breaking ways.

Reference

  • Code Snippets: scripts/
  • GitHub Repository: https://github.com/github/copilot-sdk
  • PyPI Package: https://pypi.org/project/github-copilot-sdk/

Prerequisites

  1. GitHub Copilot Subscription: Required
  2. Copilot CLI: Must be installed (gh extension install github/gh-copilot)
  3. Authentication: Must be logged into GitHub CLI (gh auth login)

Installation

uv pip install github-copilot-sdk

Architecture

Your Application
       |
  SDK Client (Python)
       | JSON-RPC
  Copilot CLI (server mode)

API Reference

CopilotClient Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | cli_path | str | "copilot" | Path to CLI executable | | cli_url | str | None | URL of existing CLI server | | cwd | str | None | Working directory for CLI process | | port | int | 0 | Server port (0 = random) | | use_stdio | bool | True | Use stdio transport | | auto_start | bool | True | Auto-start server | | auto_restart | bool | True | Auto-restart on crash |

CopilotClient Methods

| Method | Description | |--------|-------------| | await client.start() | Start the CLI server | | await client.stop() | Stop the CLI server | | await client.create_session(config) | Create a conversation session | | await client.resume_session(session_id) | Resume existing session | | await client.get_models() | Get available models |

SessionConfig

| Option | Type | Description | |--------|------|-------------| | model | str | Model to use ("gpt-5", "claude-sonnet-4.5", etc.) | | tools | list[Tool] | Custom tools exposed to the CLI | | streaming | bool | Enable streaming responses | | mcp_servers | dict | MCP server configurations |

Event Types

| Event Type | Description | |------------|-------------| | assistant.message | Final assistant message | | assistant.message_delta | Streaming message chunk | | session.idle | Session finished processing | | tool.call | Tool invocation | | error | Error event |

Available Free Models

  • gpt-5-mini

Basic Usage

import asyncio
from copilot import CopilotClient

async def main():
    client = CopilotClient()
    await client.start()
    session = await client.create_session({"model": "gpt-4.1"})
    response = await session.send_and_wait({"prompt": "What is Python?"})
    print(response.data.content)
    await session.destroy()
    await client.stop()

asyncio.run(main())

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.