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

# SDKs

> Official Fibre clients: the TypeScript and Python SDKs and the CLI. Each wraps the HTTP API with typed calls, streaming, retries and errors you can catch.

An **SDK** (software development kit) is a library for your programming language that makes the
[HTTP API](https://docs.fibre.dev/api-reference/introduction.md) easier to use. Instead of building HTTP requests by hand, you work with
sandboxes as objects: you create one, run commands in it, stream their output, and read its files.

The SDKs also take care of the details for you: they send your API key, retry failed requests safely, handle
streaming output, and turn errors into exceptions you can catch. If the SDK does not have a method for something
yet, you can still make that call through its built-in HTTP client.

These are the ways to use Fibre today:

> [card] [TypeScript](https://docs.fibre.dev/sdks/typescript.md)
>
> `@fibre-dev/sdk`, for Node 20+, Bun and Deno. **Available now.**

> [card] [Python](https://docs.fibre.dev/sdks/python.md)
>
> `fibre-sdk`, for Python 3.11+, with sync and `asyncio` clients. **Available now.**

> [card] [CLI](https://docs.fibre.dev/sdks/cli.md)
>
> `fibre` on your terminal: start sandboxes, run commands, open a shell. **Available now.**

> [card] [HTTP API](https://docs.fibre.dev/api-reference/introduction.md)
>
> Any language, with `curl` or your HTTP client. Every page of these docs shows it.

> [card] [MCP server](https://docs.fibre.dev/build-with-ai/mcp-server.md)
>
> Part of the CLI: give Claude Code, Codex, Cursor or OpenCode tools to create sandboxes and run code in them.

## The same thing in each

Here is the same small program, which starts a sandbox, runs a command and deletes the sandbox, with the
TypeScript SDK, the Python SDK and plain HTTP:

```bash title="CLI" run theme={null}
fibre run --rm --lifetime 5m -- 'echo hello from $(hostname)'
```

```typescript title="TypeScript" run theme={null}
import { Sandbox } from "@fibre-dev/sdk";

const sbx = await Sandbox.create({ lifetime: 300 });
const { stdout } = await sbx.run("echo hello from $(hostname)");
console.log(stdout);
await sbx.delete();
```

```python title="Python" run theme={null}
from fibre import Sandbox

sbx = Sandbox.create(lifetime=300)
print(sbx.run("echo hello from $(hostname)").stdout)
sbx.delete()
```

```bash title="curl" run theme={null}
SBX=$(curl -sS -X POST "$FIBRE_API_URL/v1/sandboxes" -H "Authorization: Bearer $FIBRE_API_KEY" \
  -H "Content-Type: application/json" -d '{"lifetime_sec": 300}' | jq -r .id)
curl -sS -X POST "$FIBRE_API_URL/v1/sandboxes/$SBX/exec" -H "Authorization: Bearer $FIBRE_API_KEY" \
  -H "Content-Type: application/json" -d '{"command": ["sh", "-c", "echo hello from $(hostname)"]}'
curl -sS -o /dev/null -X DELETE "$FIBRE_API_URL/v1/sandboxes/$SBX" -H "Authorization: Bearer $FIBRE_API_KEY"
```

> [accordion] Response
>
> ```json title="response" expected theme={null}
> {
>   "exit_code": 0,
>   "stdout": "…"
> }
> ```

Every client reads your API key from the `FIBRE_API_KEY` environment variable. See
[API keys](https://docs.fibre.dev/get-started/api-keys.md) to create one.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.