# Private Deployment Usage

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

## Installation

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

::::tabs
:::tab{title="Python"}
```bash
pip install -U cohere
```

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

:::tab{title="TypeScript"}
```bash
npm i -s cohere-ai
```

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

:::tab{title="Java"}
```gradle
implementation 'com.cohere:cohere-java:1.x.x'
```

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

:::tab{title="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
import cohere

co = cohere.Client(
    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)](/guides/get-started-quickstart-text-gen-quickstart)
- [RAG (Command model)](/guides/get-started-quickstart-rag-quickstart)
- [Tool Use (Command model)](/guides/get-started-quickstart-tool-use-quickstart)
- [Semantic Search (Embed model)](/guides/get-started-quickstart-sem-search-quickstart)
- [Reranking (Rerank model)](/guides/get-started-quickstart-reranking-quickstart)

## Integrations

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

## Related pages

- [Changelog](../changelog.md)
- [Cohere](../index.md)
- [Cohere API](./cohere-api-index.md)
- [Cohere Labs](./cohere-labs-index.md)
- [Cohere Platform](./cohere-platform-index.md)
- [Cookbooks](./cookbooks-index.md)
- [Deployment Options](./deployment-options-index.md)
- [Embeddings (Vectors, Search, Retrieval)](./embeddings-vectors-search-retrieval-index.md)
- [Get Started](./get-started-index.md)
- [Going to Production](./going-to-production-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
