Skip to content

An open-source, faster Devin alternative

TypeScript

remove agents api from docs (#103)

Mohamed Habib64998b74086a
diff --git a/docs/how-it-works.mdx b/docs/how-it-works.mdx
index e2081e74..3a1a49a1 100644
--- a/docs/how-it-works.mdx
+++ b/docs/how-it-works.mdx
@@ -3,7 +3,7 @@ title: "How It Works"
description: "Architecture and key technical decisions"
---
-Your code talks to a **control plane** API, which provisions a virtual machine on a worker node. Commands, file operations, and agent sessions run inside that VM — events and I/O stream back over WebSocket. The control plane transparently proxies data-plane requests to the correct worker.
+Your code talks to a **control plane** API, which provisions a virtual machine on a worker node. Commands and file operations run inside that VM — I/O streams back over WebSocket. The control plane transparently proxies data-plane requests to the correct worker.
SDK users only need an API key. The SDK handles routing automatically.
@@ -12,7 +12,7 @@ SDK users only need an API key. The SDK handles routing automatically.
Your code calls the control plane (`X-API-Key` auth). A VM boots from a golden snapshot in ~300ms.
</Step>
<Step title="Operate">
- Run commands, read/write files, start agent sessions. All execution happens inside the VM. The control plane routes requests to the correct worker automatically.
+ Run commands, read/write files — all execution happens inside the VM. The control plane routes requests to the correct worker automatically.
</Step>
</Steps>
@@ -79,20 +79,6 @@ oc preview create sb-abc --port 3000
See [Preview URLs](/sandboxes/preview-urls) for custom domains and auth.
-## Agent Sessions
-
-An agent session runs the [Claude Agent SDK](https://docs.anthropic.com/en/docs/agents/claude-code-sdk-overview) inside the VM as a regular process. The SDK gives Claude bash and file tools, then manages the think → act → observe loop. Events stream to your code over WebSocket as JSON lines.
-
-```typescript
-const session = await sandbox.agent.start({
- prompt: "Set up a Next.js app with Tailwind CSS",
- onEvent: (event) => console.log(event.type),
-});
-await session.done;
-```
-
-See [Agents](/agents/overview) for the full guide.
-
<Tip>
API details: [HTTP API Reference](/reference/api#base-url--authentication).
</Tip>
diff --git a/docs/introduction.mdx b/docs/introduction.mdx
index 6e141075..6554d86a 100644
--- a/docs/introduction.mdx
+++ b/docs/introduction.mdx
@@ -1,13 +1,13 @@
---
title: "Introduction"
-description: "Cloud sandboxes for AI agents"
+description: "Cloud sandboxes for AI apps"
---
-OpenComputer gives your AI agents a full Linux VM in the cloud. Each sandbox is an isolated virtual machine with its own filesystem, network, and process space — persistent, long-running, and capable of hibernating when idle. Run Claude inside a sandbox and it can write files, install packages, run commands, and build complete projects autonomously.
+OpenComputer gives you a full Linux VM in the cloud. Each sandbox is an isolated virtual machine with its own filesystem, network, and process space — persistent, long-running, and capable of hibernating when idle. Write files, install packages, run commands, and build complete projects inside secure, isolated environments.
<CardGroup cols={2}>
- <Card title="Claude Agent SDK built in" icon="robot">
- Claude runs inside the VM with full filesystem and shell access. Think → act → observe loop, streaming events back to your code.
+ <Card title="Full Linux VM" icon="server">
+ Not a container. Real VM with its own kernel, memory, and disk. Hardware-level isolation via KVM.
</Card>
<Card title="Long-running" icon="clock">
Hours or days, not minutes. Install packages, build projects, run test suites, iterate — no cold starts between steps.
@@ -15,8 +15,8 @@ OpenComputer gives your AI agents a full Linux VM in the cloud. Each sandbox is
<Card title="Checkpoint & fork" icon="code-branch">
Named snapshots you can fork from. Try five approaches in parallel from the same starting point — like git branches for VMs.
</Card>
- <Card title="Full Linux VM" icon="server">
- Not a container. Real VM with its own kernel, memory, and disk. Hardware-level isolation via KVM.
+ <Card title="Elastic compute" icon="gauge-high">
+ Scale memory and CPU at runtime. Request more resources for heavy tasks and release them after.
</Card>
</CardGroup>
@@ -53,29 +53,22 @@ export OPENCOMPUTER_API_KEY=your-api-key
import { Sandbox } from "@opencomputer/sdk";
const sandbox = await Sandbox.create();
-const session = await sandbox.agent.start({
- prompt: "Create a hello world Express app and test it",
- onEvent: (event) => {
- if (event.type === "assistant") console.log(event.message);
- },
-});
-
-await session.done;
+const result = await sandbox.commands.run("echo 'Hello World from OpenSandbox!'");
+console.log(result.stdout);
await sandbox.kill();
```
```python Python
+import asyncio
from opencomputer import Sandbox
-sandbox = await Sandbox.create()
-session = await sandbox.agent.start(
- prompt="Create a hello world Express app and test it",
- on_event=lambda event: print(event.data.get("message", ""))
- if event.type == "assistant" else None,
-)
+async def main():
+ sandbox = await Sandbox.create()
+ result = await sandbox.commands.run("echo 'Hello World from OpenSandbox!'")
+ print(result.stdout)
+ await sandbox.kill()
-await session.wait()
-await sandbox.kill()
+asyncio.run(main())
```
</CodeGroup>
@@ -84,15 +77,15 @@ await sandbox.kill()
<CardGroup cols={2}>
<Card title="Quickstart" icon="rocket" href="/quickstart">
- Working agent in 2 minutes
+ Create your first sandbox in 2 minutes
</Card>
<Card title="How It Works" icon="microchip" href="/how-it-works">
Architecture: VMs, hibernation, checkpoints
</Card>
- <Card title="Agents" icon="robot" href="/agents/overview">
- Run Claude inside sandboxes
- </Card>
<Card title="Sandboxes" icon="box" href="/sandboxes/overview">
The compute primitive
</Card>
+ <Card title="Working with Files" icon="file" href="/sandboxes/working-with-files">
+ Upload, download, and manage files
+ </Card>
</CardGroup>
diff --git a/docs/mint.json b/docs/mint.json
index 1259f547..47b62acc 100644
--- a/docs/mint.json
+++ b/docs/mint.json
@@ -57,15 +57,6 @@
"group": "Getting Started",
"pages": ["introduction", "quickstart", "how-it-works"]
},
- {
- "group": "Agents",
- "pages": [
- "agents/overview",
- "agents/events",
- "agents/tools",
- "agents/multi-turn"
- ]
- },
{
"group": "Sandboxes",
"pages": [
@@ -114,7 +105,6 @@
"reference/typescript-sdk/overview",
"reference/typescript-sdk/sandbox",
"reference/typescript-sdk/exec",
- "reference/typescript-sdk/agent",
"reference/typescript-sdk/filesystem",
"reference/typescript-sdk/pty",
"reference/typescript-sdk/image",
@@ -128,7 +118,6 @@
"reference/python-sdk/overview",
"reference/python-sdk/sandbox",
"reference/python-sdk/exec",
- "reference/python-sdk/agent",
"reference/python-sdk/filesystem",
"reference/python-sdk/pty",
"reference/python-sdk/image",
@@ -174,16 +163,6 @@
"api-reference/exec/kill-session"
]
},
- {
- "group": "Agent Sessions",
- "pages": [
- "api-reference/agent/create",
- "api-reference/agent/list",
- "api-reference/agent/prompt",
- "api-reference/agent/interrupt",
- "api-reference/agent/kill"
- ]
- },
{
"group": "Filesystem",
"pages": [
diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx
index 48020fa3..d08f2bed 100644
--- a/docs/quickstart.mdx
+++ b/docs/quickstart.mdx
@@ -1,6 +1,6 @@
---
title: "Quickstart"
-description: "Working agent in 2 minutes"
+description: "Create your first sandbox in 2 minutes"
---
## Prerequisites
@@ -13,7 +13,7 @@ export OPENCOMPUTER_API_KEY=your-api-key
<Tip>Grab your API key from [app.opencomputer.dev](https://app.opencomputer.dev)</Tip>
-## Run an Agent
+## Create Your First Sandbox
<CodeGroup>
@@ -22,24 +22,9 @@ import { Sandbox } from "@opencomputer/sdk";
const sandbox = await Sandbox.create();
-const session = await sandbox.agent.start({
- prompt: "Create a Next.js app with a landing page that says 'Hello from OpenComputer'. Run the dev server on port 3000.",
- onEvent: (event) => {
- if (event.type === "assistant") {
- process.stdout.write(String(event.message ?? ""));
- }
- if (event.type === "result") {
- console.log("\n\nResult:", JSON.stringify(event, null, 2));
- }
- },
-});
-
-const exitCode = await session.done;
-console.log("Agent finished with exit code:", exitCode);
-
-// Expose the dev server
-const preview = await sandbox.createPreviewURL({ port: 3000 });
-console.log("Preview:", `https://${preview.hostname}`);
+// Run a command inside the sandbox
+const result = await sandbox.commands.run("echo 'Hello World from OpenSandbox!'");
+console.log(result.stdout);
await sandbox.kill();
```
@@ -51,20 +36,9 @@ from opencomputer import Sandbox
async def main():
sandbox = await Sandbox.create()
- session = await sandbox.agent.start(
- prompt="Create a Next.js app with a landing page that says 'Hello from OpenComputer'. Run the dev server on port 3000.",
- )
-
- events = await session.collect_events()
- for event in events:
- if event.type == "assistant":
- print(event.data.get("message", ""), end="")
- if event.type == "result":
- print("\n\nResult:", event.data)
-
- # Expose the dev server
- preview = await sandbox.create_preview_url(port=3000)
- print("Preview:", f"https://{preview['hostname']}")
+ # Run a command inside the sandbox
+ result = await sandbox.commands.run("echo 'Hello World from OpenSandbox!'")
+ print(result.stdout)
await sandbox.kill()
@@ -73,23 +47,29 @@ asyncio.run(main())
</CodeGroup>
-## What Just Happened
+Running this will print:
+
+```
+Hello World from OpenSandbox!
+```
-You created a cloud VM, ran Claude inside it with bash and file tools, and Claude autonomously scaffolded a Next.js app, installed dependencies, and started the dev server. Events streamed back to your code in real-time over WebSocket. The preview URL exposes the running dev server to the internet.
+<Note>
+Your sandboxes stay alive as long as you need them. They don't shut down after a command finishes — you can keep running commands, installing packages, and building projects for hours or days. Sandboxes only stop when you explicitly kill them or when the idle timeout expires (default 5 minutes, configurable).
+</Note>
## Next Steps
<CardGroup cols={2}>
- <Card title="How It Works" icon="microchip" href="/how-it-works">
- Architecture and technical decisions
+ <Card title="Elastic Compute" icon="gauge-high" href="/sandboxes/elasticity">
+ Scale memory and CPU at runtime based on workload
</Card>
- <Card title="Agents" icon="robot" href="/agents/overview">
- Events, tools, multi-turn conversations
+ <Card title="Upload & Download Files" icon="file-arrow-up" href="/sandboxes/working-with-files">
+ Read, write, and transfer files to and from sandboxes
</Card>
- <Card title="Sandboxes" icon="box" href="/sandboxes/overview">
- Lifecycle, running commands, files
+ <Card title="Custom Sandboxes" icon="palette" href="/sandboxes/templates">
+ Build custom environments with your own packages and tools
</Card>
<Card title="Checkpoints" icon="code-branch" href="/sandboxes/checkpoints">
- Snapshot and fork VMs
+ Snapshot and fork VMs for parallel experimentation
</Card>
</CardGroup>