项目的 README,来自 github.com/useagenthq/useagent。合并为一个 markdown 文件:README.md。
UseAgent gives Claude Code, Codex, OpenCode and Pi a computer of their own.
Hand off a fix, a website, a spreadsheet or research from the web, Slack or the API,
watch the work as it happens, and get pull requests and files back.
Use it at app.useagent.org, or run all of it on your own server.
Quick start · Docs · Self-hosting · Architecture · Changelog
Each thread gets an isolated Linux computer with a terminal, a browser and your repositories. Watch every command as it runs, open the desktop or terminal to take over, and get a pull request back.
Give a bot a job, an engine and standing rules. Each bot keeps one thread with its own context, so you can message it like a coworker or put it on a routine.
Put any prompt on a schedule with its own engine and time zone. Every run is recorded, and you can run one now, pause it or change it in place.
Documents, spreadsheets, presentations, PDFs, images and videos the agents make are kept with the run that made them. Supported files keep revisioned edits and export in their own format.
Import skills from GitHub, pin a playbook to a task and reuse the procedures that work. Skills are versioned, so each run records exactly what it used.
Run the control plane and its Postgres on any Linux host. Keys stay on your server and never enter the agent's computer, and sandboxes come from Daytona, CubeSandbox on your own hardware, or Box.
UseAgent is alpha software. It runs real daily work, but APIs and schemas can change between releases, so pin a tag if you need stability.
git clone https://github.com/useagenthq/useagent.git && cd useagent
cp deploy/compose/env.example .env.compose # fill in every placeholder
docker compose --env-file .env.compose -f compose.local.yaml up --build
Then open http://localhost:3400. Before you start, set the secrets, a Daytona key, a gateway URL your sandboxes can reach and how people sign in. The Compose guide covers each setting.
UseAgent runs on any Linux host: AWS, Google Cloud, Azure or bare metal.
infra/self-host/ has the full guide, a
one-command reference host (Terraform) and the provider-agnostic
deploy-app.sh:
SERVER_IP=<host-ip> PG_PASSWORD=... OPENROUTER_API_KEY=... \
infra/self-host/deploy-app.sh /path/to/this/repo
You need bun and Postgres 16+ with pgvector. No Postgres handy? One container does it:
git clone https://github.com/useagenthq/useagent.git && cd useagent
docker run -d --name useagent-pg -p 127.0.0.1:5432:5432 \
-e POSTGRES_HOST_AUTH_METHOD=trust pgvector/pgvector:pg16
export DATABASE_URL=postgres://postgres@localhost:5432/postgres
for workspace in \
packages/agent-harness packages/artifact-workspace \
packages/agent-client packages/artifact-formats packages/sandbox-contract \
packages/conformance packages/cli \
backend frontend; do
(cd "$workspace" && bun install --frozen-lockfile)
done
bun run dev:backend # API and orchestration on :3201
bun run dev:frontend # UI on :3400 (proxies /api/* to the backend)
A real agent task also needs a sandbox provider key and a model key. The
setup guide walks
through both. bun run typecheck covers every package.
Paste one into a new thread and change the details to fit your work.
Research a decision. You get a brief with a dated source list.
Should a five-person startup use Postgres full-text search or a hosted search
service? Read the official docs and pricing pages, cite each claim with a link
and the date you checked it, and end with a recommendation.
Build a small website. You get the site running in the agent's browser, screenshots and the source files.
Build a one-page website for a neighborhood bakery with opening hours, a menu
with prices and a contact form. Run it, check it at phone width, and send me
screenshots and the source files.
Make a spreadsheet from your data. Attach a CSV first.
Turn the attached CSV of last month's orders into a spreadsheet with revenue by
week and by product, a chart of the weekly totals, and a tab that lists rows
that look wrong.
Fix a bug and open a pull request. Pick the repository under Choose project first.
The signup form accepts an empty email address. Find the cause, fix it, add a
test that fails without the fix, and open a pull request.
Run a job every week. Make a bot for your repository, then use Add routine in its details with this prompt, set to Mondays at 9 AM.
Read last week's merged pull requests and post a short changelog: what
shipped, what changed for users, and who to thank.
Ask from Slack. In a channel where UseAgent is installed, mention it.
@UseAgent what changed in the billing service this week? Link the pull requests.
| Path | What it owns |
|---|---|
frontend/ |
Product UI: threads, bots, skills, playbooks, wiki, files, routines, settings |
backend/ |
Control plane: auth, runs, sandboxes, engines, knowledge, memory, files, connectors |
packages/ |
Shared contracts: thread events, engine events, sandbox providers, the CLI |
docs-site/ |
Documentation site: concepts, architecture, API, operations |
infra/self-host/ |
Self-hosting on any provider, with a reference Terraform host |
memory/ |
Optional team-memory service |
More in the documentation and the interactive request-flow diagram.
Claude Code Codex OpenCode Pi
Connect a provider account or an API key in Settings → Provider connections. The models, sign-in methods and tools you get depend on the engine and your configuration. The engine guide has the details, and sandboxes and the desktop covers the computer each thread runs on.
| Devin | UseAgent | |
|---|---|---|
| Source code | Closed | Open source (AGPL) |
| Where it runs | Cognition's cloud; enterprise plans can put the workspace in your VPC, the agent itself stays in Cognition's cloud | All of it on our cloud, your own servers, or your laptop |
| Which agent | Devin's own | Claude Code, Codex, OpenCode or Pi, side by side |
| Model bill | Paid through Devin | Your own keys, your ChatGPT plan for Codex, or free models |
| Record of the work | In Devin's app | Every step in your own Postgres, replayable |
UseAgent is not a new model, and not a proven replacement for every Devin workflow. It is the workspace around the agents you already use: a computer per task, your team's tools and context, and a full record of what happened.
Pull requests are welcome. Comment on an issue to take it, then open a pull request.
good first issue.help wanted
issue. New channels such as Discord, Telegram and Microsoft Teams build on the
connector framework, with the email connector as a worked example.UseAgent is free and open-source software under the GNU AGPL v3.0 (AGPL-3.0-only). You may use, modify and self-host it under the AGPL.
To embed UseAgent in proprietary software, distribute it without AGPL obligations, or build an OEM or white-label product, a commercial license is available.
Contributions are accepted under the CLA. The UseAgent name and logo are covered by the trademark policy, not the code license. Third-party components are listed in NOTICE; vendored and ported files carry per-file attribution headers.