|
| 1 | +# computeragent |
| 2 | + |
| 3 | +> Run any AI agent, anywhere, with any loop, and any memory backend. |
| 4 | +
|
| 5 | +The umbrella entry point for [ComputerAgent](https://github.com/open-gitagent/ComputerAgent). One install, one import, a running agent. |
| 6 | + |
| 7 | +```bash |
| 8 | +npm install computeragent |
| 9 | +``` |
| 10 | + |
| 11 | +```ts |
| 12 | +import { runTask, LocalSubstrate } from "computeragent"; |
| 13 | + |
| 14 | +const result = await runTask({ |
| 15 | + source: { |
| 16 | + type: "inline", |
| 17 | + manifest: { name: "hello", version: "0.1.0" }, |
| 18 | + files: { |
| 19 | + "agent.yaml": [ |
| 20 | + 'spec_version: "0.1.0"', |
| 21 | + "name: hello", |
| 22 | + "version: 0.1.0", |
| 23 | + "model:", |
| 24 | + " preferred: claude-haiku-4-5-20251001", |
| 25 | + ].join("\n"), |
| 26 | + "SOUL.md": "Respond in one short sentence.", |
| 27 | + }, |
| 28 | + }, |
| 29 | + harness: "claude-agent-sdk", |
| 30 | + envs: { ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY! }, |
| 31 | + runtime: new LocalSubstrate(), |
| 32 | + message: "Say hi.", |
| 33 | +}); |
| 34 | +``` |
| 35 | + |
| 36 | +## What's in the box |
| 37 | + |
| 38 | +This package re-exports: |
| 39 | + |
| 40 | +- **`ComputerAgent`**, **`ChatHandle`**, **`runTask`** — the user-facing SDK |
| 41 | +- **`LocalSubstrate`** — the default (subprocess) runtime |
| 42 | +- All the SDK's TypeScript types |
| 43 | + |
| 44 | +That's enough for a complete agent in one import. For other substrates, session stores, or engines, install the scoped packages alongside: |
| 45 | + |
| 46 | +```bash |
| 47 | +npm install @computeragent/runtime-e2b # cloud sandbox |
| 48 | +npm install @computeragent/runtime-vzvm # Apple VZ via Tart |
| 49 | +npm install @computeragent/session-store-mongo # MongoDB-backed memory |
| 50 | +npm install @computeragent/session-store-sqlite # SQLite-backed memory |
| 51 | +npm install @computeragent/engine-gitagent # gitclaw engine |
| 52 | +``` |
| 53 | + |
| 54 | +## Why an umbrella package |
| 55 | + |
| 56 | +`computeragent` is the one-line entry point for the common case. The 13 scoped `@computeragent/*` packages stay independently publishable for power users who want minimal deps (a custom `harness-server` build with no SDK, or just the protocol types for a non-JS client). |
| 57 | + |
| 58 | +This is the same shape as `next` (the umbrella) + `@next/*` (the parts) — install the one you need, ignore the rest. |
| 59 | + |
| 60 | +## See also |
| 61 | + |
| 62 | +- **Repo / docs:** https://github.com/open-gitagent/ComputerAgent |
| 63 | +- **Scaffold a project in 60 seconds:** `npx create-computeragent my-agent` |
| 64 | +- **Conformance suite for plug-in authors:** `@computeragent/testing` |
| 65 | + |
| 66 | +## License |
| 67 | + |
| 68 | +[MIT](../../LICENSE) |
0 commit comments