๐ A production-ready agent platform for task execution, automation, browser workflows, IM delivery, and enterprise deployment.
๐ Detailed Documentation: https://wiki.sage.zavixai.com/
- ๐ค Planning to Delivery: Built-in planning, execution, self-check, memory recall, and tool suggestion agents for complex task completion.
- ๐ Multi-Entry Product Surface: Use Sage from desktop, web, CLI, and Chrome extension depending on the workflow.
- ๐ Automation & Recurring Tasks: Run scheduled jobs, questionnaire-driven collection flows, and long-running operational tasks with progress visibility.
- ๐ฌ Omnichannel IM Integration: Connect WeChat Personal (iLink), WeCom, Feishu, and DingTalk with message and file delivery support.
- ๐งฐ Unified Tooling System: Combine built-in tools, Skills, MCP servers, browser automation, search, and image generation in one execution stack.
- ๐ก๏ธ Sandboxed Execution: Local, passthrough, and remote sandbox options for safer agent runtime isolation.
- ๐ ๏ธ Visual Workbench: Inspect files, tool outputs, code, charts, Mermaid, Draw.io, audio, video, and remote previews in one workspace.
- ๐ข Enterprise-Ready Foundation: OAuth2, configurable auth and CORS, shared service architecture, CI coverage, and deployable multi-platform packaging.
git clone https://github.com/ZHangZHengEric/Sage.git
cd SageOption 1: One-Command Startup (Recommended for Development)
# 1. Optional: activate your environment first
# conda activate your-env
# 2. Set your LLM API Key
export SAGE_DEFAULT_LLM_API_KEY="your-api-key"
export SAGE_DEFAULT_LLM_API_BASE_URL="https://api.deepseek.com/v1"
export SAGE_DEFAULT_LLM_MODEL_NAME="deepseek-chat"
# 3. Run the startup script
./scripts/dev-up.shThe script will automatically:
- Check Python (>= 3.10) and Node.js (>= 18) versions
- Create configuration files (minimal mode: SQLite, no external dependencies)
- Install dependencies and start both backend and frontend services
- Create
logs/server.logautomatically - Honor
SAGE_PORTfrom.envfor backend startup and health checks
Optional overrides:
# Explicitly choose a Python executable
PYTHON_BIN=/path/to/python ./scripts/dev-up.sh
# Use uv instead of python -m pip / python -m ...
USE_UV=1 ./scripts/dev-up.shFirst time? The script will prompt you to choose between:
- Minimal mode: SQLite, no external dependencies (recommended for quick start)
- Full mode: MySQL + Elasticsearch + RustFS (for production-like environment)
After starting, open: http://localhost:5173
Option 2: Desktop Application (Recommended for Users)
Download the latest desktop package from GitHub Releases:
- macOS:
.dmg(Intel & Apple Silicon) - Windows:
.exe/.msi - Linux:
.deb(x86_64 / arm64)
macOS
- Download the
.dmgfor your CPU architecture and open it. - Drag
Sage.appinto theApplicationsfolder. - The current macOS build is not yet signed/notarized by Apple. If you see a warning that the developer cannot be verified or Apple cannot check the app for malicious software, open
Applications, right-clickSage.app, chooseOpen, and then clickOpenagain in the dialog. - If macOS still blocks the app, go to
System Settings -> Privacy & Security, find the Sage warning near the bottom, and clickOpen Anyway. - If macOS says the app is damaged or still refuses to launch, run the following command and try again:
xattr -dr com.apple.quarantine /Applications/Sage.appWindows
- Download the
.exeinstaller and run it. - Follow the setup wizard to finish installation.
- If Windows SmartScreen shows a warning, click
More info->Run anyway.
Linux
- Download the
.debpackage for your architecture from GitHub Releases. - On Debian/Ubuntu, you can install it directly by double-clicking it, or by running:
sudo apt install ./Sage-<version>-<arch>.debIf you prefer to build the desktop app from source, use the commands below.
# macOS/Linux
app/desktop/scripts/build.sh release
# Windows
./app/desktop/scripts/build_windows.ps1 releaseCommand Line Interface (CLI):
# Install editable package
pip install -e .
# Configure the minimum runtime variables
export SAGE_DEFAULT_LLM_API_KEY="your-api-key"
export SAGE_DEFAULT_LLM_API_BASE_URL="https://api.deepseek.com/v1"
export SAGE_DEFAULT_LLM_MODEL_NAME="deepseek-chat"
export SAGE_DB_TYPE="file"
# Diagnose local runtime config
sage doctor
# Create a shared local CLI/Desktop config in ~/.sage/.sage_env if needed
sage config init
# Run a quick task
sage run --stats "Say hello briefly."
# Start an interactive chat session
sage chatDetailed CLI usage is documented here:
- English: docs/en/CLI.md
- ไธญๆ: docs/zh/CLI.md
The CLI now defaults to the same local data root as desktop: ~/.sage/.
By default it reads ~/.sage/.sage_env first, and then lets a repository-local .env override it for development.
When --json is enabled, the CLI emits stream events and appends a final cli_stats event for structured post-run inspection.
Web Application (FastAPI + Vue3):
# Start backend
python -m app.server.main
# Start frontend (in another terminal)
cd app/server/web
npm install
npm run devgraph TD
User[User] --> Desktop[๐ป Desktop App]
User --> Web[๐ Web App]
User --> CLI[โจ๏ธ CLI]
User --> Ext[๐งฉ Chrome Extension]
User --> IM[๐ฌ IM Channels]
Desktop --> AppLayer[๐งญ App Service Layer]
Web --> AppLayer
CLI --> AppLayer
Ext --> AppLayer
IM --> AppLayer
subgraph App[Product Layer]
AppLayer --> Chat[๐ฌ Chat & Sessions]
AppLayer --> AgentsUI[๐ค Agent Management]
AppLayer --> Tasks[โฐ Tasks & Automations]
AppLayer --> Browser[๐ Browser Bridge]
AppLayer --> Workbench[๐ ๏ธ Visual Workbench]
end
subgraph Core[SAgents Core]
AppLayer --> Runtime[๐ง Session Runtime]
Runtime --> Flow[๐ AgentFlow]
Flow --> Agents["๐ค Agents<br/>Plan / Simple / Fibre / Self-Check"]
Agents --> Memory[๐ง Memory Recall]
Agents --> Skills[๐งฉ Skills]
Agents --> ToolMgr[๐ ๏ธ Tool Manager]
end
subgraph Tools[Execution & Integration]
ToolMgr --> MCP[๐ MCP Servers]
ToolMgr --> BrowserTools[๐ Browser Automation]
ToolMgr --> Search[๐ Unified Search]
ToolMgr --> ImageGen[๐จ Image Generation]
ToolMgr --> Questionnaire[๐ Questionnaire]
ToolMgr --> IMTools[๐จ IM Delivery]
end
subgraph RuntimeEnv[Runtime & Infrastructure]
Agents --> Sandbox[๐ฆ Sandbox Runtime]
Sandbox --> Local[Local]
Sandbox --> Pass[Passthrough]
Sandbox --> Remote[Remote]
AppLayer <--> Common[๐งฑ Shared Common Services]
Common <--> DB[(SQL Database)]
Memory <--> ES[(Elasticsearch)]
Workbench <--> FS[(RustFS / Local Files)]
Runtime -.-> Obs["๐๏ธ Observability<br/>OpenTelemetry"]
end
- Execution Chain Enhancements: Added
PlanAgent,SelfCheckAgent,MemoryRecallAgent, andToolSuggestionAgent - Context Efficiency: Improved user input optimization and conversation history compression for long-running tasks
- Session & Messaging: Added edit-and-rerun support, richer progress feedback, and better session inspection workflows
- Tooling Expansion: Added questionnaire collection workflows and improved tool-call rendering, truncation, and observability
- New Entry Points: Added Sage CLI, Chrome extension, and browser automation tooling
- Workbench Upgrades: Expanded support for audio, video, Mermaid, Draw.io, remote file preview, and richer tool cards
- Chat Experience: Improved progress messages, delivery flow display, reasoning content presentation, and workspace interactions
- IM Integrations: Expanded WeChat Personal (iLink), WeCom, Feishu, and DingTalk support with stronger file messaging flows
- Enterprise Readiness: Added OAuth2, email verification, and stronger auth/CORS/security controls
- Sandbox & Runtime: Refactored local/passthrough/remote sandbox support and improved Node runtime/sidecar packaging
- Shared Architecture: Extracted reusable
common/services, models, and schemas across desktop and server - Documentation & CI: Rebuilt the docs structure, added CLI guides, and expanded CI/test coverage
- ๐ Full Documentation: https://wiki.sage.zavixai.com/
- ๐ Release Notes: release_notes/
- ๐๏ธ Architecture: See
sagents/,common/, andapp/for the core runtime and product layers - ๐ง Configuration: Environment variables and config files in
app/desktop/
Sage/
โโโ sagents/ # SAgents core runtime, flow, context, tools, sandbox
โโโ common/ # Shared models, schemas, services, core clients
โโโ app/
โ โโโ desktop/ # Desktop app (Python backend + Vue UI + Tauri shell)
โ โโโ server/ # Server app and web frontend
โ โโโ cli/ # Sage CLI entrypoint and services
โ โโโ chrome-extension/ # Browser extension and sidepanel
โโโ mcp_servers/ # IM, search, scheduler, image generation and more
โโโ docs/ # English and Chinese documentation
โโโ release_notes/ # Version release notes
We welcome contributions! Please see our GitHub Issues for tasks and discussions.




