# tinker_cookbook.sandbox.SandboxFusionClient ## *class* [**tinker_cookbook.sandbox.SandboxFusionClient**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/sandbox/sandboxfusion.py#L23)() Async HTTP client for SandboxFusion code execution. **Usage:** client = SandboxFusionClient() success, response = await client.run( code="print('hello')", files={"data.txt": "some content"}, timeout=30, ) await client.close() ### [**run**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/sandbox/sandboxfusion.py#L67)(*code*, *files*, *timeout*, *language*) Execute code with supporting files in the sandbox. **Parameters:** - [**code**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/sandbox/sandboxfusion.py#L69) (*str*) – Main code to execute (entry point) - [**files**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/sandbox/sandboxfusion.py#L70) (*dict[str, str]*) – Additional files to include {filename: content} - [**timeout**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/sandbox/sandboxfusion.py#L71) (*float*) – Execution timeout in seconds - [**language**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/sandbox/sandboxfusion.py#L72) (*str*) – Programming language (default: python) **Returns:** Tuple of (success: bool, response: dict) - success is True only if status == "Success" - response contains the full API response or error details ### [**close**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/sandbox/sandboxfusion.py#L117)() Close the HTTP session and release resources. **Returns:** *None*