Host applications are the entry points of the Executor system. While the core logic resides in the shared SDK and API layers, hosts are responsible for providing the environment-specific infrastructure: database drivers, authentication providers, and runtime substrates for code execution.
Executor provides four primary host environments, each tailoring the shared @executor-js/api and @executor-js/sdk to its specific constraints.
Every host follows a standard composition pattern:
DbProvider, PluginsProvider, HostConfig, and CodeExecutorProvider apps/cloud/src/engine/execution-stack.ts101-107/api) apps/cloud/src/engine/execution-stack.ts74-80@executor-js/react console, typically integrated via Vite apps/cloud/package.json51-55| Host | Environment | Database | Auth | Primary Use Case |
|---|---|---|---|---|
| CLI | Node/Bun | SQLite | Device Flow | Terminal automation, local daemons. |
| Local | Node/Bun | SQLite | Localhost | Personal tool management, local dev. |
| Desktop | Electron | SQLite | Keychain/OS | Consumer application with native UI. |
| Cloud | Cloudflare | PostgreSQL | WorkOS/JWT | Managed multi-tenant SaaS. |
The following diagram illustrates how a Host Application bridges the high-level user intent (Natural Language/UI) to the concrete code entities that perform the work.
Sources: apps/cloud/src/engine/execution-stack.ts1-32 packages/core/api/src/server/execution-stack-middleware.ts
The CLI (apps/cli) is the primary interface for terminal-based automation. It manages a local daemon that serves the API and provides an MCP bridge for stdio-based clients.
install, web, daemon, mcp, and call.For details, see CLI Host.
Sources: apps/cli/package.json5-7 apps/cli/src/main.ts
The Local host (apps/local) provides a standalone HTTP server and web UI for local environments. It is the foundation for the "Local-first" experience.
For details, see Local Host.
Sources: apps/cli/package.json29 package.json37
The Desktop app (apps/desktop) wraps the local host in an Electron shell, providing native OS integrations.
@executor-js/plugin-keychain.electron-updater.For details, see Desktop Host (Electron).
Sources: apps/desktop/package.json24-30 apps/desktop/scripts/build-sidecar.ts
The Cloud host (apps/cloud) is a highly scalable, multi-tenant implementation running on Cloudflare Workers and Durable Objects.
For details, see Cloud Host (Cloudflare Workers).
Sources: apps/cloud/src/engine/execution-stack.ts35-50 apps/cloud/package.json69-75
These variants target deployment in private clouds or standard Docker environments.
For details, see Self-Host and Cloudflare Host.
Sources: apps/host-cloudflare/package.json apps/host-selfhost/executor.config.ts
This diagram maps system-level host concepts to the specific code entities that implement them.
Sources: apps/cloud/src/engine/execution-stack.ts38-44 apps/cli/package.json34-36 apps/desktop/package.json8
Refresh this wiki