Skip to content
المشاريع

حول

Self-hosted AI teammates / Đội ngũ AI tự lưu trữ. Windows ZIP & macOS DMG; Zero-Docker Lite CLI; Docker/server. Web, Desktop & Mobile. Apache-2.0.

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
A-Company — AI teammates you actually own

A-Company

English · Tiếng Việt

Self-hosted AI teammates across Web, Desktop, and Mobile.
Persistent bots with live computers, scheduled routines, interactive chat mini-apps, token spend caps, and portable Markdown blueprints.
Run with your own model API keys, zero-cost local subscription CLIs, or embedded PGlite — 100% Apache-2.0.

Đội ngũ AI tự lưu trữ trên Web, Desktop và Mobile.

Bot có bộ nhớ, công cụ làm việc, lịch tự động, mini-app trong hội thoại và giới hạn chi phí token. Chọn ZIP Windows giải nén chạy ngay, Zero-Docker Lite CLI hoặc Docker/server — mã nguồn mở Apache-2.0.

GitHub Stars Windows Desktop ZIP Release Apache-2.0 License Zero-Docker Standalone and PGlite

Downloads / Tải về · Why A-Company · 3 Ways to Run · Product Tour · Architecture · Docker Installers · CLI & MCP · Docs


Downloads / Tải về

Release v0.2.2 — downloads & release notes / tải xuống và ghi chú phát hành · All releases / Các phiên bản

Download / Tải xuống Platform / Nền tảng Usage / Cách dùng
A-Company Windows ZIP — ~180 MB Windows x64 Extract all files, open A-Company.exe / Giải nén toàn bộ, mở A-Company.exe
A-Company macOS Apple Silicon — DMG ~158 MB macOS · M1/M2/M3/M4 Open the DMG, drag A-Company to Applications / Mở DMG, kéo A-Company vào Applications
A-Company macOS Intel — DMG ~166 MB macOS · Intel Same as above / Như trên
SHA256SUMS Checksum / Mã kiểm tra Verify downloads / Kiểm tra tính toàn vẹn

Windows needs no installer. These builds are not code-signed by Microsoft or notarized by Apple, so the system may warn on first launch. On macOS, if A-Company is blocked, open System Settings → Privacy & Security and choose Open Anyway. / Bản Windows không cần cài đặt. Các bản này chưa được Microsoft ký số hay Apple công chứng (notarize), nên hệ thống có thể cảnh báo khi mở lần đầu. Trên macOS, nếu bị chặn, vào System Settings → Privacy & Security và chọn Open Anyway.

Zero-Docker Lite CLI and Docker/server remain available alongside the desktop downloads. / Zero-Docker Lite CLI và Docker/server vẫn tồn tại song song với bản Desktop. See three ways to run or hướng dẫn tiếng Việt.


Why A-Company

Most AI tools trap your prompts, memory, and workflows inside a single vendor tab. A-Company turns AI agents into durable teammates that live on infrastructure you own:

Capability What you get
Web · Electron · Expo Mobile One shared Hono + oRPC API across browser, macOS/Windows/Linux desktop, and native iOS/Android.
100% Apache-2.0 Open Source Complete multi-user, worker, team-computer, and connector stack with no locked enterprise/ tier.
3 Deployment Modes Extract the Windows Desktop ZIP and open A-Company.exe, run pnpm dev:lite (Zero-Docker CLI), or deploy the multi-user Docker Compose Server.
Provider-Neutral + Local CLIs Connect cloud APIs via Pi, point to Ollama/LM Studio, or reuse local Claude Code, Codex, Gemini CLI, and OpenCode logins at zero extra API cost.
Shared & Private Computers + My Chrome Give bots isolated Docker, E2B, Daytona, or Box Linux desktops, local folders, or attach directly to your signed-in Chrome via CDP (BROWSER_PROVIDER=my-chrome).
Interactive Chat Mini-Apps Bots call render_widget to render sandboxed HTML/CSS/SVG dashboards, calculators, and status boards inline inside chat.
Routines, Spend Caps & Webhooks Schedule plain-language routines, enforce daily/monthly token spend caps, and wake bots via POST /api/v1/bots/:botId/webhook.
Portable Blueprints & Snapshots Spin up Starter Teams in one click, commit secret-free .md Team Blueprints to Git, or export full credential-redacted Workspace JSON backups.

