How tejasladhe24/agentos works
AgentOS is a framework for building extensible products. The main workflow is a consumer app mounting the Shell, which hosts extension surfaces; the Gateway exposes extension APIs and the registry, while platform builtins provide shared capabilities and optional Python services handle standalone backends. The graph also includes the client SDK, extension discovery, and representative builtins. Relationships are limited to those stated in the README or supported by the shown source index and excerpts; unsampled implementation details are not inferred.
Main entry points: mount.tsx Product Shell · main.py Invoice bot example · routes.ts Email routes · create_app.py Python services
Components 29
Product setup
- Consumer app
- Feature extensions
- Python services
packages/python/agentos/create_app.py - Invoice bot example
services/invoice-bot/app/main.py - Invoice records
packages/python/agentos/store.py
Host runtime
- Product Shell
packages/core/src/shell/mount.tsx - Extension discovery
packages/core/src/vite/lib/scan-extensions.ts - Sandboxed UI
packages/core/src/shell/components/ui-contribs/extension-frame.tsx - HTTP Gateway
packages/core/src/gateway/lib/create-gateway.ts
Platform capabilities
- Auth and RBAC
packages/core/builtins/auth/api/lib/create-auth.ts - Database store
packages/core/builtins/db-store/api/lib/create-db.ts - Cache store
packages/core/builtins/cache-store/api/lib/create-store.ts - AI models
packages/core/builtins/ai/api/lib/create-model.ts - AI providers
packages/core/builtins/ai/api/lib/providers.ts - File storage
packages/core/builtins/files/api/lib/storage-providers.ts - Storage settings UI
packages/core/builtins/files/ui/add-storage-dialog.tsx - Events and jobs
packages/core/builtins/events/api/lib/event-bus.ts - Human approvals
packages/core/builtins/hitl/api/lib/approvals-store.ts - Inbound email
packages/core/builtins/inbound-email/api/lib/ingest.ts - Email routes
packages/core/builtins/inbound-email/api/lib/routes.ts - Message store
packages/core/builtins/inbound-email/api/lib/message-store.ts - Notifications
packages/core/builtins/notifications/api/lib/routes.ts - Audit log
packages/core/builtins/audit/api/server.ts - Vector store
packages/core/builtins/vector-store/api/lib/create-store.ts
Service and client APIs
- Host client SDK
packages/core/src/sdk/lib/client.ts - Bun API kit
packages/core/src/api/lib/create-app.ts - Python SDK
packages/python/agentos/http.py - Integration management
packages/core/src/api/lib/integrations.ts
Other components
- Product team
Connections 22
- Product team → Consumer app: builds
- Consumer app → Product Shell: mounts
- Consumer app → Feature extensions: adds features
- Consumer app → Python services: runs backends
- Feature extensions → Extension discovery: discovered by
- Product Shell → Sandboxed UI: hosts views
- Feature extensions → Sandboxed UI: renders UI
- Feature extensions → HTTP Gateway: exposes APIs
- HTTP Gateway → Feature extensions: proxies API
- Product Shell → Host client SDK: provides host API
- Feature extensions → Host client SDK: uses client
- Feature extensions → Bun API kit: implements API
- Python services → Python SDK: uses SDK
- Invoice bot example → Invoice records: reads and writes
services/invoice-bot/app/main.py - Invoice bot example → Human approvals: requests approval
services/invoice-bot/app/main.py - Bun API kit → Integration management: provides integrations
- Auth and RBAC → Database store: uses store
- AI models → AI providers: builds models
packages/core/builtins/ai/api/lib/create-model.ts - Storage settings UI → File storage: configures mounts
- Email routes → Inbound email: ingests messages
packages/core/builtins/inbound-email/api/lib/routes.ts - Email routes → Message store: lists messages
packages/core/builtins/inbound-email/api/lib/routes.ts - Notifications → Integration management: resolves providers
packages/core/builtins/notifications/api/lib/routes.ts