> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.runtimes.daytona runtime

<a id="camel.runtimes.daytona_runtime" />

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime" />

## DaytonaRuntime

```python theme={"system"}
class DaytonaRuntime(BaseRuntime):
```

A runtime that executes functions in a Daytona sandbox environment.
Requires the Daytona server to be running and an API key configured.

**Parameters:**

* **api\_key** (Optional\[str]): The Daytona API key for authentication. If not provided, it will try to use the DAYTONA\_API\_KEY environment variable. (default: :obj:`None`)
* **api\_url** (Optional\[str]): The URL of the Daytona server. If not provided, it will try to use the DAYTONA\_API\_URL environment variable. If none is provided, it will use "[http://localhost:8000](http://localhost:8000)". (default: :obj:`None`)
* **language** (`Optional[Literal["python", "typescript", "javascript"]]`): The programming language for the sandbox. (default: :obj:`"python"`)
* **image** (Optional\[str]): The Docker image to use for the sandbox. If not provided, a default image based on the language will be used. (default: :obj:`None`)

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.__init__" />

### **init**

```python theme={"system"}
def __init__(
    self,
    api_key: Optional[str] = None,
    api_url: Optional[str] = None,
    language: Optional[Literal['python', 'typescript', 'javascript']] = 'python',
    image: Optional[str] = None
):
```

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.build" />

### build

```python theme={"system"}
def build(self):
```

**Returns:**

DaytonaRuntime: The current runtime.

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.cleanup" />

### cleanup

```python theme={"system"}
def cleanup(self):
```

Release the Daytona sandbox (delete and remove reference).

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.add" />

### add

```python theme={"system"}
def add(
    self,
    funcs: Union[FunctionTool, List[FunctionTool]],
    entrypoint: str,
    arguments: Optional[Dict[str, Any]] = None
):
```

Add a function or list of functions to the runtime.

**Parameters:**

* **funcs** (Union\[FunctionTool, List\[FunctionTool]]): The function or list of functions to add.
* **entrypoint** (str): The entrypoint for the function.
* **arguments** (Optional\[Dict\[str, Any]]): The arguments for the function. (default: :obj:`None`)

**Returns:**

DaytonaRuntime: The current runtime.

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.info" />

### info

```python theme={"system"}
def info(self):
```

**Returns:**

str: Information about the sandbox.

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.__del__" />

### **del**

```python theme={"system"}
def __del__(self):
```

Clean up the sandbox when the object is deleted.

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.stop" />

### stop

```python theme={"system"}
def stop(self):
```

**Returns:**

DaytonaRuntime: The current runtime.

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.reset" />

### reset

```python theme={"system"}
def reset(self):
```

**Returns:**

DaytonaRuntime: The current runtime.

<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.docs" />

### docs

```python theme={"system"}
def docs(self):
```

**Returns:**

str: The URL for the API documentation.
