# create_code_interpreter_toolkit

> **Function** in `langchain_aws`

📖 [View in docs](https://reference.langchain.com/python/langchain-aws/tools/code_interpreter_toolkit/create_code_interpreter_toolkit)

Create and setup a CodeInterpreterToolkit.

## Signature

```python
create_code_interpreter_toolkit(
    region: str = 'us-west-2',
    *,
    code_interpreter_identifier: Optional[str] = None,
) -> Tuple[CodeInterpreterToolkit, List[BaseTool]]
```

## Description

**Example:**

>>> toolkit, tools = await create_code_interpreter_toolkit()
>>> # Use tools with an agent
>>> agent = create_react_agent(model, tools=tools)
>>> await toolkit.cleanup()  # When done

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `region` | `str` | No | AWS region for code interpreter (default: `'us-west-2'`) |
| `code_interpreter_identifier` | `Optional[str]` | No | Optional identifier for the code interpreter. Use the default system interpreter when ``None``. Set to a custom interpreter ID to use a custom interpreter (e.g. VPC-configured). (default: `None`) |

## Returns

`Tuple[CodeInterpreterToolkit, List[BaseTool]]`

Tuple of (toolkit, tools)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/ea22fe3d744a3248b0b74ed555e9c34844b35a54/libs/aws/langchain_aws/tools/code_interpreter_toolkit.py#L725)