Skip to main content

Overview

The Containers API provides information about git worktree containers used by task attempts. Each container represents an isolated workspace where AI agents execute tasks. Base URL: http://localhost:8887/api/containers

Get Container Info

Get detailed information about a worktree container.

Path Parameters

Example Response

Response Fields


Use Cases

Monitor Disk Usage

Track worktree disk usage to prevent space issues:

Check Git Status

Verify worktree state before merging:

SDK Examples

JavaScript/TypeScript

Python


Next Steps

Attempts API

Task attempts using containers

Git Worktrees

Learn about worktree isolation