ai-station/.venv/lib/python3.12/site-packages/aider/website/docs/llms/cohere.md

35 lines
694 B
Markdown
Raw Normal View History

2025-12-25 14:54:33 +00:00
---
parent: Connecting to LLMs
nav_order: 500
---
# Cohere
Cohere offers *free* API access to their models.
Their Command-R+ model works well with aider
as a *very basic* coding assistant.
You'll need a [Cohere API key](https://dashboard.cohere.com/welcome/login).
First, install aider:
{% include install.md %}
Then configure your API keys:
```
export COHERE_API_KEY=<key> # Mac/Linux
setx COHERE_API_KEY <key> # Windows, restart shell after setx
```
Start working with aider and Cohere on your codebase:
```bash
# Change directory into your codebase
cd /to/your/project
aider --model command-r-plus-08-2024
# List models available from Cohere
aider --list-models cohere_chat/
```