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

# SDKs

> Install and configure official Dedalus Cloud Services SDKs.

## TypeScript

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
npm install dedalus
```

```typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
import Dedalus from "dedalus";

const client = new Dedalus();

const workspace = await client.workspaces.create({
  vcpu: 1,
  memory_mib: 2048,
  storage_gib: 10,
});

console.log(workspace.workspace_id);
```

Auto-pagination is built in:

```typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
for await (const ws of client.workspaces.list()) {
  console.log(ws.workspace_id, ws.lifecycle_status);
}
```

## Python

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
pip install dedalus-sdk
```

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from dedalus_sdk import Dedalus

client = Dedalus()

workspace = client.workspaces.create(
    vcpu=1,
    memory_mib=2048,
    storage_gib=10,
)

print(workspace.workspace_id)
```

Async is supported:

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from dedalus_sdk import AsyncDedalus

client = AsyncDedalus()
workspace = await client.workspaces.create(vcpu=1, memory_mib=2048, storage_gib=10)
```

## Go

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
go get github.com/dedalus-labs/dedalus-go
```

```go theme={"theme":{"light":"github-light","dark":"github-dark"}}
package main

import (
    "context"
    "fmt"

    "github.com/dedalus-labs/dedalus-go"
)

func main() {
    client := dedalus.NewClient()

    workspace, _ := client.Workspaces.New(context.TODO(), dedalus.WorkspaceNewParams{
        VCPU:       dedalus.Int(1),
        MemoryMiB:  dedalus.Int(2048),
        StorageGiB: dedalus.Int(10),
    })

    fmt.Println(workspace.WorkspaceID)
}
```

## Resources

Each SDK exposes the same resource hierarchy:

| Resource                | Description                             |
| ----------------------- | --------------------------------------- |
| `workspaces`            | Create, list, update, delete workspaces |
| `workspaces.ssh`        | SSH session management                  |
| `workspaces.executions` | Run commands and scripts                |
| `workspaces.terminals`  | Interactive terminal sessions           |
| `workspaces.artifacts`  | File upload/download                    |
| `workspaces.ports`      | Public port URLs                        |

## Links

| SDK        | Package                                                | Repository                                                                            |
| ---------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| TypeScript | `dedalus`                                              | [dedalus-labs/dedalus-typescript](https://github.com/dedalus-labs/dedalus-typescript) |
| Python     | [`dedalus-sdk`](https://pypi.org/project/dedalus-sdk/) | [dedalus-labs/dedalus-python](https://github.com/dedalus-labs/dedalus-python)         |
| Go         | `dedalus-go`                                           | [dedalus-labs/dedalus-go](https://github.com/dedalus-labs/dedalus-go)                 |
