# Twiko **AI teammates you actually own — your keys, your model, your machine.** [![GitHub stars](https://img.shields.io/github/stars/ezocomp118-source/twiko?labelColor=black&style=for-the-badge&color=2563EB)](https://github.com/ezocomp118-source/twiko/stargazers) [![License](https://img.shields.io/badge/license-Apache%202.0-2563EB?labelColor=black&style=for-the-badge)](./LICENSE) [![Discussions](https://img.shields.io/github/discussions/ezocomp118-source/twiko?labelColor=black&style=for-the-badge&color=2563EB)](https://github.com/ezocomp118-source/twiko/discussions) [![Website](https://img.shields.io/badge/website-twiko.ai-2563EB?labelColor=black&style=for-the-badge)](https://twiko.ai) ![Twiko — AI teammates you actually own](./docs/readme-hero.png) Most AI assistants can only talk back. Twiko gives every bot a real computer: a browser it signs into, a terminal it runs commands in, files it keeps, and memory that outlives the conversation. It works while you are away and comes back when it needs you. All of it runs on infrastructure you control. Your model keys, your machine, your data — no vendor sits in the middle. Twiko is in beta and self-hosts in a few minutes — see [Quick start](#quick-start). Learn more at [twiko.ai](https://twiko.ai). ## What each bot gets - **Its own computer** — browser, terminal, file system, and a graphical desktop - **Memory that persists** — conversations, facts, and history that survive restarts - **Routines** — scheduled work that runs on its own, hourly or every weekday morning - **Tools via MCP** — connect any Model Context Protocol server - **App integrations** — optional connections to your existing services through Composio - **Delegation** — bots hand work to peer bots or spin up short-lived subagents - **Your model** — bring credentials for any provider, or sign in with a subscription you already pay for ## Where it runs Shared Team Computers or isolated Private ones, backed by Docker, E2B, Daytona, or a trusted local machine. The web app, an Electron desktop app, and an Expo mobile app are all clients of the same self-hosted API. ## Demo ![A Twiko bot working on a Team Computer](./docs/screenshots/web-computer.png) A bot with its own computer: it opens a browser, runs a terminal, works through the task, and hands the screen back to you when it needs your input. ## Quick start You need Node.js 22.19+, pnpm 9, and Docker Desktop. ```bash git clone https://github.com/ezocomp118-source/twiko.git cd twiko cp .env.example .env ``` Set `BETTER_AUTH_SECRET` and `ENCRYPTION_KEY` in `.env` to independent, long random values. You can also set `OPENROUTER_API_KEY`, or connect a supported model provider during onboarding. ```bash docker compose --env-file .env -f infra/compose/docker-compose.yml up postgres -d pnpm install pnpm db:generate pnpm db:migrate pnpm sandbox:build pnpm dev ``` Open [http://127.0.0.1:5173](http://127.0.0.1:5173), create an account, connect a model, and create your first bot. For an agent-assisted installation, use [SETUP_PROMPT.md](./SETUP_PROMPT.md). For deployment, provider selection, backups, and upgrades, see the [self-hosting guide](./docs/self-host.md). ## Stack - TypeScript - React 19, Vite, and Tailwind CSS - Electron and Expo - Hono and oRPC - PostgreSQL and Prisma - Better Auth - Graphile Worker - Pi - Docker, E2B, and Daytona - Composio ## Desktop and mobile The Electron and Expo apps are clients of the same Twiko API used by the web app. With the development stack running, launch Electron with: ```bash pnpm --filter @twiko/desktop dev ``` Mobile build and release instructions live in [docs/mobile-release.md](./docs/mobile-release.md). ## Development Twiko is a TypeScript monorepo built with React, Electron, Expo, Hono, Postgres, Prisma, Graphile Worker, and Pi. ```text apps/ web, api, worker, desktop, mobile, and public website packages/ domain, contracts, persistence, adapters, UI, and test tooling infra/ local services and computer images docs/ architecture, operations, and release guides ``` Common checks: ```bash pnpm lint pnpm check pnpm test pnpm test:integration pnpm test:e2e ``` See [CONTRIBUTING.md](./CONTRIBUTING.md) for the development workflow and test matrix. ## Documentation ```bash pnpm test # unit, property, and in-process contract tests pnpm test:integration # Postgres journeys, Graphile jobs, LISTEN/NOTIFY pnpm test:e2e # Playwright against the emulated stack pnpm test:e2e -- --sandbox=e2b # the same deterministic suite against real E2B pnpm test:e2e -- --sandbox=daytona # the same suite against real Daytona pnpm test:e2e -- --sandbox=box # the same suite against real Box pnpm test:topology # local Docker + Graphile worker recovery (needs Docker) pnpm test:canary # live OpenRouter / E2B / Box canaries # explicit real vision-model + real E2B desktop acceptance test: COMPUTER_E2E_MODEL= pnpm test:computer ``` - [Self-hosting](./docs/self-host.md) - [Computer runtime and isolation](./docs/computer-runtime.md) - [Mobile releases](./docs/mobile-release.md) - [Performance testing](./docs/performance.md) ## Contributing Contributions are welcome. Please read [CONTRIBUTING.md](./CONTRIBUTING.md) before opening a pull request, and follow the [Code of Conduct](./CODE_OF_CONDUCT.md). For security vulnerabilities, follow [SECURITY.md](./SECURITY.md) instead of filing a public issue. Have a question, an idea, or want to show what you built? Open a thread in [Discussions](https://github.com/ezocomp118-source/twiko/discussions). Twiko is licensed under the [Apache License 2.0](./LICENSE). If Twiko is useful to you, consider starring the repository — it is the main way other people find the project.