An open-source, faster Devin alternative
TypeScript
Rebrand from opensandbox.ai to opencomputer.dev and remove Fly deploy configs
motatoesd819071a26e6
diff --git a/deploy/ec2/README.md b/deploy/ec2/README.mdindex ed9d2060..4146ad24 100644--- a/deploy/ec2/README.md+++ b/deploy/ec2/README.md@@ -7,7 +7,7 @@| Podman | 5.8.0 | Rootful, used for sandbox containers || CRIU | 4.2 | Checkpoint/restore for hibernation || crun | 1.26 | OCI runtime with +CRIU support |-| Caddy | latest | Wildcard TLS for `*.workers.opensandbox.ai` (DNS-01 via Route53) |+| Caddy | latest | Wildcard TLS for `*.workers.opencomputer.dev` (DNS-01 via Route53) || Redis | 7.0.15 | Local, used for sandbox state/routing || Go worker | custom | `/usr/local/bin/opensandbox-worker` |@@ -17,7 +17,7 @@Internet|v-Caddy (port 443) -- wildcard TLS for *.workers.opensandbox.ai (DNS-01 via Route53)+Caddy (port 443) -- wildcard TLS for *.workers.opencomputer.dev (DNS-01 via Route53)|vopensandbox-worker (port 8080) -- HTTP API + gRPC (9090)diff --git a/deploy/ec2/setup-instance.sh b/deploy/ec2/setup-instance.shindex 0959ffcf..789e8bc3 100755--- a/deploy/ec2/setup-instance.sh+++ b/deploy/ec2/setup-instance.sh@@ -322,13 +322,12 @@ echo " Installed:"echo " - Firecracker $(firecracker --version | head -1)"echo " - Podman $(podman --version)"echo " - Redis"-echo " - Caddy (with Route53 DNS)"echo ""echo " Remaining steps:"echo " 1. Deploy worker + agent binaries: ./deploy/ec2/deploy-worker.sh"echo " 2. Download kernel: scp bin/vmlinux-arm64 to /data/firecracker/"echo " 3. Build base rootfs images: sudo ./scripts/build-rootfs.sh all"-echo " 4. Copy Caddyfile to /etc/caddy/Caddyfile"+echo " 4. Copy worker.env.example to /etc/opensandbox/worker.env and fill in secrets"echo " 5. Start services: sudo systemctl start opensandbox-worker"-echo " 6. Set up wildcard DNS: *.workers.opensandbox.ai -> this instance IP"+echo " 6. Set up wildcard DNS: *.workers.opencomputer.dev -> this instance IP"echo "============================================"diff --git a/deploy/ec2/worker.env.example b/deploy/ec2/worker.env.exampleindex 51e5c954..71c38078 100644--- a/deploy/ec2/worker.env.example+++ b/deploy/ec2/worker.env.example@@ -10,7 +10,7 @@ OPENSANDBOX_HTTP_ADDR=http://<WORKER_PUBLIC_IP>:8080OPENSANDBOX_GRPC_ADVERTISE=<WORKER_PUBLIC_IP>:9090# Domain for sandbox routing (wildcard DNS must point to this instance)-OPENSANDBOX_SANDBOX_DOMAIN=workers.opensandbox.ai+OPENSANDBOX_SANDBOX_DOMAIN=workers.opencomputer.dev# --- Secrets Manager (recommended) ---# Store all secrets in a single Secrets Manager secret as a JSON object.diff --git a/docs/quickstart.mdx b/docs/quickstart.mdxindex 3c9fb96b..5a1bf0a9 100644--- a/docs/quickstart.mdx+++ b/docs/quickstart.mdx@@ -5,7 +5,7 @@ description: "Get up and running with OpenSandbox in 5 minutes"## 1. Get Your API Key-Sign up at [app.opensandbox.ai](https://app.opensandbox.ai) and grab your API key from the dashboard.+Sign up at [app.opencomputer.dev](https://app.opencomputer.dev) and grab your API key from the dashboard.## 2. Install the SDKdiff --git a/docs/sdks/python/sandbox.mdx b/docs/sdks/python/sandbox.mdxindex 55a0b542..1fede4cd 100644--- a/docs/sdks/python/sandbox.mdx+++ b/docs/sdks/python/sandbox.mdx@@ -32,7 +32,7 @@ Creates a new sandbox and returns a connected `Sandbox` instance.API key. Falls back to `OPENSANDBOX_API_KEY` env var.</ParamField><ParamField body="api_url" type="str | None" default="None">- API base URL. Falls back to `OPENSANDBOX_API_URL` env var, then `https://app.opensandbox.ai`.+ API base URL. Falls back to `OPENSANDBOX_API_URL` env var, then `https://app.opencomputer.dev`.</ParamField><ParamField body="envs" type="dict[str, str] | None" default="None">Environment variables injected into the sandbox.@@ -82,7 +82,7 @@ Connects to a running sandbox by ID.| Property | Type | Description || --- | --- | --- || `sandbox_id` | `str` | Unique identifier for the sandbox |-| `domain` | `str` | Public domain for the sandbox (e.g. `abc123.workers.opensandbox.ai`). HTTP traffic to this domain is routed directly into the sandbox. |+| `domain` | `str` | Public domain for the sandbox (e.g. `abc123.workers.opencomputer.dev`). HTTP traffic to this domain is routed directly into the sandbox. || `status` | `str` | Current status: `"running"`, `"stopped"`, or `"error"` || `template` | `str` | Template used to create the sandbox || `files` | `Filesystem` | [Filesystem](/sdks/python/filesystem) operations |diff --git a/docs/sdks/typescript/sandbox.mdx b/docs/sdks/typescript/sandbox.mdxindex c9b9bef8..55d1bb4d 100644--- a/docs/sdks/typescript/sandbox.mdx+++ b/docs/sdks/typescript/sandbox.mdx@@ -34,7 +34,7 @@ Creates a new sandbox and returns a connected `Sandbox` instance.API key. Falls back to `OPENSANDBOX_API_KEY` env var.</ParamField><ParamField body="apiUrl" type="string" optional>- API base URL. Falls back to `OPENSANDBOX_API_URL` env var, then `https://app.opensandbox.ai`.+ API base URL. Falls back to `OPENSANDBOX_API_URL` env var, then `https://app.opencomputer.dev`.</ParamField><ParamField body="envs" type="Record<string, string>" optional>Environment variables injected into the sandbox.@@ -81,7 +81,7 @@ Connects to a running sandbox by ID.| Property | Type | Description || --- | --- | --- || `sandboxId` | `string` | Unique identifier for the sandbox |-| `domain` | `string` | Public domain for the sandbox (e.g. `abc123.workers.opensandbox.ai`). HTTP traffic to this domain is routed directly into the sandbox. |+| `domain` | `string` | Public domain for the sandbox (e.g. `abc123.workers.opencomputer.dev`). HTTP traffic to this domain is routed directly into the sandbox. || `status` | `string` | Current status: `"running"`, `"stopped"`, or `"error"` || `files` | `Filesystem` | [Filesystem](/sdks/typescript/filesystem) operations || `commands` | `Commands` | [Command](/sdks/typescript/commands) execution |diff --git a/examples/test.py b/examples/test.pyindex 89d403c1..936e7118 100644--- a/examples/test.py+++ b/examples/test.py@@ -11,7 +11,7 @@ async def main():async with await Sandbox.create(template="base",timeout=3600,- api_url="https://app.opensandbox.ai",+ api_url="https://app.opencomputer.dev",) as sb:print(f"Sandbox created: {sb.sandbox_id}")diff --git a/examples/test.ts b/examples/test.tsindex 2c5ec16a..da68c6ee 100644--- a/examples/test.ts+++ b/examples/test.ts@@ -5,7 +5,7 @@ async function main() {const sb = await Sandbox.create({template: "base",timeout: 3600,- apiUrl: "https://app.opensandbox.ai",+ apiUrl: "https://app.opencomputer.dev",});console.log(`Sandbox created: ${sb.sandboxId}`);diff --git a/index.html b/index.htmlindex 432419af..1f523413 100644--- a/index.html+++ b/index.html@@ -397,9 +397,9 @@<nav><a href="#" class="nav-logo">Open Sandbox</a><div class="nav-links">- <a href="https://docs.opensandbox.ai">Docs</a>+ <a href="https://docs.opencomputer.dev">Docs</a><a href="https://github.com/diggerhq/opensandbox">GitHub</a>- <a href="https://app.opensandbox.ai" class="nav-btn">Try now</a>+ <a href="https://app.opencomputer.dev" class="nav-btn">Try now</a></div></nav>@@ -408,8 +408,8 @@<h1>Serverless sandbox that <em>never</em> times out</h1><p class="hero-sub">Self-hostable execution environments with built-in hibernation, secret management, and local-first development.</p><div class="hero-actions">- <a href="https://app.opensandbox.ai" class="btn btn-dark">Try now</a>- <a href="https://docs.opensandbox.ai" class="btn btn-outline">Documentation</a>+ <a href="https://app.opencomputer.dev" class="btn btn-dark">Try now</a>+ <a href="https://docs.opencomputer.dev" class="btn btn-outline">Documentation</a></div></section>@@ -470,12 +470,12 @@<p>One command to run your own sandbox.</p><div class="cta-code"><span>$</span> docker run -d ghcr.io/opensandbox/sandbox</div><div>- <a href="https://app.opensandbox.ai" class="btn btn-dark">Try now</a>+ <a href="https://app.opencomputer.dev" class="btn btn-dark">Try now</a></div></section><footer>- <p>MIT License · <a href="https://github.com/diggerhq/opensandbox">GitHub</a> · <a href="https://docs.opensandbox.ai">Documentation</a></p>+ <p>MIT License · <a href="https://github.com/diggerhq/opensandbox">GitHub</a> · <a href="https://docs.opencomputer.dev">Documentation</a></p></footer></body>diff --git a/sdks/python/README.md b/sdks/python/README.mdindex b120fcc5..cc2b1acf 100644--- a/sdks/python/README.md+++ b/sdks/python/README.md@@ -36,7 +36,7 @@ asyncio.run(main())| Parameter | Env Variable | Default ||------------|------------------------|-------------------------|-| `api_url` | `OPENSANDBOX_API_URL` | `https://app.opensandbox.ai` |+| `api_url` | `OPENSANDBOX_API_URL` | `https://app.opencomputer.dev` || `api_key` | `OPENSANDBOX_API_KEY` | (none) |## Licensediff --git a/sdks/python/opensandbox/sandbox.py b/sdks/python/opensandbox/sandbox.pyindex 9414a8f4..3fa37b2d 100644--- a/sdks/python/opensandbox/sandbox.py+++ b/sdks/python/opensandbox/sandbox.py@@ -39,7 +39,7 @@ class Sandbox:metadata: dict[str, str] | None = None,) -> Sandbox:"""Create a new sandbox instance."""- url = api_url or os.environ.get("OPENSANDBOX_API_URL", "https://app.opensandbox.ai")+ url = api_url or os.environ.get("OPENSANDBOX_API_URL", "https://app.opencomputer.dev")url = url.rstrip("/")key = api_key or os.environ.get("OPENSANDBOX_API_KEY", "")@@ -98,7 +98,7 @@ class Sandbox:api_url: str | None = None,) -> Sandbox:"""Connect to an existing sandbox."""- url = api_url or os.environ.get("OPENSANDBOX_API_URL", "https://app.opensandbox.ai")+ url = api_url or os.environ.get("OPENSANDBOX_API_URL", "https://app.opencomputer.dev")url = url.rstrip("/")key = api_key or os.environ.get("OPENSANDBOX_API_KEY", "")diff --git a/sdks/typescript/README.md b/sdks/typescript/README.mdindex 5722a3b4..4205744f 100644--- a/sdks/typescript/README.md+++ b/sdks/typescript/README.md@@ -31,7 +31,7 @@ await sandbox.kill();| Option | Env Variable | Default ||-----------|------------------------|--------------------------|-| `apiUrl` | `OPENSANDBOX_API_URL` | `https://app.opensandbox.ai` |+| `apiUrl` | `OPENSANDBOX_API_URL` | `https://app.opencomputer.dev` || `apiKey` | `OPENSANDBOX_API_KEY` | (none) |## Licensediff --git a/sdks/typescript/examples/test-domain-tls.ts b/sdks/typescript/examples/test-domain-tls.tsindex 0c0dd0ba..81c57716 100644--- a/sdks/typescript/examples/test-domain-tls.ts+++ b/sdks/typescript/examples/test-domain-tls.ts@@ -95,10 +95,10 @@ async function main() {const domains = sandboxes.map(s => s.domain);const uniqueDomains = new Set(domains);check("All 3 sandboxes got unique domains", uniqueDomains.size === 3);- check("All domains end with .workers.opensandbox.ai",- domains.every(d => d.endsWith(".workers.opensandbox.ai")));+ check("All domains end with .workers.opencomputer.dev",+ domains.every(d => d.endsWith(".workers.opencomputer.dev")));check("All domains are subdomains (single level)",- domains.every(d => d.split(".workers.opensandbox.ai")[0].indexOf(".") === -1));+ domains.every(d => d.split(".workers.opencomputer.dev")[0].indexOf(".") === -1));console.log();// ── Test 2: TLS certificate validation ──────────────────────────diff --git a/sdks/typescript/src/sandbox.ts b/sdks/typescript/src/sandbox.tsindex 984bc247..4dffe2f7 100644--- a/sdks/typescript/src/sandbox.ts+++ b/sdks/typescript/src/sandbox.ts@@ -64,7 +64,7 @@ export class Sandbox {}static async create(opts: SandboxOpts = {}): Promise<Sandbox> {- const apiUrl = resolveApiUrl(opts.apiUrl ?? process.env.OPENSANDBOX_API_URL ?? "https://app.opensandbox.ai");+ const apiUrl = resolveApiUrl(opts.apiUrl ?? process.env.OPENSANDBOX_API_URL ?? "https://app.opencomputer.dev");const apiKey = opts.apiKey ?? process.env.OPENSANDBOX_API_KEY ?? "";const body: Record<string, unknown> = {@@ -95,7 +95,7 @@ export class Sandbox {}static async connect(sandboxId: string, opts: Pick<SandboxOpts, "apiKey" | "apiUrl"> = {}): Promise<Sandbox> {- const apiUrl = resolveApiUrl(opts.apiUrl ?? process.env.OPENSANDBOX_API_URL ?? "https://app.opensandbox.ai");+ const apiUrl = resolveApiUrl(opts.apiUrl ?? process.env.OPENSANDBOX_API_URL ?? "https://app.opencomputer.dev");const apiKey = opts.apiKey ?? process.env.OPENSANDBOX_API_KEY ?? "";const resp = await fetch(`${apiUrl}/sandboxes/${sandboxId}`, {