cohere
Install
cohere on PyPI
pip
pip install cohereuv
uv add coherepoetry
poetry add coherePackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — fastavro, httpx, pydantic, pydantic-core, requests, tokenizers, types-requests, typing_extensions |
| Maintenance | actively maintained — 21 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: cohere-7.0.8-py3-none-any.whl
About cohere
from the package's own PyPI description — quoted content, verbatim
Cohere Python SDK
version badge (image) license badge (image) fern shield (image)
The Cohere Python SDK allows access to Cohere models across many different platforms: the cohere platform, AWS (Bedrock, Sagemaker), Azure, GCP and Oracle OCI. For a full list of support and snippets, please take a look at the SDK support docs page.
Documentation
Cohere documentation and API reference is available here.
Installation
pip install cohere
Usage
import cohere
co = cohere.ClientV2()
response = co.chat(
model="command-r-plus-08-2024",
messages=[{"role": "user", "content": "hello world!"}],
)
print(response)
> [!TIP]
> You can set a system environment variable CO_API_KEY to avoid writing your api key within your code, e.g. add export CO_API_KEY=theapikeyforyouraccount
> in your ~/.zshrc or...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
The Cohere Python SDK provides programmatic access to Cohere's large language models for chat, embedding, and text generation across multiple cloud platforms including AWS, Azure, GCP, and Oracle OCI.
Low friction install with a pure-Python wheel and eight well-maintained runtime dependencies. Active maintenance with a release 21 days ago and recent repository activity.
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you retain the license notice.
Usage
pip install cohere
import cohere
co = cohere.ClientV2()
response = co.chat(
model="command-r-plus-08-2024",
messages=[{"role": "user", "content": "hello world!"}],
)
print(response)
Requires Python 3.10 or later; API key must be provided via CO_API_KEY environment variable or passed to the client.
Verdict: A well-maintained, actively developed SDK for accessing Cohere's generative AI models with low installation friction and permissive MIT licensing. No known security vulnerabilities and broad Python version support (3.10–3.15) make it production-ready for multi-cloud AI integrations.
Needs verification
- Whether the eight runtime dependencies (fastavro, httpx, pydantic, pydantic-core, requests, tokenizers, types-requests, typing_extensions) introduce any transitive security or maintenance concerns beyond what OSV reports.
- Whether the OCI optional extra (`cohere[oci]`) introduces additional dependencies or licensing implications not reflected in the base fact sheet.
Similar packages
permissive · top 1,000 on PyPI
modalpermissive · top 1,000 on PyPI
pgvectorpermissive · top 1,000 on PyPI
gcloud-aio-authpermissive · top 1,000 on PyPI
litellmpermissive · top 100 on PyPI
llama-index-llms-openaipermissive · top 1,000 on PyPI
opentelemetry-semantic-conventions-aipermissive · top 1,000 on PyPI
azure-commonpermissive · top 1,000 on PyPI
oracledbunclear · top 1,000 on PyPI
ruamel.yamlpermissive · top 1,000 on PyPI