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

# Prime REST API SDKs

Coinbase provides a set of SDKs that simplify integration with the Prime APIs. The SDKs are open source, actively maintained, and align with the conventions of their respective programming languages, enabling developers to build and test integrations with minimal overhead. They are also used throughout the Prime API documentation to illustrate individual endpoints and demonstrate broader conceptual use cases.

* [Python SDK](https://github.com/coinbase/prime-sdk-py)
* [Java SDK](https://github.com/coinbase/prime-sdk-java)
* [.NET SDK](https://github.com/coinbase/prime-sdk-dotnet)
* [TypeScript SDK](https://github.com/coinbase/prime-sdk-ts)
* [Go SDK](https://github.com/coinbase/prime-sdk-go)
* [Rust SDK](https://github.com/coinbase/prime_sdk_rs)

## Installation

<Tabs groupId="programming-language">
  <Tab value="Python" title="Python" default>
    ```bash lines wrap theme={null}
    pip install prime-sdk-py
    ```

    ```python lines wrap theme={null}
    from prime_sdk.client import Client
    ```
  </Tab>

  <Tab value="TypeScript" title="TypeScript">
    ```bash lines wrap theme={null}
    npm install @coinbase/prime-sdk-ts
    ```

    ```typescript lines wrap theme={null}
    import { CoinbasePrimeClientWithServices } from '@coinbase/prime-sdk-ts';
    ```
  </Tab>

  <Tab value="Go" title="Go">
    ```bash lines wrap theme={null}
    go get github.com/coinbase/prime-sdk-go
    ```

    ```go lines wrap theme={null}
    import (
        "github.com/coinbase/prime-sdk-go/client"
        "github.com/coinbase/prime-sdk-go/credentials"
    )

    creds, _ := credentials.ReadEnvCredentials("PRIME_CREDENTIALS")
    httpClient, _ := client.DefaultHttpClient()
    primeClient := client.NewRestClient(creds, httpClient)
    ```
  </Tab>

  <Tab value="Java" title="Java">
    ```xml lines wrap theme={null}
    <dependency>
        <groupId>com.coinbase.prime</groupId>
        <artifactId>coinbase-prime-sdk-java</artifactId>
        <version>1.10.2</version>
    </dependency>
    ```

    ```java lines wrap theme={null}
    import com.coinbase.prime.client.CoinbasePrimeClient;
    import com.coinbase.prime.credentials.CoinbasePrimeCredentials;

    CoinbasePrimeCredentials credentials = new CoinbasePrimeCredentials(System.getenv("COINBASE_PRIME_CREDENTIALS"));
    CoinbasePrimeClient client = new CoinbasePrimeClient(credentials);
    ```
  </Tab>

  <Tab value=".NET" title=".NET">
    ```bash lines wrap theme={null}
    dotnet add package CoinbaseSdk.Prime
    ```
  </Tab>

  <Tab value="Rust" title="Rust">
    ```bash lines wrap theme={null}
    cargo add prime_sdk_rs
    ```

    ```rust lines wrap theme={null}
    use prime_sdk_rs::client::PrimeClient;
    ```
  </Tab>
</Tabs>

You can also use the [Prime CLI](https://github.com/coinbase-samples/prime-cli) to quickly test endpoints from the command line and automate tasks with scripts.
