# Integrations: Coding Agents, Multi-Agent Research & Local Models **AlphaSift** is intentionally built as the **upstream full-market discovery and falsification layer** in an open-source quantitative stack: 1. **Discover (`AlphaSift`)**: Scan `5,000+` symbols across 7 markets (`cn/us/hk/jp/kr/tw/in`) in seconds with deterministic YAML rules (`0` API keys required), 8-bucket sector caps, and optional code-enforced red-flag AI caps (`llm_score <= 35`). 2. **Research Deeply (Downstream Agents)**: Hand off only the clean Top 3–5 tickers (structured JSON or watchlist) to single-stock debate/analysis frameworks (`TradingAgents`, `OpenAlice`, or `daily_stock_analysis`). 3. **Verify Honestly**: Track `next_open` `T+5 / T+10 / T+20` outcomes on the public `track-record` ledger instead of cherry-picking backtests. --- ## 1. Connect Coding Agents (`Antigravity`, `Claude Code`, `Cursor`, `Codex`, `OpenClaw`) AlphaSift ships both a portable [SKILL.md](../SKILL.md) and a **zero-dependency STDIO MCP Server** (`14` read-only tools + `4` resources). ### Zero-Install JSON Config (`uvx`) Works with **Claude Code**, **Antigravity**, **Cursor**, **Claude Desktop**, and **OpenClaw**: ```json { "mcpServers": { "alphasift": { "command": "uvx", "args": ["alphasift", "mcp"] } } } ``` ### Codex CLI ```bash codex mcp add alphasift -- uvx alphasift mcp ``` *(If already installed via `pip install alphasift`, replace `uvx alphasift mcp` with `alphasift mcp`. See [ecosystem.md](ecosystem.md) for full tool schemas.)* --- ## 2. Pair AlphaSift with Multi-Agent Trading Frameworks (`TradingAgents`, `OpenAlice`, etc.) Single-stock multi-agent frameworks burn significant LLM tokens if pointed blindly at dozens of random tickers. Use AlphaSift as the **zero-key pre-filter** first: ```bash # 1. Screen clean, sector-diversified US momentum+quality top-5 (0 LLM tokens used) alphasift screen us_momentum_quality --market us --no-llm --max-output 5 --output top5_us.json # Or CN value candidates via JSON output: alphasift screen dual_low --market cn --no-llm --max-output 5 --output top5_cn.json ``` In your agent workflow (or Python script), extract clean candidate codes for deep fundamental / bull-bear debate: ```python from alphasift import screen res = screen("global_value", market="us", max_output=5, use_llm=False) clean_tickers = [ pick.code for pick in res.picks if "red_flag_capped" not in pick.risk_flags ] print("Shortlist for deep agent debate:", clean_tickers) ``` --- ## 3. 1-Minute LLM Provider Templates (`.env`) AlphaSift calls any OpenAI-compatible `/chat/completions` endpoint using standard `urllib` (zero heavyweight SDK dependencies). All L2 AI features are **strictly optional** — deterministic screening, pattern replay, and `alphasift ui` work with zero keys. ### DeepSeek ```env OPENAI_API_KEY=sk-your-deepseek-key LLM_BASE_URL=https://api.deepseek.com/v1 LLM_MODEL=deepseek/deepseek-chat ``` ### SiliconFlow (硅基流动) ```env OPENAI_API_KEY=sk-your-siliconflow-key LLM_BASE_URL=https://api.siliconflow.cn/v1 LLM_MODEL=openai/Qwen/Qwen2.5-72B-Instruct ``` ### Volcengine Ark (火山方舟 / Doubao / DeepSeek) ```env OPENAI_API_KEY=your-ark-api-key LLM_BASE_URL=https://ark.cn-beijing.volces.com/api/v3 LLM_MODEL=openai/your-endpoint-id ``` ### Alibaba Cloud DashScope (阿里云百炼 / Qwen) ```env OPENAI_API_KEY=sk-your-dashscope-key LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 LLM_MODEL=openai/qwen-plus ``` ### Local Ollama (`100%` Offline Privacy) ```env OPENAI_API_KEY=ollama LLM_BASE_URL=http://127.0.0.1:11434/v1 LLM_MODEL=openai/qwen2.5:14b ``` Verify configuration anytime: ```bash alphasift doctor radar alphasift ui # Launch local interactive workbench (/ui) ```