useagent README

项目的 README,来自 github.com/useagenthq/useagent。合并为一个 markdown 文件:README.md。

UseAgent's home: a request typed into the box that asks what you want done, recent tasks under it, and threads, bots and the library in the sidebar.

The open-source Devin alternative

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.

License: AGPL-3.0 Latest release CI

Try it free at app.useagent.org  Self-host with Docker Compose  Watch the demo

Quick start · Docs · Self-hosting · Architecture · Changelog


A thread: the request to fix a sign-up bug, the agent's answer with the cause, the fix, the new test and the pull request it opened, and the terminal beside it with every command it ran and its output.

A computer for every thread

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.


Bots: four bots, each with its latest outcome and engine, beside a short explanation and a Create bot button.

Bots

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.


Automations: three active routines with their schedules, time zones, engines and when each last ran.

Routines

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.


Artifacts: files the agents made, a spreadsheet, two Markdown documents and a zipped website, each linked to the run that made it.

Files and artifacts

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.


Skills: three team skills with tags, and a section to import skills from a GitHub repository.

Skills

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.


How UseAgent fits together: work from the web app, Slack, email, the API or a schedule enters the control plane on your server, where Postgres keeps every step. Each thread gets a sandbox with the agent and its own computer, and every tool call crosses a trusted gateway that keeps the keys.

Your own server

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.

Features

Quick start

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.

Use the hosted app

  1. Sign up at app.useagent.org with your email. No credit card.
  2. Start a thread and say what you want done: a website, a research report, a spreadsheet, or a fix in one of your repositories.
  3. Pick a model. Free models are always in the Free list of the model menu.
  4. To use your own plan, open Settings → Provider connections and connect ChatGPT to run Codex on it (in India the free ChatGPT Go plan works too), or paste an API key.

Run it with Docker Compose

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.

Put it on a server

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

Run it from source

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.

Ideas to try

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.

How it fits together

  1. The engine is a plug. Every engine speaks one event format through its adapter, so you can swap engines and keep your threads, files and memory.
  2. Every run is an event log. Postgres is the source of truth: runs survive backend restarts, replay exactly and stay inspectable afterwards (events and streaming).
  3. Credentials never enter the sandbox. The agent's computer is isolated. Every integration call crosses the trusted gateway as a typed tool, and the keys stay on your control plane.
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.

Connect an agent

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.

UseAgent and Devin

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.

Contributing

Pull requests are welcome. Comment on an issue to take it, then open a pull request.

People who have contributed to UseAgent

License

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.

useagent (useagenthq/useagent)

正在搜索数据库…

这是什么?useAgent 是 Devin 的开源替代品:它为 Claude Code、Codex、OpenCode 和 Pi 这类编程 agent 提供一个带终端、浏览器和团队工具的共享云工作区,让它们能做调研、改代码、写文档这类实际工作。
这是装好就能用的应用,还是我需要自己部署的平台?它是一个自托管平台,由前端网页应用、后端控制平面和可插拔的沙箱运行时(Daytona 或 CubeSandbox)组成,沙箱运行时真正运行 agent 的隔离工作站;你把整套东西部署在自己的 Linux 主机或云账户上。
怎么让它跑起来?克隆仓库,然后用 bun 和一个启用了 pgvector 扩展的 Postgres 16+ 数据库来运行它;如果还没有现成的 Postgres,可以用一个容器把它启动起来,正式部署前可用 bun run typecheck 检查每一个包。
它支持哪些编程 agent?需要它们的账户吗?它通过一个共享的事件契约支持 Claude Code、Codex、OpenCode 和 Pi;每一个都用提供商账户或 API 密钥来连接,可用的模型、登录方式和工具取决于该引擎的适配器以及你的自托管配置。
它现在稳定性如何?它被标注为 alpha 软件:要预期各种粗糙之处以及版本间破坏 API 和 schema 的变更,不过只要你固定某个发布标签,它已经能承担真实的日常工作负载。
我的凭据和 API 密钥会去哪里?它们绝不会进入 agent 的沙箱;每一次集成调用都作为类型化的工具经过一个可信网关,密钥只保存在你自己的控制平面上。
agent 在工作区里实际能产出什么?文档、电子表格、演示文稿、PDF、图片和视频,这些被称为 workpiece,支持带修订记录的编辑和原生格式导出。
可以不通过网页应用、直接从 Slack 派任务吗?可以,你在 Slack 里提及某个 agent、发送附件,就能在会话线程里收到完成的产物;此外还有网页应用、REST API 和定时计划这几个入口。
skills 和 playbooks 是什么?skill 是你从 GitHub 导入并固定到某个任务上的流程;它们带版本管理,每次运行都会准确记录所用的版本,让团队能复用已经行之有效的做法。
它能连接哪些第三方工具?通过 OAuth 连接器可以连接 Gmail、Linear、Notion 和 HubSpot,由一个 broker 处理认证并在服务端封存令牌,agent 永远看不到原始凭据。
有哪些类似的项目?open-swe, moyai, ruflo, suparagent, Agentlas-OS, qm, claude-code, nocobase
大小
45.6 MB
星标
393
时长
3个月
提交 · 90 天