Three Ways to Run A-Company

Choose the setup that matches your workflow — all three share the exact same codebase, bot tools, blueprints, and model providers:

Option 1 — Windows Desktop ZIP (Extract & Run · No Installer · No Docker)

Download A-Company-0.2.2-Windows-x64.zip, extract the entire archive, and open A-Company.exe. Keep the adjacent files and resources folder together; the executable is not a single-file application.

  • Dedicated app window: No browser tab, Docker Desktop, separate Node.js, PostgreSQL, or account registration is needed for the built-in workspace.
  • Local engine: The bundled API, background worker, and PGlite run in a separate process managed by the app. Cloud models require internet and a configured account or key; local models and optional CLI tools require their own configuration.
  • Persistent data: Workspace data lives in %APPDATA%\A-Company, outside the extracted folder. Close the app and back up that entire directory, including its encryption material. This is a no-install distribution, not a USB-carried data profile.
  • Manual updates: Close the app, extract the new ZIP into a fresh folder, and open the new executable. The installer updater is disabled for ZIP builds.
  • Unsigned Windows build: Windows may warn or block the app according to system policy. Code signing is deferred; do not disable security controls to run it.
  • Optional server connection: File → Change A-Company Server… connects the desktop to a local Docker stack or shared team server.

macOS: download the Apple Silicon or Intel DMG, drag A-Company to Applications, and open it. The build is ad-hoc signed but not notarized: if macOS blocks it, use System Settings → Privacy & Security → Open Anyway. Data lives in ~/Library/Application Support/A-Company. Update by downloading the next DMG; there is no automatic updater in these builds. Linux (.AppImage) packaging remains configured but is not published yet.

To launch or build from source:

pnpm desktop:dev        # Launch the standalone Electron app with embedded PGlite
pnpm desktop:portable   # Build the Windows ZIP in apps/desktop/out/portable/

The Zero-Docker Lite CLI and Docker/server options below remain supported alongside the desktop ZIP.

Option 2 — Zero-Docker Lite CLI (pnpm dev:lite · Embedded PGlite)

Run the complete A-Company stack from source on macOS, Windows, or Linux without installing Docker or PostgreSQL:

git clone https://github.com/phuocka/a-company.git
cd a-company
pnpm install
pnpm db:generate
pnpm dev:lite

pnpm dev:lite boots an in-process PostgreSQL engine (DATABASE_URL=pglite persisted under ./data/lite/pglite), runs all Prisma migrations automatically, starts the background worker + Hono API, and serves the web studio at http://127.0.0.1:5173.

Tip: If claude, codex, gemini, or opencode is installed on your PATH, you can pick it immediately during onboarding or in Settings → Models — zero API keys required.

Option 3 — Multi-User Docker Server (Self-Hosted Team & Linux Sandboxes)

Deploy the multi-user PostgreSQL + isolated Linux computer container stack on any laptop, home lab, or cloud VPS — see Published Docker Images below.


Product Tour

Live 3-Pane Workspace & Interactive Telemetry Widgets

Collaborate with specialized teammates (Architect, Builder, Reviewer) in individual threads or shared rooms. Inspect each bot's live computer and scheduled routines on the right, and interact with inline HTML mini-apps rendered directly inside the thread.

A-Company Live 3-Pane Workspace

Built for Teams, Cost Control & Event-Driven Automation

1. Starter Teams & Portable Blueprints (.md)

Bootstrap an Engineering Squad, Research & Content team, or Personal Ops assistant in one click, export clean Markdown blueprints for Git, or download full JSON workspace snapshots.

Starter Teams and Blueprints

2. Token Spend Caps & Usage Telemetry

