# Open-source tools: CLI, MCP server, SDKs and Terraform

Apidly publishes its clients as open source (MIT licence) in one repository: [github.com/idimetrix/apidly-tools](https://github.com/idimetrix/apidly-tools). All of them call the public [API](/docs/api-reference) (OpenAPI description at `https://apidly.com/api/v1/openapi.json`), so anything they do you can also do from the console.

You need an [API key](/docs/api-keys). Create one on the [API keys page](/console/api-keys) of the console, then set it in your shell:

```bash
export APIDLY_API_KEY=...
```

| Tool | What it is | Guide |
|---|---|---|
| CLI | The `apidly` command: launch, stop and watch servers, endpoints, volumes and billing from a terminal | [CLI](/docs/cli) |
| MCP server | Lets an AI assistant price, launch and manage servers; read-only by default | [MCP](/docs/mcp) |
| JavaScript / TypeScript SDK | Typed client for the REST API, no dependencies | [SDKs](/docs/sdks) |
| Python SDK | Client for the REST API | [SDKs](/docs/sdks) |
| Terraform provider | Servers, volumes, SSH keys and endpoints as code | [Terraform](/docs/terraform) |

The packages are not on npm or PyPI. The CLI, MCP server and SDKs install from files on apidly.com, and the Terraform provider is built from source.

## CLI

```bash
npm install -g https://apidly.com/downloads/apidly-cli-0.1.35.tgz
apidly plans --available --min-vram 24
```

The second command lists orderable GPU configurations with at least 24 GB of video memory. More in [CLI](/docs/cli).

## MCP server

```bash
npm install -g https://apidly.com/downloads/apidly-mcp-0.1.26.tgz
```

Add it to Claude Desktop, Cursor or any MCP client in the client's MCP settings:

```json
{
  "mcpServers": {
    "apidly": {
      "command": "apidly-mcp",
      "env": { "APIDLY_API_KEY": "..." }
    }
  }
}
```

By default the assistant can only read. To let it launch servers under a price cap, add `"args": ["--allow-writes", "--max-hourly-usd", "1.50"]`. See [MCP](/docs/mcp) for the checksum check and the full list of options.

## JavaScript and Python SDKs

```bash
npm install https://apidly.com/downloads/apidly-sdk-0.1.35.tgz
pip install https://apidly.com/downloads/apidly-0.1.35-py3-none-any.whl
```

Install the one for your language. Usage and examples are in [SDKs](/docs/sdks).

## Terraform provider

The provider manages servers, volumes, SSH keys and endpoints. It is built from source; follow the README in the [`terraform-provider` folder](https://github.com/idimetrix/apidly-tools/tree/main/terraform-provider), then see [Terraform](/docs/terraform) for configuration.

## Public price feed

Every orderable configuration with its hourly price, disk rate and availability, no key needed: `https://apidly.com/api/public/prices` (JSON, refreshed every 10 minutes).
