rivet-dev/agentos
소개
작고 빠르며 Linux와 호환되는 샌드박스입니다. WebAssembly 기반입니다.
AI 및 머신러닝측정된 스타 증가
- in 24h
- +2
- in 7 days
- +21
- in 15 days
- +33
- in 1 month
- +93
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalagentOS
agentOS is a lightweight Linux-compatible VM runtime for isolated filesystem, process, terminal, language, and networking workloads.
It ships in two forms:
- a fixed Rust Rivet actor named
agentOS, accessed through a generated TypeScript contract; @rivet-dev/agentos, the embedded TypeScript API for trusted Node.js applications.
The actor is a thin lifecycle and transport wrapper around Core. It does not contain a configurable TypeScript actor implementation.
Hosted actor
npm install @rivet-dev/agentos rivetkit
import { createAgentOsClient } from "@rivet-dev/agentos";
const client = createAgentOsClient();
const vm = client.agentOS.getOrCreate(["workspaces", "demo"], {
createWithInput: {
config: {
filesystem: {
root: { type: "durable", namespace: "root" },
},
},
},
});
await vm.filesystem.writeFile({
path: "/home/agentos/hello.txt",
content: "hello\n",
});
const result = await vm.process.run({
command: "cat",
args: ["/home/agentos/hello.txt"],
options: { env: {}, captureStdio: true },
});
console.log(result.stdout);
Creation config is used only when the actor is first created. Read the complete
normalized config with config.get; replace it with config.set. Replacement
is whole-object normalization, so omitted properties return to their defaults.
Hosted actions are grouped under:
configandvmfilesystemprocessandterminalcontexts,javascript,typescript, andpythonnetwork.fetch,network.fetchStream,network.connect, andnetwork.previewsoftwarecron
Embedded Core also exposes configurePermissions (Rust: configure_permissions)
for trusted owners to replace a VM permission policy; see the permissions guide.
The hosted actor accepts only serializable, whitelisted filesystem descriptors. It never accepts host mounts, host paths, JavaScript VFS objects, callbacks, or host functions.
Software
Software is an immutable v2 .aospkg artifact. Hosted actors install HTTPS
URLs:
await vm.software.install({
source: {
url: "https://packages.example.com/ripgrep.aospkg",
digest: "sha256:<64 lowercase hex characters>",
},
});
The process-wide cache is content-addressed by digest. Release tooling uploads the catalog to S3-compatible object storage and emits a manifest of relative artifact URLs, digests, and sizes. Runtime software is not resolved from npm.
Embedded Core
npm install @rivet-dev/agentos
import { AgentOs } from "@rivet-dev/agentos";
const vm = await AgentOs.create();
try {
await vm.filesystem.writeFile("/tmp/hello.txt", "hello\n");
const result = await vm.process.exec("cat /tmp/hello.txt", {
output: { capture: "all" },
});
console.log(result.stdout);
} finally {
await vm.dispose();
}
Embedded Core additionally supports trusted local .aospkg paths, host-backed
mount plugins, external VM providers, and host functions. Those capabilities stay
inside the embedding process and are intentionally absent from the hosted actor.
Standalone WASM commands use V8 by default. Embedded callers can select
wasmBackend: "wasmtime" when their sidecar includes the Wasmtime executor;
JavaScript continues to use V8. See the embedded API.
Development
pnpm install --frozen-lockfile
pnpm build
pnpm check-types
cargo check --workspace
Rebuild the complete command catalog and stage the local object-store release layout with:
just tools-rebuild
just software-artifacts-dry-run
Public documentation is published from the docs bundle.
관련 프로젝트 살펴보기
불러오는 중…