Track daily and monthly UTC token consumption across cloud APIs and local CLIs, set hard caps that pause new runs before overspending, and audit usage per bot and model.

Token Spend Caps and Usage

3. Per-Bot Memory, Computer Isolation & Inbound Webhooks

Configure each bot's model, reasoning effort, Team vs. Private computer boundary, persistent MEMORY.md scratchpad, voice replies, and dedicated POST /api/v1/bots/:botId/webhook endpoint with rotatable Bearer secrets.

Bot Settings and Inbound Webhooks

Watch the live workspace walkthrough clip in docs/screenshots/demo.mp4.


Architecture

flowchart LR
  subgraph Surfaces["Client Surfaces"]
    WEB["Web Studio\n(React 19 · Vite · Tailwind)"]
    DESK["Electron Desktop\n(macOS · Windows · Linux)"]
    MOB["Expo Mobile\n(iOS · Android)"]
    CLI["Headless CLI & MCP\n(stdio / HTTP)"]
  end

  subgraph Backend["A-Company Core"]
    API["apps/api\n(Hono · oRPC · SSE · Webhooks)"]
    WORK["apps/worker\n(Graphile / In-Memory Runner)"]
    DB[("PostgreSQL 16\nor Embedded PGlite")]
  end

  subgraph Execution["Provider-Neutral Adapters"]
    LLM["Cloud APIs · Ollama\nClaude / Codex / Gemini / OpenCode CLIs"]
    COMP["Docker · Box · E2B · Daytona\nLocal Folders · My Chrome CDP"]
    CONN["MCP · OpenAPI · Treg\nComposio · Pipedream · Voice"]
  end

  WEB & DESK & MOB & CLI <-->|"Typed oRPC + SSE"| API
  API <--> DB
  API <--> WORK
  WORK --> LLM & COMP & CONN

Monorepo Layout

apps/
  api/        Hono HTTP + oRPC server, SSE stream, inbound webhooks, PGlite/Postgres bootstrap
  worker/     Graphile Worker background runner for agent turns, cron routines, and sandboxes
  web/        React 19, Vite, shadcn/ui (Base UI), Tailwind CSS, and Lingui i18n web client
  desktop/    Electron desktop app (macOS, Windows, Linux) with local stack manager
  mobile/     Native Expo / React Native app for iOS and Android
  www/        Astro public website and documentation pages

packages/
  contracts/  Shared Zod schemas and oRPC API contracts across all clients
  core/       Domain services, Starter Teams, Markdown Blueprints, spend caps, secret redaction
  adapters/   Pi model runtime, local CLIs, Docker/E2B/Daytona/Box sandboxes, My Chrome CDP, voice
  db/         Prisma schema, SQL migrations, PostgreSQL pool, and Embedded PGlite engine
  ui-tokens/  Semantic monochrome design tokens generating CSS variables and native themes
  ui-web/     Shared accessible React UI primitives
  testkit/    Deterministic offline conformance, replay, integration, and E2E harnesses

Model Providers & Browser Modes

Connect models per space in Settings → Models — no container restarts required:

  • Zero-Cost Local Subscription CLIs: claude-cli (ACOMPANY_CLAUDE_CLI_PATH), codex-cli (ACOMPANY_CODEX_CLI_PATH), gemini-cli (ACOMPANY_GEMINI_CLI_PATH), and opencode-cli (ACOMPANY_OPENCODE_CLI_PATH).
  • Cloud & OAuth Providers (via Pi): Anthropic, OpenAI, Google Gemini, OpenRouter, xAI (Grok), GitHub Copilot, ChatGPT Plus/Pro OAuth, Groq, Mistral, DeepSeek, Together, Fireworks, and OpenCode Go.
  • Self-Hosted / Local Inference: Ollama, LM Studio, vLLM, llama.cpp, or any custom OpenAI-compatible endpoint.
  • Voice Mode: Spoken replies, hold-to-talk dictation, and live voice calls via ElevenLabs, OpenAI, Cartesia, or Fish Audio.
