# Repository Briefing: replit/amuse
> Source: https://repoforai.com/repo/replit/amuse (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/replit/amuse
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A (82/100 · Maintenance 35/35 · Adoption 16/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 193 ★ total (+1 24h / +8 7d) · 37 forks
- **Topics**: `ai-agent`, `browser-automation`, `openai`, `personal-assistant`, `postgresql`, `self-hosted`, `typescript`
- **When to Use**: Best for: A single user who wants sourced research, supervised browser tasks, editable memory and recurring checks on their own computer, and is comfortable running PostgreSQL and paying for OpenAI API usage. Skip if: You need shared or remote access, offline inference, multiple model providers, MCP integrations or notifications without an open Amuse tab.

## Overview
```text
### Architecture & Core Mechanics
Amuse is a TypeScript pnpm monorepo. `apps/web` provides the React/Vite chat, live browser view and approval interface; `apps/server` runs the Express API and agent. `lib/db` holds the Drizzle schema and migrations for PostgreSQL, while editable memory is stored separately as plain workspace files. Chromium runs alongside the agent, but model inference and web search are delegated to OpenAI.

The integration surface is API keys and browser interaction rather than MCP. The agent is restricted to public internet addresses, and saved credentials are sent only to the site the user confirmed; the model sees placeholders instead. Approvals are part of the execution flow: in addition to submissions and payments, they cover opening sites the user did not name and changing memory after reading web content.

### Key Capabilities & Differentiators
Amuse combines sourced web research, a live Chromium session and ongoing work in a single interface. Users can watch, take over or stop the browser as it navigates and fills forms. The agent can break goals into steps, run reminders and monitors, and generate documents, PDFs, images, podcasts and small apps with saved data. Voice mode adds transcription and spoken replies.

The model configuration names `gpt-6.2-sol` for the main agent, `gpt-6-luna` for quick steps and `gpt-image-2` for image generation. The same OpenAI key covers these features, web search and voice. `AMUSE_DAILY_LIMIT` defaults to 2,000 usage units and pauses background jobs until the next day when reached. It is an application usage cap, not a dollar-denominated API budget; set a spend limit on the OpenAI project separately.

### Trade-offs & Limitations
Compared with a hosted assistant, Amuse gives you direct custody of its local workspace and database, plus the ability to intervene in a live browser session. In return, you operate the app, browser, database and backups. Self-hosting does not make it offline: model, search, image and voice services use OpenAI. Compared with an extensible agent framework, Amuse assembles the user interface and approval flow for you but offers neither a choice of model provider nor MCP integration.

The single-user boundary is decisive. The app has no login and should stay on loopback; browser takeover and approval scopes do not substitute for access control. A persistent approval saves repeated clicks but reduces opportunities to review later actions. Notifications appear only while an Amuse tab is open, so background monitoring is not a substitute for phone push or an on-call alerting system.

### Hardware & Deployment Guide
Docker Compose is the shortest deployment path: set `OPENAI_API_KEY` in `.env` and run `docker compose up -d --build`. The app waits for `postgres:17-alpine` to pass its health check and publishes `127.0.0.1:3000`. PostgreSQL and app data persist in `pgdata` and `amuse-data` respectively, with the latter mounted at `/data`. In this setup Chromium runs without its own sandbox, so the container is the isolation boundary.

Source installs require Node.js 22.9+, pnpm 10.26.1 and PostgreSQL 14+. Run `pnpm setup:browser` to download Chromium, configure `OPENAI_API_KEY` and `DATABASE_URL`, then run `pnpm build` and `pnpm start`. The server migrates the database before listening. Back up the first-run credential key together with PostgreSQL: it lives at `.data/secret.key` for a source install or in `amuse-data` under Compose. No latest GitHub release is listed, so there is no release milestone to use as an upgrade reference.
```

## Key Capabilities
```text
- Browser control: Watch Chromium in the chat, take over the session or stop it.
- Approval scopes: Approve once, for a task, for a site or always; cards cover actions such as sending, submitting, paying and creating schedules.
- Credential isolation: An encrypted vault gives the model placeholder tokens and sends saved credentials only to the confirmed site.
- State and artifacts: Editable memory lives in plain workspace files; generated spaces are small apps with saved data.
- Background work: Reminders, monitors and a heartbeat share a daily budget of 2,000 usage units by default; background jobs pause when the limit is reached.
- Test coverage: Server unit tests need no database, network or API key; Playwright end-to-end tests use a fresh database and make billable model calls.
```

## Quick Start / Clone
```bash
git clone https://github.com/replit/amuse
cd amuse
cp .env.example .env    # then set OPENAI_API_KEY
docker compose up -d --build
```
