Skip to content

"Vibe-Trading: Your Personal Trading Agent"

fix(copilot): ship the SDK as an optional extra, not a hard dependency

Haozhe Wu973baa290506
diff --git a/README.md b/README.md
index 3836116ef..9d3a0db4d 100644
--- a/README.md
+++ b/README.md
@@ -736,7 +736,7 @@ vibe-trading-mcp # start MCP server (stdio)
### GitHub Copilot SDK provider
-The normal Vibe-Trading install includes the official GitHub Copilot SDK; installing the Copilot CLI is optional. Authenticate with any one of these supported methods:
+The official GitHub Copilot SDK ships as an optional extra, so install it alongside Vibe-Trading with `pip install "vibe-trading-ai[copilot]"`; installing the Copilot CLI is optional. Authenticate with any one of these supported methods:
```bash
gh auth login # use GitHub CLI credentials
diff --git a/agent/requirements.txt b/agent/requirements.txt
index 2426395ef..4a3c61b20 100644
--- a/agent/requirements.txt
+++ b/agent/requirements.txt
@@ -13,7 +13,6 @@ python-dotenv>=1.0.0
httpx>=0.28.0
h2>=4.4.1
oauth-cli-kit>=0.1.3
-github-copilot-sdk>=1.0.8,<2
# Data & Computation
pandas>=2.0.0,<3.0.0
diff --git a/agent/src/providers/copilot_auth.py b/agent/src/providers/copilot_auth.py
index 414ab364f..efb66809f 100644
--- a/agent/src/providers/copilot_auth.py
+++ b/agent/src/providers/copilot_auth.py
@@ -78,7 +78,10 @@ def get_copilot_auth_status() -> tuple[bool, str]:
try:
from copilot import CopilotClient
except ImportError:
- return False, "github-copilot-sdk is not installed"
+ return False, (
+ "github-copilot-sdk is not installed - "
+ 'pip install "vibe-trading-ai[copilot]"'
+ )
async with CopilotClient(**_client_options()) as client:
status = await client.get_auth_status()
@@ -164,7 +167,8 @@ def _convert_tools(tools: list[dict[str, Any]]) -> list[Any]:
from copilot.tools import Tool
except ImportError as exc:
raise RuntimeError(
- "GitHub Copilot requires github-copilot-sdk. Install project dependencies."
+ "GitHub Copilot provider requires github-copilot-sdk. Install the optional "
+ 'extra: pip install "vibe-trading-ai[copilot]" (or pip install github-copilot-sdk).'
) from exc
converted = []
@@ -207,7 +211,8 @@ async def _run_copilot(
)
except ImportError as exc:
raise RuntimeError(
- "GitHub Copilot requires github-copilot-sdk. Install project dependencies."
+ "GitHub Copilot provider requires github-copilot-sdk. Install the optional "
+ 'extra: pip install "vibe-trading-ai[copilot]" (or pip install github-copilot-sdk).'
) from exc
system_message, prompt = _convert_messages(messages)
diff --git a/pyproject.toml b/pyproject.toml
index 844a1feb0..80a4fa66a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,7 +34,6 @@ dependencies = [
"h2>=4.4.1",
"defusedxml>=0.7.1",
"oauth-cli-kit>=0.1.3",
- "github-copilot-sdk>=1.0.8,<2",
"pandas>=2.0.0,<3.0.0",
"openpyxl>=3.1.0",
"python-docx>=1.1.0",
@@ -119,6 +118,13 @@ mt5 = [
deepseek = [
"langchain-deepseek>=1.0.0,<2",
]
+copilot = [
+ # Official GitHub Copilot SDK (provider="copilot"). Optional: every import
+ # of it in copilot_auth.py is already lazy and raises an actionable install
+ # hint when absent, so the base install stays lean — and the Windows desktop
+ # build's embedded runtime does not have to carry it.
+ "github-copilot-sdk>=1.0.8,<2",
+]
anthropic = [
# Native Anthropic Messages API adapter (provider="anthropic"). Optional:
# _build_anthropic lazy-imports it and raises an actionable install hint
diff --git a/requirements-lock.txt b/requirements-lock.txt
index 77f5019eb..ab9340631 100644
--- a/requirements-lock.txt
+++ b/requirements-lock.txt
@@ -1144,9 +1144,6 @@ frozenlist==1.8.0 \
# aiohttp
# aiosignal
# ccxt
-github-copilot-sdk==1.0.8 \
- --hash=sha256:7c3d868b73daa3a154ae6c1c5a2bd9301c47349c6b080f1ed77ba9027da3e0fa
- # via -r agent/requirements.txt
griffelib==2.1.0 \
--hash=sha256:762a186d2c6fd6794d4ea20d428d597ffb857cb56b66421651cbba15bdd5e813 \
--hash=sha256:cc7b3d2d2865ad0b909fcc38086e3f554b5ea7acbaa7bbb7ecaa3f5dfb7d9f00
@@ -1234,7 +1231,6 @@ httpx[brotli,http2,socks]==0.28.1 \
# -r agent/requirements.txt
# ddgs
# fastmcp-slim
- # github-copilot-sdk
# langgraph-sdk
# langsmith
# mcp
@@ -2724,7 +2720,6 @@ pydantic[email]==2.13.4 \
# -r agent/requirements.txt
# fastapi
# fastmcp-slim
- # github-copilot-sdk
# langchain
# langchain-core
# langgraph
@@ -2915,7 +2910,6 @@ python-dateutil==2.9.0.post0 \
--hash=sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \
--hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427
# via
- # github-copilot-sdk
# matplotlib
# pandas
python-docx==1.2.0 \