Skip to content

Commit 671ebef

Browse files
committed
Add links to API key pages.
1 parent a256072 commit 671ebef

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ Say hello to {{name}}!
2323
Run it:
2424

2525
```bash
26-
export ANTHROPIC_API_KEY="your-key"
26+
export OPENAI_API_KEY="your-key"
2727
echo '{"name": "World"}' | ./runprompt hello.prompt
2828
```
2929

30+
(You can get an OpenAI key from here: <https://platform.openai.com/api-keys>)
31+
3032
## Examples
3133

3234
In addition to the following, see the [tests folder](tests/) for more example `.prompt` files.
@@ -99,10 +101,10 @@ Override any frontmatter value from the command line:
99101
Set API keys for your providers:
100102

101103
```bash
102-
export ANTHROPIC_API_KEY="..."
103-
export OPENAI_API_KEY="..."
104-
export GOOGLE_API_KEY="..."
105-
export OPENROUTER_API_KEY="..."
104+
export ANTHROPIC_API_KEY="..." # https://console.anthropic.com/settings/keys
105+
export OPENAI_API_KEY="..." # https://platform.openai.com/api-keys
106+
export GOOGLE_API_KEY="..." # https://aistudio.google.com/app/apikey
107+
export OPENROUTER_API_KEY="..." # https://openrouter.ai/settings/keys
106108
```
107109

108110
### RUNPROMPT_* overrides
@@ -128,11 +130,11 @@ Use `-v` to see request/response details:
128130

129131
Models are specified as `provider/model-name`:
130132

131-
| Provider | Model format | API key env var |
132-
|----------|--------------|-----------------|
133-
| Anthropic | `anthropic/claude-sonnet-4-20250514` | `ANTHROPIC_API_KEY` |
134-
| OpenAI | `openai/gpt-4o` | `OPENAI_API_KEY` |
135-
| Google AI | `googleai/gemini-1.5-pro` | `GOOGLE_API_KEY` |
136-
| OpenRouter | `openrouter/anthropic/claude-sonnet-4-20250514` | `OPENROUTER_API_KEY` |
133+
| Provider | Model format | API key |
134+
|----------|--------------|---------|
135+
| Anthropic | `anthropic/claude-sonnet-4-20250514` | [Get key](https://console.anthropic.com/settings/keys) |
136+
| OpenAI | `openai/gpt-4o` | [Get key](https://platform.openai.com/api-keys) |
137+
| Google AI | `googleai/gemini-1.5-pro` | [Get key](https://aistudio.google.com/app/apikey) |
138+
| OpenRouter | `openrouter/anthropic/claude-sonnet-4-20250514` | [Get key](https://openrouter.ai/settings/keys) |
137139

138140
[OpenRouter](https://openrouter.ai) provides access to models from many providers (Anthropic, Google, Meta, etc.) through a single API key.

0 commit comments

Comments
 (0)