Copilotz is an open-source runtime whose goal is to let developers write an application once and have it used simultaneously by human users, the application's own AI agents, and external AI assistants (such as ChatGPT, Claude, and any MCP client). In the traditional approach, after building an application for humans, you still need to additionally develop a bot, an MCP server, and a ChatGPT app, each with its own separate codebase and permission model. Copilotz solves this problem through a unified contract: the same Actions, the same rules, and unified records of who did what for whom.
Main capabilities:
- Unified contract: an application consists of 6 primitives, and the runtime only knows these primitives. All entry points (Web, REST, MCP, WhatsApp, phone, etc.) are thin layers that translate protocols into unified calls.
- Multi-caller support: a single Action can be called by human users, in-app agents, and external assistants via MCP, and every call goes through an allow permission check.
- Security model: every caller has an identity and a space; allow is checked for every caller (including tools); agents can only access content that their served party can access, and only within their own space; rules filter reads and writes at the data layer; models do not hold keys; all write operations and Action calls are recorded as events; retries do not execute twice; the interface updates as submissions are made.
- Plugin system: an application is a list of plugins, and plugins call each other's Actions, fill resource types, and listen to events only by name. Official plugins are provided by topic, such as Web, terminal, REST, MCP, WhatsApp, voice, authentication, billing, storage, etc.
- Storage support: in-memory, SQLite, and PostgreSQL storage with consistent behavior, where switching requires changing only one line; Blobs can be stored in storage, files, HTTP buckets, or Google Cloud Storage.
- Development support: provides a getting-started tutorial (10 chapters building a salon booking application) and an in-depth tutorial (41 chapters building the Compass workspace), as well as video courses (Portuguese and English). AGENTS.md provides guidance for coding agents.
Usage:
- Initialize a new application: npx copilotz@1.0.0-rc.78 init orders
- Add the runtime to an existing project: npm install copilotz@next or deno add jsr:@copilotz/copilotz
- Runtime environments: Node 24+, Deno 2.9+, Bun, based on Web standards, supporting Cloudflare Workers and browsers.
- The example code must be saved as salon.ts and run with OPENAI_API_KEY configured.
Use cases: developers who need to open their applications to AI agents and external assistants; teams that want unified management of permissions and auditing across multiple entry points; scenarios for building human-AI collaboration applications (such as shared chats, kanban boards, and documents).
Limitations: currently a 1.0 release candidate (RC), and it does not read 0.x data; MCP does not yet have a login feature, and external calls enter as contacts; documentation provided via MCP (search_docs, read_doc, agents_guide) is not yet live; the Cursor plugin is not yet listed in the marketplace and requires using npx skills add.