mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
Update README with settings.json API keys
This commit is contained in:
parent
bb1da1ec51
commit
144d9d93de
1 changed files with 16 additions and 1 deletions
|
|
@ -106,7 +106,20 @@ For most users, [Git for Windows](https://git-scm.com/download/win) is sufficien
|
|||
|
||||
### API Keys & OAuth
|
||||
|
||||
Set the environment variable for your provider:
|
||||
**Option 1: Settings file** (recommended)
|
||||
|
||||
Add API keys to `~/.pi/agent/settings.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"apiKeys": {
|
||||
"anthropic": "sk-ant-...",
|
||||
"openai": "sk-..."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Option 2: Environment variables**
|
||||
|
||||
| Provider | Environment Variable |
|
||||
|----------|---------------------|
|
||||
|
|
@ -120,6 +133,8 @@ Set the environment variable for your provider:
|
|||
| OpenRouter | `OPENROUTER_API_KEY` |
|
||||
| ZAI | `ZAI_API_KEY` |
|
||||
|
||||
Settings file keys take priority over environment variables.
|
||||
|
||||
**OAuth Providers:**
|
||||
|
||||
Use `/login` to authenticate with subscription-based or free-tier providers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue