← 开源
diggerhq

opencomputer

The easiest way to build and deploy an agent

InfrastructureDeploy & ServeTypeScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
566
Star
66
Fork
+5
本周
12
贡献者
创建于 2025-12-09 · 更新于 2026-10-16 · 今日第 16902 名
主要开发者
README

OpenComputer

Build, steer, and deploy serverless agents as code. An OpenComputer project contains one or more agents that run in the cloud.

npx @opencomputer/cli init my-agent
cd my-agent
npm install
npx --package @opencomputer/cli opencomputer login

Watch agent code and deploy changes to Development (Cloud):

npm run deploy -- --watch

Documentation · Quickstart · Dashboard

Project structure

npx @opencomputer/cli init creates a hello-world agent project:

my-agent/
├── opencomputer/
│   ├── project.ts
│   └── agents/
│       └── hello-world/
│           └── agent.ts
└── package.json

The opencomputer/ tree contains the cloud agent definitions and is designed to grow to multiple agents in one project. A browser application can live in the same repository, but it has its own development and deployment lifecycle.

Develop and deploy

On the first npm run deploy -- --watch, choose an existing project from your account or create a new one. That binding is reused on later runs. The CLI uses https://app.opencomputer.dev by default; pass --api-url or set OPENCOMPUTER_API_URL only when intentionally targeting another service.

Edit the agent function, tools, connections, and routing while watched cloud deployment is running. Test it from the dashboard or CLI.

When the project is ready, publish an immutable deployment:

npm run deploy -- --alias production

Deployments are versioned. The dashboard project view exposes the debug playground, deployments, sessions, schedules, webhooks, memory, database, secrets, and connections while keeping infrastructure details behind the OpenComputer API.

CLI

The TypeScript opencomputer CLI is focused on managed agents and is separate from the legacy Go oc CLI. Common commands are:

opencomputer whoami
opencomputer init my-agent
opencomputer agents
opencomputer session "Say hello"
opencomputer deploy --watch
opencomputer deploy --alias production
opencomputer run hello-world "Say hello"
排名相邻
同类项目