Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ API keys can be set via config file, `RUNPROMPT_*` env var, or native env var:
| OpenAI | `openai_api_key: sk-...` | `RUNPROMPT_OPENAI_API_KEY` | `OPENAI_API_KEY` |
| Google AI | `google_api_key: ...` | `RUNPROMPT_GOOGLE_API_KEY` | `GOOGLE_API_KEY` |
| OpenRouter | `openrouter_api_key: ...` | `RUNPROMPT_OPENROUTER_API_KEY` | `OPENROUTER_API_KEY` |
| Requesty | `requesty_api_key: ...` | `RUNPROMPT_REQUESTY_API_KEY` | `REQUESTY_API_KEY` |

Priority for API keys: config file, env var, then flag as fallback.

Expand Down
6 changes: 5 additions & 1 deletion runprompt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CONFIG_KEYS = {
"model", "default_model", "tool_path", "base_url", "ollama_base_url", "ollama_api_base",
"openai_base_url", "openai_api_base", "cache", "cache_dir",
"safe_yes", "verbose", "anthropic_api_key", "openai_api_key",
"google_api_key", "openrouter_api_key", "chat", "chat_history", "history_file", "timeout",
"google_api_key", "openrouter_api_key", "requesty_api_key", "chat", "chat_history", "history_file", "timeout",
"insecure",
}

Expand All @@ -57,6 +57,10 @@ PROVIDERS = {
"url": "https://openrouter.ai/api/v1/chat/completions",
"env": "OPENROUTER_API_KEY",
},
"requesty": {
"url": "https://router.requesty.ai/v1/chat/completions",
"env": "REQUESTY_API_KEY",
},
"googleai": {
"url": "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
"env": "GOOGLE_API_KEY",
Expand Down