> This page is for version v2 API (default).
> For other versions, use one of these documentation indexes:
> - v2 API (default): https://docs.cohere.com/v2/llms.txt
> - v1 API: https://docs.cohere.com/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cohere.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cohere.com/_mcp/server.

# Installation

> A guide for installing the Cohere SDK, supported in 4 different languages – Python, TypeScript, Java, and Go.

## Platform options

To be able to use Cohere’s models, first choose the platform where you want to access the model from. Cohere's models are available on the following platforms:

| Platform            | Description                                                                                                                           | Setup Guide                                                                                                                                                                                                                                                                                                                                         |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Cohere Platform     | The fastest way to start using Cohere’s models. Hosted on Cohere infrastructure and available on our public SaaS platform.            | [Sign up](https://dashboard.cohere.com/welcome/register) and get an [API key](https://dashboard.cohere.com/api-keys) (trial key available)                                                                                                                                                                                                          |
| Model Vault         | A Cohere product for dedicated, managed inference: a single-tenant deployment you provision from the dashboard and call over the API. | [Model Vault docs](../docs/model-vault)                                                                                                                                                                                                                                                                                                             |
| Private Deployments | For enterprises looking to deploy the Cohere stack privately on the cloud or on-prem.                                                 | [Setup guide](https://docs.cohere.com/docs/single-container-on-private-clouds)                                                                                                                                                                                                                                                                      |
| Cloud deployments   | Managed services from cloud providers that enable access to Cohere's models.                                                          | • [Amazon Bedrock](https://docs.cohere.com/docs/amazon-bedrock#prerequisites) • [Amazon SageMaker](https://docs.cohere.com/docs/amazon-sagemaker-setup-guide#prerequisites) • [Azure AI Foundry](https://docs.cohere.com/docs/cohere-on-microsoft-azure#prerequisites) • [Oracle OCI](https://docs.cohere.com/docs/oracle-cloud-infrastructure-oci) |

## Model usage

You can then use the models via these options:

* [SDK](https://docs.cohere.com/v1/reference/about#sdks). We support the following SDKs:
  * [Python](https://github.com/cohere-ai/cohere-python)
  * [TypeScript](https://github.com/cohere-ai/cohere-typescript)
  * [Java](https://github.com/cohere-ai/cohere-java)
  * [Go](https://github.com/cohere-ai/cohere-go)
* [Playground](https://docs.cohere.com/v1/docs/playground-overview)

## Installation

To install the Cohere SDK, choose from the following 4 languages:

#### Python

```bash
pip install -U cohere
```

[Source](https://github.com/cohere-ai/cohere-python)

#### TypeScript

```bash
npm i -s cohere-ai
```

[Source](https://github.com/cohere-ai/cohere-typescript)

#### Java

```gradle
implementation 'com.cohere:cohere-java:1.x.x'
```

[Source](https://github.com/cohere-ai/cohere-java)

#### Go

```bash
go get github.com/cohere-ai/cohere-go/v2
```

[Source](https://github.com/cohere-ai/cohere-go)