Skip to Content
ContainersTestBase Containers (Deprecated)

⚠️ Deprecated: TestBase Containers

This documentation section is deprecated and no longer maintained.

What changed?

Testbase has simplified its architecture:

Old (deprecated):

  • Cloud Run containers with complex lifecycle management
  • Separate container provisioning and management
  • Container-specific APIs and SDKs

New (current):

  • Simple GCE VM with Codex SDK execution
  • CloudRuntime for seamless local ↔ cloud switching
  • Unified agent interface

What to use instead

For cloud execution

Use CloudRuntime with the Agents SDK:

import { Agent, run, CloudRuntime } from 'computer-agents'; const runtime = new CloudRuntime({ apiKey: process.env.TESTBASE_API_KEY }); const agent = new Agent({ agentType: 'computer', runtime, workspace: './project' }); const result = await run(agent, 'Create app.py');

See Cloud Platform for complete documentation.

For local execution

Use LocalRuntime with the Agents SDK:

import { Agent, run, LocalRuntime } from 'computer-agents'; const runtime = new LocalRuntime(); const agent = new Agent({ agentType: 'computer', runtime, workspace: './project' }); const result = await run(agent, 'Create app.py');

See Agents SDK for complete documentation.

Migration guide

If you were using container-specific APIs:

Old (Containers)New (CloudRuntime)
CloudApiClient.createContainer()Just use CloudRuntime()
container.execute()run(agent, task)
container.listFiles()Files synced automatically
container.uploadFile()Files synced automatically
container.delete()Not needed

Key benefit: No manual container management! Just create an agent and run tasks.

Where to go

The new architecture is simpler, faster, and more intuitive. Start there!

Last updated on