> For the complete documentation index, see [llms.txt](https://docs.spice.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spice.ai/sdks/sdks.md).

# SDKs

Client SDKs connect to a Spice app over [Apache Arrow Flight](https://github.com/spicehq/docs/tree/trunk/cloud/api/sql-query/apache-arrow-flight-api.md) and return results as Apache Arrow record batches, which convert cheaply into the dataframe type of each language. They are the recommended way to query Spice from application code.

Every SDK connects to either **Spice.ai Cloud** or a **local Spice runtime**. Authentication against Cloud uses an app [API key](https://github.com/spicehq/docs/tree/trunk/cloud/portal/apps/api-keys.md).

| Language            | Package                         | Latest   | Documentation                            |
| ------------------- | ------------------------------- | -------- | ---------------------------------------- |
| Python              | `spicepy`                       | `v3.1.0` | [Python SDK](/sdks/sdks/python-sdk.md)   |
| TypeScript, Node.js | `@spiceai/spice`                | `3.1.0`  | [Node.js SDK](/sdks/sdks/node.js-sdk.md) |
| Go                  | `github.com/spiceai/gospice/v8` | `v8.0.1` | [Go SDK](/sdks/sdks/go.md)               |
| Rust                | `spiceai`                       | `3.0.0`  | [Rust SDK](/sdks/sdks/rust-sdk.md)       |
| Java                | `ai.spice:spiceai`              | `0.6.0`  | [Java SDK](/sdks/sdks/java-sdk.md)       |
| C#, .NET            | `SpiceAI`                       | `0.3.0`  | [.NET SDK](/sdks/sdks/dotnet-sdk.md)     |

## Default endpoints

Each SDK ships defaults for both Cloud and a local runtime. The exact values and how to override them are on each SDK's page, but the hosts are common:

| Target         | Arrow Flight                   | HTTP                      |
| -------------- | ------------------------------ | ------------------------- |
| Spice.ai Cloud | `flight.spiceai.io` port `443` | `https://data.spiceai.io` |
| Local runtime  | `localhost` port `50051`       | `http://localhost:8090`   |

{% hint style="warning" %}
Most SDKs default to the **local** runtime for Flight. Connecting to Spice.ai Cloud generally requires setting the Cloud endpoint explicitly, or calling the SDK's Cloud helper — supplying an API key alone is not always enough. Each page states what its own defaults are.
{% endhint %}

## Choosing between an SDK and the APIs directly

An SDK is preferable for application code: it handles the Flight handshake, authentication headers, and retries. Query directly against the [HTTP API](https://github.com/spicehq/docs/tree/trunk/cloud/api/sql-query/http-api.md) or [Arrow Flight API](https://github.com/spicehq/docs/tree/trunk/cloud/api/sql-query/apache-arrow-flight-api.md) when a language has no SDK, or for one-off requests from a shell.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.spice.ai/sdks/sdks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
