AI Skill Hub 强烈推荐:ai-investment-agent Agent工作流 是一款优质的AI工具。AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
基于LangGraph和Gemini的开源AI工作流,专门用于非美股市场的股票评估。融合智能体工作流和财务分析能力,支持GARP投资策略,适合量化投资者、财务分析师和AI爱好者探索金融AI应用。
ai-investment-agent Agent工作流 是一款基于 Python 开发的开源工具,专注于 智能体、股票分析、财务评估 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
基于LangGraph和Gemini的开源AI工作流,专门用于非美股市场的股票评估。融合智能体工作流和财务分析能力,支持GARP投资策略,适合量化投资者、财务分析师和AI爱好者探索金融AI应用。
ai-investment-agent Agent工作流 是一款基于 Python 开发的开源工具,专注于 智能体、股票分析、财务评估 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install ai-investment-agent
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install ai-investment-agent
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/rgoerwit/ai-investment-agent
cd ai-investment-agent
pip install -e .
# 验证安装
python -c "import ai_investment_agent; print('安装成功')"
# 命令行使用
ai-investment-agent --help
# 基本用法
ai-investment-agent input_file -o output_file
# Python 代码中调用
import ai_investment_agent
# 示例
result = ai_investment_agent.process("input")
print(result)
# ai-investment-agent 配置文件示例(config.yml) app: name: "ai-investment-agent" debug: false log_level: "INFO" # 运行时指定配置文件 ai-investment-agent --config config.yml # 或通过环境变量配置 export AI_INVESTMENT_AGENT_API_KEY="your-key" export AI_INVESTMENT_AGENT_OUTPUT_DIR="./output"
This repository is a multi-agent equity research system that targets under-followed small- and mid-cap value stocks outside the US that present few or no regulatory and tax risks to US investors, and that appear poised for growth. It can analyze single tickers, run broader screening pipelines, and optionally reconcile saved results against an Interactive Brokers portfolio through either a CLI workflow or a local Flask dashboard.
You need Python 3.12+, Poetry, and working API keys. The default binding uses Google for base analysis, OpenAI for adversarial review, a separately bindable regional provider, and Anthropic for prose; Finnhub and Tavily are also required by the normal CLI path.
I've gone to a lot of trouble to make this work with inexpensive/free services, at the cost of some code complexity. But practically speaking, search, LLM, and data-service keys are needed to get truly useful results. See the .env.example file.
Environment note:
poetry run ... is the safest default for this repo.I am assuming here that you have worked with Git repositories, feel comfortable at a command prompt, and understand basic things like what an exchange and stock ticker are.
git clone https://github.com/rgoerwit/ai-investment-agent.git
cd ai-investment-agent
poetry install
cp .env.example .env
Edit .env next. FINNHUB_API_KEY and TAVILY_API_KEY are always required. GOOGLE_API_KEY is required for the shipped default bindings, and startup derives that from the binding plan rather than assuming it — a configuration with no seat bound to Google does not demand one. Add a provider key for each group you bind (OPENAI_API_KEY, ANTHROPIC_API_KEY, MOONSHOT_API_KEY, DEEPSEEK_API_KEY, ZAI_API_KEY), plus EODHD or FMP for better international data. The exact knobs live in .env.example.
These features matter, but they are supporting infrastructure. You do not need them for the first successful run.
For the broader local threat model, including secrets, broker context, untrusted content, MCP, and OWASP LLM Top 10 coverage, read SECURITY.md.
These are real features, but they are not required to get started:
LANGSMITH_HIDE_INPUTS and LANGSMITH_HIDE_OUTPUTS.src/tooling/ if you want to inspect or audit untrusted external content before it reaches LLM context.terraform/ contains reference infrastructure, not a turnkey hosted product.poetry run python -m src.main --ticker ...scripts/run_pipeline.shscripts/portfolio_manager.pypython -m src.web.ibkr_dashboard.app, and start the worker only if you want queued refresh jobsThe screening pipeline is the shortest path from broad discovery to a shortlist of full reports.
```bash
poetry run python scripts/find_gems.py --output scratch/gems.txt
Poetry or import issues
poetry env remove --all
poetry install
If ./scripts/run_pipeline.sh or another script unexpectedly uses plain python, check whether you have an unrelated virtual environment active. The pipeline falls back to Poetry when the active venv is missing core repo dependencies, but the cleanest fix is one of:
deactivate
poetry install
poetry run python -m src.main --ticker 0005.HK
If poetry run ibkr-dashboard or poetry run ibkr-dashboard-worker warns that the entry point "isn't installed as a script", the commands were added to pyproject.toml after the virtualenv was created, or the project root was not reinstalled. poetry install fixes that. As a fallback, run:
poetry run python -m src.web.ibkr_dashboard.app
poetry run python -m src.web.ibkr_dashboard.worker
Python version mismatch
python --version and make sure Poetry is using the same interpreter.API errors or quota issues
.env first.GOOGLE_RPM_LIMIT, OPENAI_RPM_LIMIT, ANTHROPIC_RPM_LIMIT, DEEPSEEK_RPM_LIMIT, ZAI_RPM_LIMIT, MOONSHOT_RPM_LIMIT, XAI_RPM_LIMIT) match the account's real quota. Each provider gets an independent bucket, so raising one does not affect the others.LLM binding configuration errors at startup
Binding problems fail before any model is built, listing every problem at once rather than one per run. The message names the seat and the setting; the common ones:
| Message | Cause and fix |
|---|---|
new and legacy LLM keys are mixed: … | Both schemas are populated. Pick one — generate a candidate with scripts/llm_env_migrate.py and comment out the legacy keys it lists. |
provider 'X' is not application-qualified for binding group 'Y' | The provider's transport works, but this repo has no evidence for it in that role. See the qualification levels in [docs/LLM_PROVIDERS.md](docs/LLM_PROVIDERS.md). |
<seat>: model 'X' belongs to 'Y', not 'Z' | A model name from one vendor under another vendor's group — often a stale LLM_SEAT_MODEL_OVERRIDES pin left behind after flipping a provider, or a --quick-model/--deep-model flag naming a model outside LLM_BASE_PROVIDER. |
model 'X' has no reviewed capability profile | The model family is not in src/llm_runtime/profiles.py. Unknown models fail closed by design; add a reviewed profile rather than looking for a bypass flag. |
<seat>: missing credential for provider 'X' | The group is bound to a provider whose key is unset. A seat at auto degrades with a log line instead; only required fails startup. |
<seat>: endpoint host 'H' belongs to 'Y', not 'Z' | A *_API_BASE points at a different vendor than its group. Note OPENAI_API_BASE accepts only an OpenAI-owned host — compatible vendors use their own key (MOONSHOT_API_BASE, …). |
… independence waiver reason is required … | LLM_REQUIRE_*_INDEPENDENCE=false needs a non-empty LLM_*_INDEPENDENCE_WAIVER_REASON. Turning enforcement off is a recorded decision, not a silent toggle. |
<seat> binding must differ from base in vendor and model lineage | Base and review collapsed onto one vendor, defeating the cross-check. Rebind one, or waive it explicitly as above. |
To see what a configuration actually resolves to without running an analysis, read the binding telemetry from any saved artifact:
jq -r '.run_summary.llm_bindings.seats | to_entries[] | select(.value.enabled)
| "\(.key)\t\(.value.vendor)/\(.value.model)"' results/<TICKER>_<STAMP>_analysis.json
portfolio_manager.py or analysis index rebuild is unexpectedly slow on macOS
Spotlight indexing on .venv/ or results/ can turn a normal index rebuild into a very slow one.
touch .venv/.metadata_never_index results/.metadata_never_index
创新的财务AI应用,结合LangGraph工作流引擎和多步骤推理能力,为股票分析提供自动化解决方案。代码质量好,维护活跃,是学习Agentic AI的优质案例。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,ai-investment-agent Agent工作流 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | ai-investment-agent |
| 原始描述 | 开源AI工作流:Agentic AI ex-US equity evaluator (LangGraph+Gemini) 。⭐65 · Python |
| Topics | 智能体股票分析财务评估LangGraph工作流自动化 |
| GitHub | https://github.com/rgoerwit/ai-investment-agent |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。