Runtime Setting Supported Providers Highlights
SANDBOX_PROVIDER docker · box · e2b · daytona · local Full graphical Linux computers streamed live to Web/Desktop/Mobile, or lightweight host folder execution.
BROWSER_PROVIDER sandbox · my-chrome · stagehand · kernel Set BROWSER_PROVIDER=my-chrome to attach bots to your signed-in desktop Chrome (--remote-debugging-port=9222, customizable via ACOMPANY_HOST_CDP_PORT / ACOMPANY_HOST_CDP_URL).

Published Docker Images (Server & VPS)

Deploy the production container stack with Docker Engine and Docker Compose — no source checkout or Node.js installation needed.

Linux & macOS

mkdir -p acompany && cd acompany &&
curl -fsSLO https://raw.githubusercontent.com/phuocka/a-company/main/infra/compose/install-images.sh &&
bash install-images.sh

Windows (PowerShell)

mkdir acompany -Force; cd acompany
Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/phuocka/a-company/main/infra/compose/install-images.ps1 -OutFile install-images.ps1
.\install-images.ps1

The installer downloads the Compose definitions, generates .env with independent cryptographic secrets (preserving any existing .env on re-run), and starts A-Company at http://127.0.0.1:5173. See the Self-Hosting Guide for Caddy HTTPS, remote sandboxes, and automated backups, or use SETUP_PROMPT.md for agent-assisted setup.


Local Development (Source Checkout)

Prerequisites: Node.js >= 22.22.2 (22.x, 24.x, or >= 26.0.0), pnpm 9, and Docker (for containerized Postgres & Linux computer sandboxes).

git clone https://github.com/phuocka/a-company.git
cd a-company
cp .env.example .env
# Populate POSTGRES_PASSWORD, BETTER_AUTH_SECRET, ENCRYPTION_KEY, SCREEN_PROXY_SECRET, and SANDBOX_SUPERVISOR_TOKEN

docker compose --env-file .env \
  -f infra/compose/docker-compose.yml \
  -f infra/compose/docker-compose.postgres-host.yml \
  up postgres -d
pnpm install
pnpm db:generate
pnpm db:migrate
pnpm sandbox:build
pnpm dev

Launch the Electron desktop client against a running server with pnpm --filter @acompany/desktop dev, or see docs/mobile-release.md for native iOS/Android builds.


Automation: Headless CLI & MCP Server

Bootstrap Starter Teams, export/import Markdown Team Blueprints, or message bots from terminals and CI workflows:

pnpm tsx scripts/acompany-cli.ts list-starters
pnpm tsx scripts/acompany-cli.ts apply-starter engineering-squad
pnpm tsx scripts/acompany-cli.ts export-blueprint team.md "Engineering Squad"
pnpm tsx scripts/acompany-cli.ts run Architect "Audit our API boundaries and render a status widget"

Expose your A-Company bots (list_bots, ask_bot, export_team_blueprint, list_starters) to Claude Desktop, Cursor, Windsurf, or OpenCode over stdio MCP:

pnpm tsx scripts/mcp-server.ts
Verification & Test Suite Commands
pnpm lint               # Biome lint & formatting check
pnpm check              # Strict TypeScript & Astro typecheck across all workspaces
pnpm test               # Deterministic offline unit & contract suite (Vitest)
pnpm test:integration   # PostgreSQL integration journeys (Testcontainers)
pnpm test:e2e           # Playwright end-to-end browser suite

Internationalization

The web and Electron UI support English, Tiếng Việt, Deutsch, Español, हिन्दी, 한국어, Português (Brasil), Русский, Türkçe, and 简体中文 under Settings → Language, while the Expo mobile app supports English, 简体中文, and Русский under Account → Language.


Documentation


Security & License

Connector credentials, model keys, and webhook secrets are encrypted at rest (AES-256-GCM) and never returned in plaintext by API endpoints, Blueprint exports, or Workspace Snapshots. To report a vulnerability privately, follow SECURITY.md.

Copyright 2026 A-Company Contributors. Licensed under the Apache License, Version 2.0.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…