> 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.

# Private Deployment Usage

> This page describes how to use Cohere's SDK to access privately deployed Cohere models.

You can use Cohere's SDK to access privately deployed Cohere models.

## 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)

## Getting Started

The only difference between using Cohere's models on private deployments and the Cohere platform is how you set up the client. With private deployments, you need to pass the following parameters:

* `api_key` - Pass a blank value
* `base_url` - Pass the URL of your private deployment

**`PYTHON`**

```python PYTHON
import cohere

co = cohere.ClientV2(
    api_key="",  # Leave this blank
    base_url="<YOUR_DEPLOYMENT_URL>",
)
```

To get started with example use cases, refer to the following quickstart examples:

* [Text Generation (Command model)](https://docs.cohere.com/docs/text-gen-quickstart)
* [RAG (Command model)](https://docs.cohere.com/docs/rag-quickstart)
* [Tool Use (Command model)](https://docs.cohere.com/docs/tool-use-quickstart)
* [Semantic Search (Embed model)](https://docs.cohere.com/docs/sem-search-quickstart)
* [Reranking (Rerank model)](https://docs.cohere.com/docs/reranking-quickstart)

## Integrations

You can use the LangChain library with privately deployed Cohere models. Refer to the [LangChain section](https://docs.cohere.com/docs/chat-on-langchain#using-langchain-on-private-deployments) for more information on setting up LangChain for private deployments.