项目介绍
Agent 开发框架 · 2026-11-09 更新 · 本站尚未实测
Upsonic 是面向 Python 开发者的 Agent 构建框架,README 将其定位为“Build Autonomous AI Agents in Python”,并说明它既可用于构建类似 OpenClaw、Claude Cowork 的自主式 Agent,也可用于构建更传统的 Agent 系统。仓库以 Python 为主要语言,通过 PyPI 包 upsonic 分发,文档站点为 docs.upsonic.ai。
需要区分的是:Upsonic 本身是框架,并非一个可直接导入使用的成品 Agent 或工作流文件;实际可运行的 Agent 需要开发者按示例编写代码创建。README 同时提到社区维护的 Prebuilt Autonomous Agents 集合,每个预构建 Agent 打包了技能、系统提示与首条消息,但其具体清单与质量需以官方文档为准。
核心能力
点击能力名称查看输入、输出和原文依据。
- 自主式 Agent:README 示例通过
AutonomousAgent结合Task执行任务;示例中文件与 shell 操作被限制在workspace指定的目录内,README 称会阻断路径穿越与危险命令。 - 传统 Agent:通过
Agent与Task组合执行描述性任务,示例包括市场趋势分析。 - 自定义工具:使用
upsonic.tools中的tool装饰器定义函数工具并挂载到 Task。 - MCP 工具接入:README 指向 MCP Tools 文档,说明可将 Agent 连接到外部数据源与服务;具体配置须查阅官方文档,本次未采集到 MCP 配置文件。
- OCR 与文档处理:提供分层 OCR 接口,Layer 0 负责文档准备(PDF 转图片、预处理),Layer 1 运行 OCR 引擎;README 列出的引擎包括 EasyOCR、RapidOCR、Tesseract、PaddleOCR、DeepSeek OCR 以及经 Ollama 使用的 DeepSeek。
实际应用场景
适用场景
适合需要以 Python 代码编排 Agent 的开发者,例如构建带工具调用的任务型助手、在受控目录内执行文件与命令操作的自主式 Agent,以及需要统一 OCR 接口处理发票、PDF 等文档的流水线。若只想安装即用的聊天客户端或图形化工作流,并非本项目的直接形态。
安装与接入
README 给出的安装方式为:
uv pip install upsonic
# pip install upsonic
OCR 能力另行安装可选依赖:
uv pip install "upsonic[ocr]"
在 Cursor 等编码工具中,README 建议将 https://docs.upsonic.ai/llms-full.txt 添加为文档索引来源,并称同样适用于 VSCode、Windsurf 等工具。创建 Agent 需编写 Python 代码,示例模型标识为 anthropic/claude-sonnet-4-5;该写法是否依赖特定模型接入层、需要何种 API Key,资料未展开,待核验。README 还建议接入 E2B 等沙箱提供商以获得隔离的云端执行环境,其账号与费用需另行确认。
使用条件与限制
- 是否需要部署
- 需自行准备运行环境,具体要求见正文
- 是否需要注册
- 账号和认证要求见正文;未明确说明的项目仍待核验
- 是否需要 API Key
- 待核验
- 费用与额度
- 费用边界见正文,项目许可不代表模型或托管服务免费
- 所需权限
- 待核验
- 许可证与服务条款
- 待核验
权限费用与限制
Agent 的文件与 shell 操作在示例中被限制在 workspace 内,但 README 未说明该限制在全部运行模式下是否默认强制,安全边界待核验。使用云端模型、E2B 沙箱、Ollama 或其他第三方推理服务产生的账号、API Key 与费用,均由对应服务方决定,本仓库资料未给出价格。框架开源不等于模型或云服务免费。OCR 各引擎的本地依赖、语言包与硬件要求资料未细述,待核验。
国内使用情况
网友核验 用户经验分享
与站长实测独立,不代表官方认证或本站已实测。
最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。
分项统计、有效期与样本量
| 核验项目 | 有效人数 | 成功 / 部分 / 失败 / 无法判断 | 成功率 | 最近核验 / 有效期 |
|---|---|---|---|---|
| 官方网站访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| GitHub 仓库访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 安装与运行 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 官方服务国内连接 / MCP 连接 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 国内网络情况 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 国内模型兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 自定义 API | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外服务依赖 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外账号要求 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 中文界面 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 客户端兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 账号及费用信息 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。
最近有效核验
暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。
查看全部有效核验 →国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。
- 官方网站访问
- 尚未实测 待核验
- GitHub 仓库访问
- 尚未实测 待核验
- 官方服务国内连接
- 尚未实测 待核验
- 国内网络情况
- 尚未实测 待核验
- 国内模型兼容性
- 尚未实测 待核验
- 自定义 API
- 尚未实测 待核验
- 海外服务依赖
- 尚未实测 待核验
- 海外账号要求
- 尚未实测 待核验
- 中文界面
- 尚未实测 待核验
- 国内最后核验时间
- 尚未实测
许可与国内使用
仓库附带的 LICENCE 文件为 MIT License,版权方为 Upsonic Teknoloji A.Ş.,可自由使用、修改、分发,需保留版权与许可声明。许可证覆盖的是仓库代码;第三方模型、托管服务、沙箱提供商与 OCR 引擎各自适用其自身条款。README 未说明在国内网络环境下调用模型或服务的可用性,也未说明是否提供境内镜像或合规备案,需待核验。
项目资料与来源
字段依据与待核验事项
access:来源确认 · uv pip install upsonic
project_type:来源确认 · Upsonic is a Python framework for building autonomous agents like OpenClaw and Claude Cowork, as well as more traditional agent systems.
原始 README(折叠技术参考)
<div align="center">
<img width="947" alt="Upsonic_README" src="https://github.com/user-attachments/assets/acb3f413-e4fe-44a6-9aff-40d4e9031188" />
# Upsonic
**Build Autonomous AI Agents in Python**
[](https://badge.fury.io/py/upsonic)
[](LICENCE)
[](https://pypi.org/project/upsonic/)
[](https://github.com/Upsonic/Upsonic)
[](https://github.com/Upsonic/Upsonic/issues)
[](https://docs.upsonic.ai)
[](https://discord.gg/pmYDMSQHqY)
[Documentation](https://docs.upsonic.ai) • [Quickstart](https://docs.upsonic.ai/get-started/quickstart) • [Examples](https://docs.upsonic.ai/examples) • [Discord](https://discord.gg/pmYDMSQHqY)
</div>
---
## Overview
Upsonic is a Python framework for building autonomous agents like OpenClaw and Claude Cowork, as well as more traditional agent systems.
## Quick Start
### Installation
```bash
uv pip install upsonic
# pip install upsonic
```
### IDE Integration
Add Upsonic docs as a source in your coding tools:
**Cursor:** Settings → Indexing & Docs → Add `https://docs.upsonic.ai/llms-full.txt`
Also works with VSCode, Windsurf, and similar tools.
---
## Create Autonomous Agent
### Build Your Own
```python
from upsonic import AutonomousAgent, Task
agent = AutonomousAgent(
model="anthropic/claude-sonnet-4-5",
workspace="/path/to/logs"
)
task = Task("Analyze server logs and detect anomaly patterns")
agent.print_do(task)
```
All file and shell operations are restricted to `workspace`. Path traversal and dangerous commands are blocked.
### Use Our Prebuilt Ones
Prebuilt autonomous agents are ready-to-run agents built by the Upsonic community, each packaging a skill, system prompt, and first message so you can go from install to running in seconds. The collection is [open to contributions](https://github.com/Upsonic/Upsonic/tree/master/src/upsonic/prebuilt), bring your agent and open a PR.
Learn more: [Prebuilt Autonomous Agents](https://docs.upsonic.ai/concepts/prebuilt-autonomous-agents/overview)
> **Next steps:** Connect a [Sandbox Provider (E2B)](https://docs.upsonic.ai/concepts/autonomous-agent/overview) for isolated cloud execution environments.
---
## Create Traditional Agent
```python
from upsonic import Agent, Task
agent = Agent(model="anthropic/claude-sonnet-4-5", name="Stock Analyst Agent")
task = Task(description="Analyze the current market trends")
agent.print_do(task)
```
### Add Custom Tools
```python
from upsonic import Agent, Task
from upsonic.tools import tool
@tool
def sum_tool(a: float, b: float) -> float:
"""
Add two numbers together.
Args:
a: First number
b: Second number
Returns:
The sum of a and b
"""
return a + b
task = Task(
description="Calculate 15 + 27",
tools=[sum_tool]
)
agent = Agent(model="anthropic/claude-sonnet-4-5", name="Calculator Agent")
result = agent.print_do(task)
```
> **Next steps:** Integrate [MCP Tools](https://docs.upsonic.ai/concepts/tools/mcp-tools/overview) to connect your agents to thousands of external data sources and services.
---
## OCR and Document Processing
Upsonic provides a unified OCR interface with a layered pipeline: Layer 0 handles document preparation (PDF to image conversion, preprocessing), Layer 1 runs the OCR engine.
```bash
uv pip install "upsonic[ocr]"
```
```python
from upsonic.ocr import OCR
from upsonic.ocr.layer_1.engines import EasyOCREngine
engine = EasyOCREngine(languages=["en"])
ocr = OCR(layer_1_ocr_engine=engine)
text = ocr.get_text("invoice.pdf")
print(text)
```
Supported engines: EasyOCR, RapidOCR, Tesseract, PaddleOCR, DeepSeek OCR, DeepSeek via Ollama.
Learn more: [OCR Documentation](https://docs.upsonic.ai/concepts/ocr/overview)
---
## Check Our Videos
<table>
<tr>
<td align="center">
<a href="https://www.youtube.com/watch?v=GOYko0KfBtg">
<img src="https://img.youtube.com/vi/GOYko0KfBtg/maxresdefault.jpg" width="400" alt="Upsonic Demo Video 1"/>
</a>
</td>
<td align="center">
<a href="https://www.youtube.com/watch?v=ulUEFIolesQ">
<img src="https://img.youtube.com/vi/ulUEFIolesQ/maxresdefault.jpg" width="400" alt="Upsonic Demo Video 2"/>
</a>
</td>
</tr>
</table>
---
## Documentation and Resources
- **[Documentation](https://docs.upsonic.ai)** - Complete guides and API reference
- **[Quickstart Guide](https://docs.upsonic.ai/get-started/quickstart)** - Get started in 5 minutes
- **[Examples](https://docs.upsonic.ai/examples)** - Real-world examples and use cases
- **[API Reference](https://docs.upsonic.ai/reference)** - Detailed API documentation
## Community and Support
> **💬 [Join our Discord community!](https://discord.gg/pmYDMSQHqY)** — Ask questions, share what you're building, get help from the team, and connect with other developers using Upsonic.
- **[Discord](https://discord.gg/pmYDMSQHqY)** - Chat with the community and get real-time support
- **[Issue Tracker](https://github.com/Upsonic/Upsonic/issues)** - Report bugs and request features
- **[Changelog](https://docs.upsonic.ai/changelog)** - See what's new in each release
## License
Upsonic is released under the MIT License. See [LICENCE](LICENCE) for details.
## Contributing
We welcome contributions from the community! Please read our [Contributing Guide](CONTRIBUTING.md) and code of conduct before submitting pull requests.历史前置条件说明(补充参考)
Python 环境与 pip/uv;如需调用模型须配置相应模型服务的 API Key(具体接入方式待核验);OCR 需安装 upsonic[ocr] 及各引擎依赖(待核验);可选接入 E2B 等沙箱服务与 MCP 工具,账号与费用待核验;境外服务网络可访问性待核验。
项目来源与清单版权许可
https://github.com/Upsonic/Upsonic
整理来源:https://github.com/slavakurilyak/awesome-ai-agents
清单版权与许可:
MIT License
Copyright (c) 2024 Slava Kurilyak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.