Sage Documentation
This site documents the current repository as it exists today. It is organized around the real entry points in examples/, app/server/, app/desktop/, sagents/, and mcp_servers/.
Who This Is For
- Users who want to run Sage locally
- Contributors who need to understand the runtime and application layout
- Integrators extending Sage through tools, skills, APIs, or MCP servers
Start Here
- Getting Started for local setup and first run
- Core Concepts for the runtime model
- Architecture for repository and subsystem boundaries
- Configuration for environment variables and deployment knobs
Common Reading Paths
I want to run Sage locally
Read:
I want to extend the runtime
Read:
I want to integrate with the server
Read:
Documentation Map
- Getting Started: install dependencies and run the CLI, server, web UI, or desktop build
- Core Concepts: sessions, agents, tools, skills, flows, and sandboxing
- Architecture: how the codebase is organized
- Configuration: runtime environment variables and storage settings
- Applications: which app surface to use for which job
- MCP Servers: built-in MCP servers and how they fit into the platform
- API Reference: main HTTP route groups and streaming endpoints
- HTTP API Reference: current backend HTTP endpoints, request and response bodies, and curl examples
- OAuth2 Lage Integration Guide: restored OAuth2 integration guide from historical docs
- Development: contributor workflow and source locations
- Troubleshooting: common startup and environment issues
Current Product Surfaces
Lightweight examples
examples/sage_cli.py: terminal chat clientexamples/sage_demo.py: Streamlit demoexamples/sage_server.py: standalone FastAPI example service
Main application server
app/server/main.py: primary FastAPI application entry pointapp/server/web/: Vue 3 + Vite web client
Use this path when you want the full product surface instead of a demo.
Desktop app
app/desktop/entry.py: desktop bootstrap entryapp/desktop/core/main.py: desktop-local FastAPI backendapp/desktop/ui/: desktop UI
Use this path when you need the packaged desktop experience rather than the browser-based app.
Core runtime
sagents/sagents.py:SAgentstreaming runtime entrysagents/agent/: agent implementationssagents/tool/: tool system and MCP proxy supportsagents/skill/: skill loading and executionsagents/utils/sandbox/: sandbox abstractions and providers
Documentation Principles
- This documentation prefers current source accuracy over historical completeness.
- Historical migration notes and duplicate site pages have been removed from the primary doc set.
- The root repository
README.mdremains the marketing and project overview document; this site is the technical source of truth.