leeoohoo/chatos_rs
Sobre
ChatOS is a native desktop workspace that lets AI keep working inside real projects. It goes beyond answering questions: it can read project context, break down requirements, execute background tasks, use local files, Git, terminals, and plugins, and present the full execution process, permission requests, and results to the user.
Outros projetosCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalChatOS
English · 简体中文
Bring AI into your project—and get things done.
ChatOS is a native desktop workspace that lets AI keep working inside real projects. It goes beyond answering questions: it can read project context, break down requirements, execute background tasks, use local files, Git, terminals, and plugins, and present the full execution process, permission requests, and results to the user.
The cloud coordinates conversations, tasks, memory, and capabilities. Native clients and the Local Connector execute operations only on explicitly authorized devices and workspaces. Together they provide a long-running workflow that users can inspect, guide, stop, and audit.
Product interfaces
The website and other public-facing material show the native client that users actually operate. Internal Memory Engine, Task Runner, and administration-console screenshots are not used as product UI.
| Client area | Current capabilities |
|---|---|
| Project workspace | Project files, messages, project settings, Git, terminals, and run configuration |
| AI Creation | Images, video, Story Mode, and creation history |
| Agent | Agent management, direct conversations, and project teams |
| Desktop tools | Applications, remote connections, desktop pet, quick search, clipboard, capture, and recording |
What the project is today
- Native desktop clients: independent SwiftUI and WinUI applications for macOS and Windows. The retired Electron client is no longer the product runtime.
- Cloud orchestration: conversations, tasks, agents, configuration, plugin metadata, and memory are managed by server-side services.
- Device-side execution: every project binds an explicitly authorized local workspace. Files, Git, commands, local MCP servers, plugin applications, and device permissions execute through the Local Connector built into the native client.
- Observable background work: complex requests can become resumable tasks with progress, logs, tool calls, approvals, retries, and final results.
- Long-term project context: conversation summaries, project facts, and role-specific memory can be reused across sessions.
- Extensible local capabilities: the plugin platform supports MCP servers, skills, managed artifacts, and local application surfaces inside the client.
ChatOS does not silently move a device-scoped operation to a server filesystem or another machine. If the bound Local Connector is offline, the operation waits or fails explicitly.
Architecture
flowchart LR
U[User] --> C[Native macOS / Windows client]
C --> G[APISIX API gateway]
G --> S[Cloud business services]
S --> T[Task Runner and workers]
S --> M[Memory Engine]
S --> P[Plugin / MCP management]
T --> L[Local Connector service]
P --> L
L --> N[Native Local Connector]
N --> W[Authorized workspace]
N --> X[Git / terminal / local MCP / plugin apps]
S --> H[Harness repository and integration plane]
The boundary is intentional:
- Cloud services are authoritative for account and task data.
- The native client is authoritative for projects, local credentials, workspace authorization, and device capabilities.
- Local Connector uses outbound connectivity and exposes only the workspace and capabilities the user authorized.
- Harness manages repositories, synchronization, CI, and integrations; it is not a fallback project filesystem or command executor.
Product areas
Conversation, planning, and tasks
ChatOS supports direct conversation and background tasks. Users can inspect intermediate output, provide additional guidance, approve sensitive actions, stop work, and retry failures.
Project workspace
The native clients provide project browsing, full-text search, file viewing and editing, Git state and diffs, terminals, run configurations, logs, and project-scoped resource creation. Workspace operations remain inside the authorized local boundary.
Project context and memory
Each client-owned project keeps its conversations, tasks, run history, and reusable context isolated by project identity. The memory system supports long-running collaboration through conversation summaries and layered project memory instead of relying on one unbounded transcript. Models, skills, and tool capabilities are supplied jointly by platform configuration and the local runtime.
Native desktop capabilities
The macOS client includes project workspaces, task views, plugin applications, a local connector control surface, an optional desktop pet, and local-only global utilities such as quick search, clipboard history, screenshots, long screenshots, and screen recording.
The Windows client follows the same product protocols and visual language with its own WinUI implementation, native Local Connector, packaging flow, and Network Guard. Platform-specific parity is tracked explicitly because the clients do not share UI source code.
See clients/README.md, clients/macos/README.md, and clients/windows/README.md.
First-party plugins
| Plugin | Purpose |
|---|---|
| Browser | CDP-based browser automation for managed Chromium or explicitly shared Chrome tabs. |
| Computer Use | Visual-first native computer control using real screenshots and platform input APIs. |
| Document Tools | Workspace-bounded Word, Excel, PowerPoint, and PDF inspection, rendering, creation, and editing. |
| Diagram Studio | AI-editable visual diagrams with a local workbench and PlantUML interoperability. |
Plugins can combine MCP servers, skills, permission declarations, managed artifacts, and local application surfaces. Runtime data is isolated by user and project where the plugin contract requests it.
Repository map
| Path | Responsibility |
|---|---|
clients/macos |
Swift 6.2 / SwiftUI native client and macOS Local Connector. |
clients/windows |
.NET 8 / WinUI 3 native client, Windows Local Connector, Network Guard, and installer. |
chatos/backend |
Main ChatOS API and conversation orchestration service. |
task_runner_service/backend |
Background task API, workers, scheduler, and tool runtime. |
memory_engine/backend |
Conversation summaries and layered project/subject memory. |
mcp_management_service/backend |
MCP capability materialization, routing, and runtime sessions. |
plugin_management_service/backend |
Plugin catalog, releases, packages, and runtime capability metadata. |
local_connector_service/backend |
Cloud routing and coordination for native Local Connectors. |
user_service/backend |
Accounts, authentication, model providers, and user settings. |
config_center_service/backend |
Dynamic service configuration and release publication. |
plugins |
First-party plugins and their packaging metadata. |
crates |
Shared Rust protocols, SDKs, runtimes, auth, workspace, and observability libraries. |
admin_console |
React administration console. |
official_website_service |
Product website, registration, and client release distribution. |
docker |
Compose topology, deployment scripts, gateway, and observability configuration. |
The root Rust workspace is defined in Cargo.toml. Memory Engine remains a separate Rust workspace and is built explicitly by the Makefile.
Run the cloud stack
Prerequisites
- Docker Engine and Docker Compose v2
- Bash and OpenSSL
make(recommended)
Prebuilt images
cp docker/bootstrap.conf.example docker/bootstrap.conf
# Replace development credentials before using a shared or production environment.
make docker-up
The default deployment pulls prebuilt images. After startup:
- Product website: http://localhost:39251
- Unified API gateway: http://localhost:9080
- Harness: http://localhost:3000
- Grafana: http://localhost:3001
Useful operations:
make docker-ps
make docker-logs
make docker-fast
make docker-down
make docker-reset also removes Compose volumes, including persistent databases. Use it only when a full local reset is intended.
Build the stack from source
make dev
To rebuild only selected Compose services:
make docker-rebuild SERVICES="chatos-backend task-runner-backend"
For faster host-side backend and administration frontend development:
make local-dev
make local-dev-status
make local-dev-logs SERVICE=chatos-backend
make local-dev-stop
Detailed deployment guidance is in INSTALL_GUIDE.zh-CN.md.
Run native clients
macOS
Requires macOS 14+ and Swift 6.2+:
swift run --package-path clients/macos ChatOSSwift
make test-macos-client
clients/macos/scripts/package-debug-app.sh
Source runs default to the local gateway at http://127.0.0.1:9080/api/chatos. Use CHATOS_API_BASE_URL and CHATOS_LOCAL_CONNECTOR_CLOUD_BASE_URL to target another environment.
Windows
Requires Windows, .NET 8, and the Windows App SDK / WinUI workload for development:
./clients/windows/build/bootstrap.ps1
./clients/windows/build/test.ps1
./clients/windows/build/build.ps1
To build the self-contained installer on Windows:
./clients/windows/scripts/package-client.ps1
The packaging script can bootstrap missing local tooling and produces a self-contained installer under clients/windows/BundleArtifacts/.
Build and verify
The repository pins Rust 1.94.0 with Clippy and rustfmt.
make build # Rust services plus administration/website frontends
make smoke # repository policies, scripts, and Compose validation
make verify-fast # quality policies and Rust lint
make test # smoke checks and core service tests
make verify # full Rust and frontend verification
Native clients and plugins have platform-specific targets:
make test-macos-client
make test-browser-plugin
make test-document-plugin
npm --prefix plugins/diagram-studio test
make test-plugins runs the Browser, Computer Use, and Document plugin suites together. Diagram Studio has its own npm test target. Run only the targets supported by the current host; Windows client and Windows Computer Use validation must run on Windows.
Configuration and security notes
docker/bootstrap.confcontains only infrastructure bootstrap values needed before Configuration Center is available. Do not commit it.- Business settings, model configuration, service policies, and releases are published through Configuration Center.
- The root .env.example is for host-side Local Connector settings, not cloud service configuration.
- Production deployments must replace all sample credentials and provision service-specific mTLS material outside Git.
- Project file, terminal, Git, plugin, and device operations are constrained by workspace authorization and permission policy.
- Content required for model inference may be sent to the model provider configured by the user or deployment.
Current status
ChatOS is under active development. Keep these constraints in mind:
- A project workspace requires its bound native Local Connector to be online for local operations.
- macOS and Windows share protocols and product intent, but platform-specific features can land at different times.
- Existing-Chrome Browser Bridge distribution still depends on its published Chrome Web Store identity; managed-browser mode is independently usable.
- Historical data from the retired Electron client is not automatically treated as the authoritative state of the current cloud-native product.
More documentation
- Installation and deployment guide
- Native client architecture and plans
- Windows client implementation and acceptance docs
- Plugin overview
- SDK usage
- Third-party notices
License
The main repository is licensed under the PolyForm Noncommercial License 1.0.0. Some first-party plugins and third-party components use their own licenses; see their directories and THIRD_PARTY_NOTICES.md.
Explore projetos relacionados
Carregando…