自动运行 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
自动运行 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
自动运行 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install autorun
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install autorun
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/Gao-Ruilin/AutoRun
cd AutoRun
pip install -e .
# 验证安装
python -c "import autorun; print('安装成功')"
# 命令行使用
autorun --help
# 基本用法
autorun input_file -o output_file
# Python 代码中调用
import autorun
# 示例
result = autorun.process("input")
print(result)
# autorun 配置文件示例(config.yml) app: name: "autorun" debug: false log_level: "INFO" # 运行时指定配置文件 autorun --config config.yml # 或通过环境变量配置 export AUTORUN_API_KEY="your-key" export AUTORUN_OUTPUT_DIR="./output"
<p align="right"> <a href="#english">English</a> | <a href="#chinese">中文</a> </p>
---
<a id="english"></a>
HF_ENDPOINT=https://hf-mirror.com).HF_ENDPOINT=https://hf-mirror.com)cd AutoRUN_v1
pip install -r requirements.txt
python cli.py
torch, transformers, torchvision, huggingface_hub, safetensors, tokenizers, Pillowcd AutoRUN_v1
pip install -r requirements.txt
python cli.py
torch, transformers, torchvision, huggingface_hub, safetensors, tokenizers, PillowRequires Python 3.8+.
Windows:
install.bat
macOS / Linux:
./install.sh
This creates a virtual environment, installs dependencies, and sets up the autorun command.
cd AutoRUN_v1
pip install -e .
After installation, the autorun command is available system-wide:
autorun --version
autorun Follow the interactive prompts on first run, or run autorun --setup to reconfigure anytime.
需要 Python 3.8+。
Windows:
install.bat
macOS / Linux:
./install.sh
自动创建虚拟环境、安装依赖,并配置 autorun 命令。
cd AutoRUN_v1
pip install -e .
安装后,autorun 命令在终端中全局可用:
autorun --version
autorun
首次运行会自动引导你配置 API:
╔══════════════════════════════════════════╗
║ AutoRUN v1.0 — 首次设置 ║
╚══════════════════════════════════════════╝
选择 API 类型 [1=OpenAI, 2=Anthropic] [默认 openai]: 1
API URL [默认 https://api.openai.com]:
API Key: sk-xxxxxxxxxxxx
模型名称 [默认 gpt-4o]:
✓ 配置已保存!
配置保存在 ~/.autorun/config.json。
autorun
On first run, AutoRUN will guide you through API configuration interactively:
╔══════════════════════════════════════════╗
║ AutoRUN v1.0 — 首次设置 ║
╚══════════════════════════════════════════╝
选择 API 类型 [1=OpenAI, 2=Anthropic] [默认 openai]: 1
API URL [默认 https://api.openai.com]:
API Key: sk-xxxxxxxxxxxx
模型名称 [默认 gpt-4o]:
✓ 配置已保存!
Config is stored at ~/.autorun/config.json.
The OCR tool is automatically available in the REPL and Web UI. The AI will call it when you ask it to read text from an image:
> 帮我把这张截图里的文字提取出来
Or use with explicit mode:
> 用 layout 模式 OCR 这篇论文的截图
autorun
首次运行自动触发,或通过 autorun --setup 随时重新配置。
autorun
进入 REPL 后输入:
/api type openai # API 类型: openai 或 anthropic
/api url https://api.openai.com # API 基础 URL
/api key sk-xxxxxxxxxxxx # 你的 API 密钥
/model gpt-4o # 模型名称
配置保存在 ~/.autorun/config.json,下次启动自动加载。
OCR 工具在 REPL 和 Web UI 中自动可用。当你要求 AI 从图片中提取文字时,AI 会自动调用:
> 帮我把这张截图里的文字提取出来
或显式指定模式:
> 用 layout 模式 OCR 这篇论文的截图
Three methods, listed by priority:
Windows (PowerShell):
$env:AUTORUN_API_TYPE = "openai"
$env:AUTORUN_API_URL = "https://api.openai.com"
$env:AUTORUN_API_KEY = "sk-xxxxxxxxxxxx"
$env:AUTORUN_MODEL = "gpt-4o"
autorun
Windows (CMD):
set AUTORUN_API_TYPE=openai
set AUTORUN_API_URL=https://api.openai.com
set AUTORUN_API_KEY=sk-xxxxxxxxxxxx
set AUTORUN_MODEL=gpt-4o
autorun
macOS / Linux:
export AUTORUN_API_TYPE=openai
export AUTORUN_API_URL=https://api.openai.com
export AUTORUN_API_KEY=sk-xxxxxxxxxxxx
export AUTORUN_MODEL=gpt-4o
autorun
autorun
Inside the REPL:
/api type openai # API type: openai or anthropic
/api url https://api.openai.com # API base URL
/api key sk-xxxxxxxxxxxx # Your API key
/model gpt-4o # Model name
autorun --setup
| Flag | Description |
|---|---|
--version, -V, -v | Show version |
--setup | Re-run API setup wizard |
--web | Start Web UI server |
--print, -p | Pipe/print mode (non-interactive) |
--port <N> | Web UI port (default: 8765) |
--host <HOST> | Web UI host (default: 127.0.0.1) |
-m <model>, --model <model> | Override default model |
-d <path>, --dir <path> | Working directory |
--context <N> | Context window size (tokens) |
~/.autorun/
├── config.json # API key, URL, type, model, context window
├── history # Input history
├── memory/ # Memory system
└── skills/ # User skills
.env files)| Environment Variable | Description | Default |
|---|---|---|
HF_ENDPOINT | HuggingFace mirror (set to https://hf-mirror.com for China) | https://huggingface.co |
AUTORUN_OCR_LOCAL_DIR | Local model directory (skip download) | Auto-download |
AUTORUN_OCR_DEVICE | Inference device (cuda/cpu) | Auto-detect |
AUTORUN_OCR_DTYPE | Model dtype (float32/float16/bfloat16) | float32 |
三种配置方式,按优先级排序:
Windows (PowerShell):
$env:AUTORUN_API_TYPE = "openai"
$env:AUTORUN_API_URL = "https://api.openai.com"
$env:AUTORUN_API_KEY = "sk-xxxxxxxxxxxx"
$env:AUTORUN_MODEL = "gpt-4o"
autorun
Windows (CMD):
set AUTORUN_API_TYPE=openai
set AUTORUN_API_URL=https://api.openai.com
set AUTORUN_API_KEY=sk-xxxxxxxxxxxx
set AUTORUN_MODEL=gpt-4o
autorun
macOS / Linux:
export AUTORUN_API_TYPE=openai
export AUTORUN_API_URL=https://api.openai.com
export AUTORUN_API_KEY=sk-xxxxxxxxxxxx
export AUTORUN_MODEL=gpt-4o
autorun
autorun --setup
| 选项 | 说明 |
|---|---|
--version, -V, -v | 显示版本号 |
--setup | 重新运行 API 设置向导 |
--web | 启动 Web UI 服务器 |
--print, -p | 管道/打印模式(非交互) |
--port <N> | Web UI 端口(默认: 8765) |
--host <HOST> | Web UI 地址(默认: 127.0.0.1) |
-m <model>, --model <model> | 覆盖默认模型 |
-d <path>, --dir <path> | 工作目录 |
--context <N> | 上下文窗口大小(tokens) |
~/.autorun/
├── config.json # API key, URL, type, model, context window
├── history # 输入历史
├── memory/ # 记忆系统
└── skills/ # 用户 skill
.env 文件方式相同)| 环境变量 | 说明 | 默认值 |
|---|---|---|
HF_ENDPOINT | HuggingFace 镜像(国内设为 https://hf-mirror.com) | https://huggingface.co |
AUTORUN_OCR_LOCAL_DIR | 本地模型目录(跳过下载) | 自动下载 |
AUTORUN_OCR_DEVICE | 推理设备 (cuda/cpu) | 自动检测 |
AUTORUN_OCR_DTYPE | 模型数据类型 (float32/float16/bfloat16) | float32 |
autorun
/v1/chat/completions compatible services (OpenAI, Azure OpenAI, DeepSeek, Groq, etc.)/v1/messages compatible services (Claude series)autorun
/v1/chat/completions 的服务(OpenAI, Azure OpenAI, DeepSeek, 硅基流动, Groq 等)/v1/messages 的服务(Claude 系列)高质量的开源AI工作流项目,具有较强的自动化能力
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,自动运行 在Agent工作流赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | AutoRun |
| 原始描述 | 开源AI工作流:An AI agent for coding and others。⭐35 · Python |
| Topics | aiai-agentcode-generationpython |
| GitHub | https://github.com/Gao-Ruilin/AutoRun |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-27 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端