"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
docs(providers): explain Copilot SDK setup
SYKuang8aea83556df4
diff --git a/README.md b/README.mdindex 1d69190de..6eac33b3f 100644--- a/README.md+++ b/README.md@@ -728,12 +728,38 @@ vibe-trading-mcp # start MCP server (stdio)- **Python 3.11+** for Path B- **Docker** for Path A- OpenAI Codex can also be used with ChatGPT OAuth: set `LANGCHAIN_PROVIDER=openai-codex`, then run `vibe-trading provider login openai-codex`. This does not use `OPENAI_API_KEY`.-- GitHub Copilot can be used with a Copilot subscription instead of an API key: set `LANGCHAIN_PROVIDER=copilot`. The official Copilot SDK resolves `COPILOT_GITHUB_TOKEN`, stored Copilot CLI credentials, or GitHub CLI credentials. Run `copilot` or `gh auth login` if needed.+- GitHub Copilot can be used with an active Copilot subscription instead of a separately billed LLM API key. See [GitHub Copilot SDK provider](#github-copilot-sdk-provider).> **Supported LLM providers:** OpenRouter, Requesty, OpenAI, Anthropic (native Messages API), DeepSeek, Gemini, Groq, DashScope/Qwen, Zhipu, Moonshot/Kimi, MiniMax, SiliconFlow (CN + Global), Xiaomi MIMO, iFlytek Spark, Z.ai, NVIDIA NIM, ModelScope, GitHub Copilot, Ollama (local). When no `*_BASE_URL` is set, each provider falls back to its canonical endpoint, so just a key is enough. See `.env.example` for config.> **Tip:** All markets work without any API keys thanks to automatic fallback. yfinance/Yahoo (HK/US/Canada), OKX (crypto), mootdx (A-shares, TCP-direct, no IP throttle), and AKShare (A-shares, US, HK, futures, forex) are all free. Tushare token is optional — mootdx is the preferred no-token A-share fallback, with AKShare as a broader backup.+### 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:++```bash+gh auth login # use GitHub CLI credentials+# or run `copilot` and sign in # stores credentials in the OS keychain+# or export COPILOT_GITHUB_TOKEN=gho_xxx+```++Then configure `agent/.env`:++```dotenv+LANGCHAIN_PROVIDER=copilot+LANGCHAIN_MODEL_NAME=claude-sonnet-5+# COPILOT_GITHUB_TOKEN=gho_xxx # optional; recommended for Docker/CI+```++Start Vibe-Trading normally. Its preflight reports whether the SDK can authenticate:++```bash+vibe-trading+```++Authentication priority is `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, `GITHUB_TOKEN`, stored Copilot CLI credentials, then `gh` credentials. Vibe-Trading does not copy or persist SDK credentials. Host keychain credentials are not automatically available inside Docker, so containers should receive `COPILOT_GITHUB_TOKEN`.+### Path A: Docker (zero setup)```bashdiff --git a/agent/.env.example b/agent/.env.exampleindex 61975336d..7c921ce75 100644--- a/agent/.env.example+++ b/agent/.env.example@@ -38,9 +38,9 @@ OPENROUTER_BASE_URL=https://openrouter.ai/api/v1# OPENAI_CODEX_BASE_URL=https://chatgpt.com/backend-api/codex/responses# --- GitHub Copilot SDK (no API key required) ----# Requires an active Copilot subscription. The official SDK resolves-# COPILOT_GITHUB_TOKEN, stored Copilot CLI credentials, or `gh` credentials.-# Run `copilot` or `gh auth login` if needed.+# Requires an active Copilot subscription. Copilot CLI is optional.+# Authenticate with COPILOT_GITHUB_TOKEN, `gh auth login`, or stored Copilot+# CLI credentials. Docker/CI should use COPILOT_GITHUB_TOKEN.# LANGCHAIN_PROVIDER=copilot# LANGCHAIN_MODEL_NAME=claude-sonnet-5# COPILOT_GITHUB_TOKEN=gho_xxx